# $FreeWRT$ #- # This file is part of the FreeWRT project. FreeWRT is copyrighted # material, please see the LICENCE file in the top-level directory # or at http://www.freewrt.org/licence for details. include ${TOPDIR}/rules.mk ifeq ($(strip ${FWRT_PACKAGE_LIBINTL}),) PKG_NAME= libnointl PKG_VERSION= 20091122 PKG_RELEASE= 1 PKG_MD5SUM= 2b9af51a817811abcaf0189d6548edb1 MASTER_SITES= ${MASTER_SITE_MIRBSD:distfiles/=dist/hosted/libnointl/} WRKDIST= ${WRKDIR}/${PKG_NAME} else PKG_NAME= gettext PKG_VERSION= 0.16.1 PKG_RELEASE= 1 PKG_MD5SUM= 3d9ad24301c6d6b17ec30704a13fe127 MASTER_SITES= ${MASTER_SITE_GNU:=gettext/} WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}/gettext-runtime endif include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,GETTEXT,gettext,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) ifeq ($(strip ${FWRT_PACKAGE_LIBINTL}),) CONFIGURE_STYLE= bsd BUILD_STYLE= bsd INSTALL_STYLE= bsd XAKE_FLAGS+= LIB=intl SHLIB_VERSION=8.0 _LIBS_STATIC=no \ SHLIB_SONAME=libintl.so.8.0.1 post-install: cp ${WRKSRC}/libintl.h ${WRKINST}/usr/include/ cd ${WRKINST} && ${PCP} usr/lib/*.so.* ${IDIR_GETTEXT}/ else CONFIGURE_STYLE= gnu 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 BUILD_STYLE= auto INSTALL_STYLE= auto confprog post-install: cd ${WRKINST} && ${PCP} usr/lib/*.so.* ${IDIR_GETTEXT}/ echo 'Depends: libiconv, libpthread' >>${IDIR_GETTEXT}/CONTROL/control endif include ${TOPDIR}/mk/pkg-bottom.mk