source: packages/libs/gettext/Makefile @ 6500

Last change on this file since 6500 was 6500, checked in by pavlov, 10 years ago

huge propset, fixes eol-style on everything and sets keywords and copyright on all Makefiles

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=gettext
12PKG_VERSION:=0.16.1
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@GNU/gettext
17PKG_MD5SUM:=
18PKG_CAT:=zcat
19
20PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/libintl
26  SECTION:=libs
27  CATEGORY:=Libraries
28  TITLE:=GNU Internationalization library
29  URL:=http://www.gnu.org/software/gettext/
30endef
31
32define Build/Configure
33        $(call Build/Configure/Default, \
34                --enable-shared \
35                --enable-static \
36                --disable-rpath \
37                --enable-nls \
38                --disable-java \
39                --disable-native-java \
40                --disable-openmp \
41                --with-included-gettext \
42                --without-libintl-prefix \
43                --without-libexpat-prefix \
44                --without-emacs \
45        )
46endef
47
48define Build/Compile
49        $(MAKE) -C $(PKG_BUILD_DIR) \
50                DESTDIR="$(PKG_INSTALL_DIR)" \
51                all install
52endef
53
54define Build/InstallDev
55        mkdir -p $(STAGING_DIR)/usr/lib/libintl/include
56        $(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(STAGING_DIR)/usr/lib/libintl/include/
57        mkdir -p $(STAGING_DIR)/usr/lib/libintl/lib
58        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(STAGING_DIR)/usr/lib/libintl/lib/
59endef
60
61define Build/UninstallDev       
62        rm -rf  $(STAGING_DIR)/usr/lib/libintl
63endef
64
65define Package/libintl/install
66        $(INSTALL_DIR) $(1)/usr/lib
67        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
68endef
69
70$(eval $(call BuildPackage,libintl))
Note: See TracBrowser for help on using the repository browser.