[packages] Add missing libtool fixups
[openwrt/svn-archive/archive.git] / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=popt
11 PKG_VERSION:=1.7
12 PKG_RELEASE:=5
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
16 PKG_MD5SUM:=5988e7aeb0ae4dac8d83561265984cc9
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS += $(FPIC)
24
25 define Package/libpopt
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=A command line option parsing library
29 URL:=http://rpm5.org/files/popt/
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default, \
34 --enable-shared \
35 --enable-static \
36 )
37 endef
38
39 define Build/InstallDev
40 $(INSTALL_DIR) $(1)/usr/include
41 $(CP) $(PKG_INSTALL_DIR)/usr/include/popt.h $(1)/usr/include/
42 $(INSTALL_DIR) $(1)/usr/lib
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpopt.{a,so*} $(1)/usr/lib/
44 endef
45
46 define Package/libpopt/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpopt.so.* $(1)/usr/lib/
49 endef
50
51 $(eval $(call RequireCommand,xgettext, \
52 $(PKG_NAME) requires the GNU gettext development package installed on the local system to build. \
53 ))
54
55 $(eval $(call BuildPackage,libpopt))
56