OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 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.16 |
||
12 | PKG_RELEASE:=2 |
||
13 | |||
14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
||
15 | PKG_SOURCE_URL:= \ |
||
16 | http://distfiles.gentoo.org/distfiles/ \ |
||
17 | http://distcache.freebsd.org/ports-distfiles/ \ |
||
18 | http://rpm5.org/files/popt/ |
||
19 | PKG_HASH:=e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8 |
||
20 | PKG_LICENSE:=MIT |
||
21 | |||
22 | PKG_FIXUP:=autoreconf |
||
23 | PKG_REMOVE_FILES:=autogen.sh aclocal.m4 |
||
24 | |||
25 | PKG_INSTALL:=1 |
||
26 | PKG_BUILD_PARALLEL:=1 |
||
27 | |||
28 | include $(INCLUDE_DIR)/package.mk |
||
29 | |||
30 | TARGET_CFLAGS += $(FPIC) |
||
31 | |||
32 | define Package/libpopt |
||
33 | SECTION:=libs |
||
34 | CATEGORY:=Libraries |
||
35 | TITLE:=A command line option parsing library |
||
36 | URL:=http://rpm5.org/files/popt/ |
||
37 | ABI_VERSION:=0 |
||
38 | endef |
||
39 | |||
40 | CONFIGURE_ARGS += --enable-shared --enable-static |
||
41 | |||
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/ |
||
47 | $(INSTALL_DIR) $(1)/usr/lib/pkgconfig |
||
48 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/popt.pc $(1)/usr/lib/pkgconfig/ |
||
49 | endef |
||
50 | |||
51 | define Package/libpopt/install |
||
52 | $(INSTALL_DIR) $(1)/usr/lib |
||
53 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpopt.so.* $(1)/usr/lib/ |
||
54 | endef |
||
55 | |||
56 | $(eval $(call BuildPackage,libpopt)) |
||
57 |