3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=f1f6b3e5490f382535dccb288f5d8b14
10 PKG_SOURCE_URL
:=http
://ftp.gnome.org
/pub
/gnome
/sources
/libart_lgpl
/2.3
11 PKG_SOURCE
:=$(PKG_NAME
)_lgpl-
$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)_lgpl-
$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBART
,libart
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 CFLAGS
="$(TARGET_CFLAGS)" \
24 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
25 LDFLAGS
="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
26 $(TARGET_CONFIGURE_OPTS
) \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
37 --libexecdir
=/usr
/lib \
39 --datadir=/usr
/share \
40 --localstatedir
=/var \
44 $(DISABLE_LARGEFILE
) \
51 $(PKG_BUILD_DIR
)/.built
:
52 rm -rf
$(PKG_INSTALL_DIR
)
53 mkdir
-p
$(PKG_INSTALL_DIR
)
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 DESTDIR
="$(PKG_INSTALL_DIR)" \
61 install -d
-m0755
$(IDIR_LIBART
)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libart_lgpl_2.so.
* $(IDIR_LIBART
)/usr
/lib
/
63 $(RSTRIP
) $(IDIR_LIBART
)
64 $(IPKG_BUILD
) $(IDIR_LIBART
) $(PACKAGE_DIR
)
66 $(STAGING_DIR
)/usr
/lib
/libart_lgpl_2.so
: $(PKG_BUILD_DIR
)/.built
67 mkdir
-p
$(STAGING_DIR
)/usr
/bin
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/libart2-config
$(STAGING_DIR
)/usr
/bin
/
69 mkdir
-p
$(STAGING_DIR
)/usr
/include
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libart-2.0
$(STAGING_DIR
)/usr
/include/
71 mkdir
-p
$(STAGING_DIR
)/usr
/lib
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libart_lgpl_2.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
73 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libart-2.0.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
77 install-dev
: $(STAGING_DIR
)/usr
/lib
/libart_lgpl_2.so
81 $(STAGING_DIR
)/usr
/bin
/libart2-config \
82 $(STAGING_DIR
)/usr
/include/libart-2.0 \
83 $(STAGING_DIR
)/usr
/lib
/libart_lgpl_2.
{a
,so
*} \
84 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libart-2.0.
pc \
86 compile-targets
: install-dev
87 clean-targets
: uninstall-dev