make robocfg work with b44 (thx oleg)
[openwrt.git] / package / popt / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=popt
6 PKG_VERSION:=1.7
7 PKG_RELEASE:=4
8 PKG_MD5SUM:=5988e7aeb0ae4dac8d83561265984cc9
9
10 PKG_SOURCE_URL:= \
11 ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/ \
12 http://nthill.free.fr/openwrt/sources/$(PKG_NAME)/
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_CAT:=zcat
15
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
18
19 include $(TOPDIR)/package/rules.mk
20
21 $(eval $(call PKG_template,LIBPOPT,libpopt,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
24 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_NLS) \
48 $(DISABLE_LARGEFILE) \
49 --enable-shared \
50 --enable-static \
51 );
52 touch $(PKG_BUILD_DIR)/.configured
53
54 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
55 $(MAKE) -C $(PKG_BUILD_DIR)
56 touch $(PKG_BUILD_DIR)/.built
57
58 $(STAGING_DIR)/usr/lib/libpopt.so: $(PKG_BUILD_DIR)/.built
59 $(MAKE) -C $(PKG_BUILD_DIR) \
60 DESTDIR="$(STAGING_DIR)" \
61 install
62 rm -f $(STAGING_DIR)/usr/lib/libpopt.la
63
64 $(IPKG_LIBPOPT): $(IDIR_LIBPOPT)/CONTROL/control $(STAGING_DIR)/usr/lib/libpopt.so
65 mkdir -p $(IDIR_LIBPOPT)/usr/lib
66 cp -fpR $(STAGING_DIR)/usr/lib/libpopt.so.* $(IDIR_LIBPOPT)/usr/lib/
67 $(RSTRIP) $(IDIR_LIBPOPT)
68 mkdir -p $(PACKAGE_DIR)
69 $(IPKG_BUILD) $(IDIR_LIBPOPT) $(PACKAGE_DIR)
70
71 install-dev: $(STAGING_DIR)/usr/lib/libpopt.so
72
73 uninstall-dev:
74 -$(MAKE) -C $(PKG_BUILD_DIR) \
75 DESTDIR="$(STAGING_DIR)" \
76 uninstall
77
78 compile: install-dev
79 clean: uninstall-dev
This page took 0.038925 seconds and 5 git commands to generate.