source: packages/libs/libiconv/Makefile @ 24324

Last change on this file since 24324 was 24324, checked in by jow, 6 years ago

[packages] libiconv: don't autoreconf

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1#
2# Copyright (C) 2006-2009 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:=libiconv
11PKG_VERSION:=1.11.1
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@GNU/libiconv
16PKG_MD5SUM:=d42b97f6ef5dd0ba4469d520ed732fed
17
18PKG_FIXUP = libtool no-autoreconf
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/libiconv/Default
23  URL:=http://www.gnu.org/software/libiconv/
24  TITLE:=Character set conversion
25endef
26
27define Package/libiconv
28  $(call Package/libiconv/Default)
29  SECTION:=libs
30  CATEGORY:=Libraries
31  TITLE+= library
32endef
33
34define Package/libcharset
35  $(call Package/libiconv/Default)
36  SECTION:=libs
37  CATEGORY:=Libraries
38  TITLE+= library
39endef
40
41define Package/iconv
42  $(call Package/libiconv/Default)
43  DEPENDS:=+libiconv +libcharset
44  SECTION:=utils
45  CATEGORY:=Utilities
46  TITLE+= utility
47endef
48
49TARGET_CFLAGS += $(FPIC) -DUSE_DOS
50
51CONFIGURE_ARGS += \
52        --enable-shared \
53        --enable-static \
54        --disable-rpath \
55        --enable-relocatable
56
57define Build/Compile
58        $(MAKE) -C $(PKG_BUILD_DIR) \
59                CC="$(TARGET_CC)" \
60                DESTDIR="$(PKG_INSTALL_DIR)" \
61                install
62endef
63
64define Build/InstallDev
65        $(INSTALL_DIR) $(1)/usr/lib/libiconv/include
66        $(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv/include/
67        $(INSTALL_DIR) $(1)/usr/lib/libiconv/lib
68        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.{a,so*} $(1)/usr/lib/libiconv/lib/
69        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.{a,so*} $(1)/usr/lib/libiconv/lib/
70endef
71
72define Package/libcharset/install
73        $(INSTALL_DIR) $(1)/usr/lib
74        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcharset.so* $(1)/usr/lib/
75endef
76
77define Package/libiconv/install
78        $(INSTALL_DIR) $(1)/usr/lib
79        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiconv.so* $(1)/usr/lib/
80endef
81
82$(eval $(call BuildPackage,libcharset))
83$(eval $(call BuildPackage,libiconv))
84$(eval $(call BuildPackage,iconv))
Note: See TracBrowser for help on using the repository browser.