3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=5988e7aeb0ae4dac8d83561265984cc9
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
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,LIBPOPT
,libpopt
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
48 $(DISABLE_LARGEFILE
) \
52 touch
$(PKG_BUILD_DIR
)/.configured
54 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
55 $(MAKE
) -C
$(PKG_BUILD_DIR
)
56 touch
$(PKG_BUILD_DIR
)/.built
58 $(STAGING_DIR
)/usr
/lib
/libpopt.so
: $(PKG_BUILD_DIR
)/.built
59 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
60 DESTDIR
="$(STAGING_DIR)" \
62 rm -f
$(STAGING_DIR
)/usr
/lib
/libpopt.la
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
)
71 install-dev
: $(STAGING_DIR
)/usr
/lib
/libpopt.so
74 -$(MAKE
) -C
$(PKG_BUILD_DIR
) \
75 DESTDIR
="$(STAGING_DIR)" \