sync dropbear package with whiterussian
[openwrt.git] / openwrt / package / libart / Makefile
1 # $Id$
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 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_lgpl-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,LIBART,libart,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
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) \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --program-prefix="" \
32 --program-suffix="" \
33 --prefix=/usr \
34 --exec-prefix=/usr \
35 --bindir=/usr/bin \
36 --sbindir=/usr/sbin \
37 --libexecdir=/usr/lib \
38 --sysconfdir=/etc \
39 --datadir=/usr/share \
40 --localstatedir=/var \
41 --mandir=/usr/man \
42 --infodir=/usr/info \
43 $(DISABLE_NLS) \
44 $(DISABLE_LARGEFILE) \
45 --enable-shared=yes \
46 --enable-static=yes \
47 --disable-rpath \
48 );
49 touch $@
50
51 $(PKG_BUILD_DIR)/.built:
52 rm -rf $(PKG_INSTALL_DIR)
53 mkdir -p $(PKG_INSTALL_DIR)
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 HOSTCC="$(HOSTCC)" \
56 DESTDIR="$(PKG_INSTALL_DIR)" \
57 all install
58 touch $@
59
60 $(IPKG_LIBART):
61 install -d -m0755 $(IDIR_LIBART)/usr/lib
62 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(IDIR_LIBART)/usr/lib/
63 $(RSTRIP) $(IDIR_LIBART)
64 $(IPKG_BUILD) $(IDIR_LIBART) $(PACKAGE_DIR)
65
66 $(STAGING_DIR)/usr/lib/libart_lgpl_2.so: $(PKG_BUILD_DIR)/.built
67 mkdir -p $(STAGING_DIR)/usr/bin
68 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/libart2-config $(STAGING_DIR)/usr/bin/
69 mkdir -p $(STAGING_DIR)/usr/include
70 cp -fpR $(PKG_INSTALL_DIR)/usr/include/libart-2.0 $(STAGING_DIR)/usr/include/
71 mkdir -p $(STAGING_DIR)/usr/lib
72 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{a,so*} $(STAGING_DIR)/usr/lib/
73 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
74 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc $(STAGING_DIR)/usr/lib/pkgconfig/
75 touch $@
76
77 install-dev: $(STAGING_DIR)/usr/lib/libart_lgpl_2.so
78
79 uninstall-dev:
80 rm -rf \
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 \
85
86 compile: install-dev
87 clean: uninstall-dev
This page took 0.042608 seconds and 5 git commands to generate.