2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
/
16 PKG_MD5SUM
:=5988e7aeb0ae4dac8d83561265984cc9
19 PKG_REMOVE_FILES
:=autogen.sh aclocal.m4
24 include $(INCLUDE_DIR
)/package.mk
26 TARGET_CFLAGS
+= $(FPIC
)
28 define Package
/libpopt
31 TITLE
:=A command line option parsing library
32 URL
:=http
://rpm5.org
/files
/popt
/
35 define Build
/Configure
36 $(call Build
/Configure
/Default
, \
42 define Build
/InstallDev
43 $(INSTALL_DIR
) $(1)/usr
/include
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/popt.h
$(1)/usr
/include/
45 $(INSTALL_DIR
) $(1)/usr
/lib
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpopt.
{a
,so
*} $(1)/usr
/lib
/
49 define Package
/libpopt
/install
50 $(INSTALL_DIR
) $(1)/usr
/lib
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpopt.so.
* $(1)/usr
/lib
/
54 $(eval
$(call RequireCommand
,xgettext
, \
55 $(PKG_NAME
) requires the GNU gettext development package installed on the local system to build. \
58 $(eval
$(call BuildPackage
,libpopt
))