2006-10-30 13:51:50 +00:00
|
|
|
#
|
2010-02-19 00:14:01 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-10-30 13:51:50 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-06-16 20:52:42 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=popt
|
|
|
|
PKG_VERSION:=1.7
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_RELEASE:=5
|
2006-06-16 20:52:42 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-05-25 14:41:56 +00:00
|
|
|
PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_MD5SUM:=5988e7aeb0ae4dac8d83561265984cc9
|
2006-06-16 20:52:42 +00:00
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-12-10 23:34:48 +00:00
|
|
|
PKG_REMOVE_FILES:=autogen.sh aclocal.m4
|
2010-12-09 13:27:08 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
2010-09-07 10:04:42 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2010-02-18 13:10:21 +00:00
|
|
|
|
2006-06-21 02:32:39 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2006-06-16 20:52:42 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2006-06-16 20:52:42 +00:00
|
|
|
define Package/libpopt
|
2006-10-30 13:51:50 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A command line option parsing library
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=http://rpm5.org/files/popt/
|
2006-06-16 20:52:42 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
)
|
2006-06-16 20:52:42 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/popt.h $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpopt.{a,so*} $(1)/usr/lib/
|
2006-06-16 20:52:42 +00:00
|
|
|
endef
|
2006-10-30 13:51:50 +00:00
|
|
|
|
|
|
|
define Package/libpopt/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-30 13:51:50 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpopt.so.* $(1)/usr/lib/
|
2006-06-16 20:52:42 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-03 17:18:40 +00:00
|
|
|
$(eval $(call RequireCommand,xgettext, \
|
2007-12-13 15:25:02 +00:00
|
|
|
$(PKG_NAME) requires the GNU gettext development package installed on the local system to build. \
|
2006-07-29 11:30:48 +00:00
|
|
|
))
|
2009-05-14 07:13:06 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libpopt))
|
|
|
|
|