Add more license tags with SPDX identifiers
[openwrt/openwrt.git] / package / libs / gettext-full / Makefile
1 #
2 # Copyright (C) 2006-2013 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:=gettext-full
11 PKG_VERSION:=0.18.2.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=gettext-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/gettext
16 PKG_MD5SUM:=034c8103b14654ebd300fadac44d6f14
17 PKG_BUILD_DIR:=$(BUILD_DIR)/gettext-$(PKG_VERSION)
18 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/gettext-$(PKG_VERSION)
19
20 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
21 PKG_LICENSE:=GPL-3.0+
22
23 PKG_LICENSE:=GPL-3.0+
24 PKG_LICENSE_FILES:=COPYING
25
26 PKG_FIXUP:=autoreconf
27 PKG_INSTALL:=1
28 PKG_BUILD_PARALLEL:=0
29 PKG_BUILD_DEPENDS:=gettext-full/host
30 PKG_CHECK_FORMAT_SECURITY:=0
31
32 include $(INCLUDE_DIR)/package.mk
33 include $(INCLUDE_DIR)/host-build.mk
34
35 define Package/libintl-full
36 SECTION:=libs
37 CATEGORY:=Libraries
38 TITLE:=GNU Internationalization library
39 URL:=http://www.gnu.org/software/gettext/
40 endef
41
42 TARGET_CFLAGS += $(FPIC)
43 ifneq ($(HOST_OS),Linux)
44 TARGET_CFLAGS += -I$(STAGING_DIR_HOST)/include
45 endif
46 ifdef CONFIG_USE_MUSL
47 TARGET_CFLAGS += -D__UCLIBC__
48 endif
49
50 CONFIGURE_ARGS += \
51 --enable-shared \
52 --enable-static \
53 --disable-rpath \
54 --enable-nls \
55 --disable-java \
56 --disable-native-java \
57 --disable-openmp \
58 --with-included-gettext \
59 --without-libintl-prefix \
60 --without-libexpat-prefix \
61 --without-emacs
62
63 HOST_CONFIGURE_ARGS += \
64 --with-included-libxml --without-libxml2-prefix --with-included-libcroco
65
66 define Build/InstallDev
67 $(INSTALL_DIR) $(1)/usr/lib/libintl-full/include
68 $(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl-full/include/
69
70 $(INSTALL_DIR) $(1)/usr/lib/libintl-full/lib
71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl-full/lib/
72
73 $(INSTALL_DIR) $(1)/usr/share/aclocal
74 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
75 endef
76
77 define Package/libintl-full/install
78 $(INSTALL_DIR) $(1)/usr/lib
79 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so* $(1)/usr/lib/
80 endef
81
82 $(eval $(call HostBuild))
83 $(eval $(call BuildPackage,libintl-full))