packages/libs/gettext/Makefile
blogic a42a5c3017 Patch to make gettext usable when uClibc is compiled without locale support.This patch unlocks the functions of gettext to work on systems without locale support. On an default OpenWrt the uClibc is compiled with only a dummy
support for locale, which is unusable and makes so the gettext library completely unusable on this systems.

git-svn-id: svn://svn.openwrt.org/openwrt/packages@13057 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-28 16:31:38 +00:00

66 lines
1.5 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=gettext
PKG_VERSION:=0.16.1
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/gettext
PKG_MD5SUM:=3d9ad24301c6d6b17ec30704a13fe127
PKG_FIXUP = libtool
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/Compile
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all
endef
define Build/Install
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
endef
define Build/InstallDev
mkdir -p $(1)/usr/lib/libintl/include
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl/include/
mkdir -p $(1)/usr/lib/libintl/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl/lib/
endef
define Package/libintl/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libintl))