OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2006-2015 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:=libiconv-full |
||
11 | PKG_VERSION:=1.11.1 |
||
12 | PKG_RELEASE:=4 |
||
13 | |||
14 | PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io> |
||
15 | |||
16 | PKG_SOURCE:=libiconv-$(PKG_VERSION).tar.gz |
||
17 | PKG_SOURCE_URL:=@GNU/libiconv |
||
18 | PKG_HASH:=e78c347a1a0cb15f2648519e9799151f4b4a934b61ad9ee7424478efe2b8257f |
||
19 | PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION) |
||
20 | PKG_LICENSE:=LGPL-2.0 |
||
21 | PKG_LICENSE_FILES:=COPYING.LIB |
||
22 | |||
23 | PKG_FIXUP:=patch-libtool |
||
24 | |||
25 | include $(INCLUDE_DIR)/package.mk |
||
26 | |||
27 | define Package/libiconv-full/Default |
||
28 | URL:=http://www.gnu.org/software/libiconv/ |
||
29 | TITLE:=Character set conversion |
||
30 | endef |
||
31 | |||
32 | define Package/libiconv-full |
||
33 | $(call Package/libiconv-full/Default) |
||
34 | SECTION:=libs |
||
35 | CATEGORY:=Libraries |
||
36 | TITLE+= library |
||
37 | ABI_VERSION:=2 |
||
38 | endef |
||
39 | |||
40 | define Package/libcharset |
||
41 | $(call Package/libiconv-full/Default) |
||
42 | SECTION:=libs |
||
43 | CATEGORY:=Libraries |
||
44 | TITLE+= library |
||
45 | ABI_VERSION:=1 |
||
46 | endef |
||
47 | |||
48 | define Package/iconv |
||
49 | $(call Package/libiconv-full/Default) |
||
50 | DEPENDS:=+libiconv-full +libcharset |
||
51 | SECTION:=utils |
||
52 | CATEGORY:=Utilities |
||
53 | TITLE+= utility |
||
54 | endef |
||
55 | |||
56 | TARGET_CFLAGS += $(FPIC) -DUSE_DOS -std=gnu89 |
||
57 | |||
58 | CONFIGURE_ARGS += \ |
||
59 | --enable-shared \ |
||
60 | --enable-static \ |
||
61 | --disable-rpath \ |
||
62 | --enable-relocatable |
||
63 | |||
64 | define Build/Compile |
||
65 | $(MAKE) -C $(PKG_BUILD_DIR) \ |
||
66 | CC="$(TARGET_CC)" \ |
||
67 | DESTDIR="$(PKG_INSTALL_DIR)" \ |
||
68 | install |
||
69 | endef |
||
70 | |||
71 | define Build/InstallDev |
||
72 | $(INSTALL_DIR) $(1)/usr/lib/libiconv-full/include |
||
73 | $(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv-full/include/ |
||
74 | |||
75 | $(INSTALL_DIR) $(1)/usr/lib/libiconv-full/lib |
||
76 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.{a,so*} $(1)/usr/lib/libiconv-full/lib/ |
||
77 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.{a,so*} $(1)/usr/lib/libiconv-full/lib/ |
||
78 | endef |
||
79 | |||
80 | define Package/libcharset/install |
||
81 | $(INSTALL_DIR) $(1)/usr/lib |
||
82 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.so.* $(1)/usr/lib/ |
||
83 | endef |
||
84 | |||
85 | define Package/libiconv-full/install |
||
86 | $(INSTALL_DIR) $(1)/usr/lib |
||
87 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.so.* $(1)/usr/lib/ |
||
88 | endef |
||
89 | |||
90 | define Package/iconv/install |
||
91 | $(INSTALL_DIR) $(1)/usr/bin |
||
92 | $(CP) $(PKG_INSTALL_DIR)/usr/bin/iconv $(1)/usr/bin/ |
||
93 | endef |
||
94 | |||
95 | $(eval $(call BuildPackage,libcharset)) |
||
96 | $(eval $(call BuildPackage,libiconv-full)) |
||
97 | $(eval $(call BuildPackage,iconv)) |