2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=ftp
://ftp.rpm.org
/pub
/rpm
/dist/rpm-4.1.x
/
17 PKG_MD5SUM
:=5988e7aeb0ae4dac8d83561265984cc9
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/libpopt
27 TITLE
:=A command line option parsing library
28 URL
:=ftp
://ftp.rpm.org
/pub
/rpm
/dist/rpm-4.1.x
/
31 define Build
/Configure
32 $(call Build
/Configure
/Default
, \
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 DESTDIR
="$(PKG_INSTALL_DIR)" \
44 define Build
/InstallDev
45 mkdir
-p
$(1)/usr
/include
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/popt.h
$(1)/usr
/include/
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpopt.
{a
,so
*} $(1)/usr
/lib
/
51 define Package
/libpopt
/install
52 $(INSTALL_DIR
) $(1)/usr
/lib
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpopt.so.
* $(1)/usr
/lib
/
56 $(eval
$(call BuildPackage
,libpopt
))
58 $(eval
$(call RequireCommand
,xgettext
, \
59 $(PKG_NAME
) requires the GNU gettext development package installed on the local system to build. \