mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-25 23:22:28 +02:00
64 lines
1.4 KiB
Makefile
64 lines
1.4 KiB
Makefile
#
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=gettext
|
|
PKG_VERSION:=0.18.1.1
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=gettext-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@GNU/gettext
|
|
PKG_MD5SUM:=3dd55b952826d2b32f51308f2f91aa89
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/gettext-$(PKG_VERSION)
|
|
|
|
PKG_FIXUP:=libtool
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libintl
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=GNU Internationalization library
|
|
URL:=http://www.gnu.org/software/gettext/
|
|
endef
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
CONFIGURE_ARGS += \
|
|
--enable-shared \
|
|
--enable-static \
|
|
--disable-rpath \
|
|
--enable-nls \
|
|
--disable-java \
|
|
--disable-native-java \
|
|
--disable-openmp \
|
|
--with-included-gettext \
|
|
--without-libintl-prefix \
|
|
--without-libexpat-prefix \
|
|
--without-emacs
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/aclocal
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
|
|
endef
|
|
|
|
define Package/libintl/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libintl))
|