Root/package/libs/popt/Makefile

1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=popt
11PKG_VERSION:=1.7
12PKG_RELEASE:=5
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
16PKG_MD5SUM:=5988e7aeb0ae4dac8d83561265984cc9
17
18PKG_FIXUP:=autoreconf
19PKG_REMOVE_FILES:=autogen.sh aclocal.m4
20
21PKG_INSTALL:=1
22PKG_BUILD_PARALLEL:=1
23
24include $(INCLUDE_DIR)/package.mk
25
26TARGET_CFLAGS += $(FPIC)
27
28define Package/libpopt
29  SECTION:=libs
30  CATEGORY:=Libraries
31  TITLE:=A command line option parsing library
32  URL:=http://rpm5.org/files/popt/
33endef
34
35define Build/Configure
36    $(call Build/Configure/Default, \
37        --enable-shared \
38        --enable-static \
39    )
40endef
41
42define 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/
47endef
48
49define Package/libpopt/install
50    $(INSTALL_DIR) $(1)/usr/lib
51    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpopt.so.* $(1)/usr/lib/
52endef
53
54$(eval $(call RequireCommand,xgettext, \
55    $(PKG_NAME) requires the GNU gettext development package installed on the local system to build. \
56))
57
58$(eval $(call BuildPackage,libpopt))
59
60

Archive Download this file



interactive