summaryrefslogtreecommitdiff
path: root/package/gettext/Makefile
blob: 4ef29852e65a567b809977fcd40da66359e154be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME=		gettext
PKG_VERSION=		0.16.1
PKG_RELEASE=		1
PKG_MD5SUM=		3d9ad24301c6d6b17ec30704a13fe127
PKG_DESCR:=		internationalisation library
PKG_SECTION:=		libs
PKG_DEPENDS:=		libiconv libpthread
PKG_BUILDDEP+=		libiconv libpthread
PKG_URL:=		http://www.gnu.org/software/gettext/
PKG_SITES:=		${MASTER_SITE_GNU:=gettext/}

ifeq ($(ADK_STATIC),y)
PKG_OPTS:=		libonly
endif

WRKDIST=		${WRKDIR}/${PKG_NAME}-${PKG_VERSION}/gettext-runtime

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,GETTEXT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))

CONFIGURE_ARGS+=	--disable-java \
			--disable-native-java \
			--disable-csharp \
			--enable-nls \
			--disable-libasprintf \
			--enable-threads=posix \
			--disable-openmp \
			--with-libiconv-prefix='${STAGING_DIR}/usr' \
			--with-included-gettext \
			--without-emacs
CONFIGURE_ENV+=		nls_cv_use_gnu_gettext=yes \
			ac_cv_gnu_library_2=no \
			gt_use_preinstalled_gnugettext=no

post-install:
	${INSTALL_DIR} ${IDIR_GETTEXT}/usr/lib
	${CP} ${WRKINST}/usr/lib/*.so* ${IDIR_GETTEXT}/usr/lib

include ${TOPDIR}/mk/pkg-bottom.mk