| 1 | # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=libart
|
|---|
| 6 | PKG_VERSION:=2.3.17
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 | PKG_MD5SUM:=f1f6b3e5490f382535dccb288f5d8b14
|
|---|
| 9 |
|
|---|
| 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
|
|---|
| 12 |
|
|---|
| 13 | WRKBUILD:=${WRKDIR}/$(PKG_NAME)_lgpl-$(PKG_VERSION)
|
|---|
| 14 |
|
|---|
| 15 | include $(TOPDIR)/package/rules.mk
|
|---|
| 16 |
|
|---|
| 17 | $(eval $(call PKG_template,LIBART,libart,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 18 |
|
|---|
| 19 | $(WRKBUILD)/.configured:
|
|---|
| 20 | (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
|
|---|
| 21 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 22 | CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|---|
| 23 | LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
|
|---|
| 24 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 25 | ./configure \
|
|---|
| 26 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 27 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 28 | --build=$(GNU_HOST_NAME) \
|
|---|
| 29 | --program-prefix="" \
|
|---|
| 30 | --program-suffix="" \
|
|---|
| 31 | --prefix=/usr \
|
|---|
| 32 | --exec-prefix=/usr \
|
|---|
| 33 | --bindir=/usr/bin \
|
|---|
| 34 | --sbindir=/usr/sbin \
|
|---|
| 35 | --libexecdir=/usr/lib \
|
|---|
| 36 | --sysconfdir=/etc \
|
|---|
| 37 | --datadir=/usr/share \
|
|---|
| 38 | --localstatedir=/var \
|
|---|
| 39 | --mandir=/usr/man \
|
|---|
| 40 | --infodir=/usr/info \
|
|---|
| 41 | --disable-nls \
|
|---|
| 42 | --enable-largefile \
|
|---|
| 43 | --enable-shared=yes \
|
|---|
| 44 | --enable-static=yes \
|
|---|
| 45 | --disable-rpath \
|
|---|
| 46 | );
|
|---|
| 47 | touch $@
|
|---|
| 48 |
|
|---|
| 49 | $(WRKBUILD)/.built:
|
|---|
| 50 | rm -rf $(WRKINST)
|
|---|
| 51 | mkdir -p $(WRKINST)
|
|---|
| 52 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 53 | HOSTCC="$(HOSTCC)" \
|
|---|
| 54 | DESTDIR="$(WRKINST)" \
|
|---|
| 55 | all install
|
|---|
| 56 | touch $@
|
|---|
| 57 |
|
|---|
| 58 | $(IPKG_LIBART):
|
|---|
| 59 | install -d -m0755 $(IDIR_LIBART)/usr/lib
|
|---|
| 60 | $(CP) $(WRKINST)/usr/lib/libart_lgpl_2.so.* $(IDIR_LIBART)/usr/lib/
|
|---|
| 61 | $(RSTRIP) $(IDIR_LIBART)
|
|---|
| 62 | $(IPKG_BUILD) $(IDIR_LIBART) $(PACKAGE_DIR)
|
|---|
| 63 |
|
|---|
| 64 | $(STAGING_DIR)/usr/lib/libart_lgpl_2.so: $(WRKBUILD)/.built
|
|---|
| 65 | mkdir -p $(STAGING_DIR)/usr/bin
|
|---|
| 66 | $(CP) $(WRKINST)/usr/bin/libart2-config $(STAGING_DIR)/usr/bin/
|
|---|
| 67 | mkdir -p $(STAGING_DIR)/usr/include
|
|---|
| 68 | $(CP) $(WRKINST)/usr/include/libart-2.0 $(STAGING_DIR)/usr/include/
|
|---|
| 69 | mkdir -p $(STAGING_DIR)/usr/lib
|
|---|
| 70 | $(CP) $(WRKINST)/usr/lib/libart_lgpl_2.{a,so*} $(STAGING_DIR)/usr/lib/
|
|---|
| 71 | mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
|
|---|
| 72 | $(CP) $(WRKINST)/usr/lib/pkgconfig/libart-2.0.pc $(STAGING_DIR)/usr/lib/pkgconfig/
|
|---|
| 73 | touch $@
|
|---|
| 74 |
|
|---|
| 75 | install-dev: $(STAGING_DIR)/usr/lib/libart_lgpl_2.so
|
|---|
| 76 |
|
|---|
| 77 | uninstall-dev:
|
|---|
| 78 | rm -rf \
|
|---|
| 79 | $(STAGING_DIR)/usr/bin/libart2-config \
|
|---|
| 80 | $(STAGING_DIR)/usr/include/libart-2.0 \
|
|---|
| 81 | $(STAGING_DIR)/usr/lib/libart_lgpl_2.{a,so*} \
|
|---|
| 82 | $(STAGING_DIR)/usr/lib/pkgconfig/libart-2.0.pc \
|
|---|
| 83 |
|
|---|
| 84 | compile-targets: install-dev
|
|---|
| 85 | clean-targets: uninstall-dev
|
|---|