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
16 http
://distfiles.gentoo.org
/distfiles
/ \
17 http
://distcache.freebsd.org
/ports-distfiles
/ \
18 http
://rpm5.org
/files
/popt
/
19 PKG_HASH
:=e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8
21 PKG_CPE_ID
:=cpe
:/a
:popt_project
:popt
24 PKG_REMOVE_FILES
:=autogen.sh aclocal.m4
29 include $(INCLUDE_DIR
)/package.mk
31 TARGET_CFLAGS
+= $(FPIC
)
33 define Package
/libpopt
36 TITLE
:=A command line option parsing library
37 URL
:=http
://rpm5.org
/files
/popt
/
41 CONFIGURE_ARGS
+= --enable-shared
--enable-static
43 define Build
/InstallDev
44 $(INSTALL_DIR
) $(1)/usr
/include
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/popt.h
$(1)/usr
/include/
46 $(INSTALL_DIR
) $(1)/usr
/lib
47 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpopt.
{a
,so
*} $(1)/usr
/lib
/
48 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/popt.
pc $(1)/usr
/lib
/pkgconfig
/
52 define Package
/libpopt
/install
53 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpopt.so.
* $(1)/usr
/lib
/
57 $(eval
$(call BuildPackage
,libpopt
))