1
0

Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME= gettext
  5. PKG_VERSION= 0.18.1.1
  6. PKG_RELEASE= 2
  7. PKG_MD5SUM:= 3dd55b952826d2b32f51308f2f91aa89
  8. PKG_DESCR:= internationalisation library
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= libiconv
  11. PKG_DEPENDS:= libiconv libpthread
  12. PKG_URL:= http://www.gnu.org/software/gettext/
  13. PKG_SITES:= ${MASTER_SITE_GNU:=gettext/}
  14. PKG_SUBPKGS:= LIBINTL GETTEXT MSGFMT
  15. PKGSD_GETTEXT:= gettext utility
  16. PKSSC_GETTEXT:= misc
  17. PKGSS_GETTEXT:= libintl
  18. PKGSD_MSGFMT:= msgfmt utility
  19. PKGSC_MSGFMT:= misc
  20. PKGSS_MSGFMT:= libintl
  21. ifeq ($(ADK_STATIC),y)
  22. PKG_OPTS:= libonly
  23. endif
  24. include ${TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,LIBINTL,libintl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  26. $(eval $(call PKG_template,GETTEXT,gettext,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_GETTEXT},${PKGSD_GETTEXT},${PKSSC_GETTEXT}))
  27. $(eval $(call PKG_template,MSGFMT,msgfmt,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_MSGFMT},${PKGSD_MSGFMT},${PKGSC_MSGFMT}))
  28. CONFIGURE_ARGS+= --disable-java \
  29. --disable-native-java \
  30. --disable-csharp \
  31. --disable-libasprintf \
  32. --disable-rpath \
  33. --enable-threads=posix \
  34. --enable-nls \
  35. --disable-openmp \
  36. --with-libiconv-prefix='${STAGING_TARGET_DIR}/usr' \
  37. --with-included-gettext \
  38. --without-emacs
  39. CONFIGURE_ENV+= nls_cv_use_gnu_gettext=yes \
  40. ac_cv_gnu_library_2=no \
  41. gt_use_preinstalled_gnugettext=no
  42. libintl-install:
  43. ${INSTALL_DIR} ${IDIR_LIBINTL}/usr/lib
  44. ${CP} ${WRKINST}/usr/lib/libintl.so* \
  45. ${IDIR_LIBINTL}/usr/lib
  46. gettext-install:
  47. ${INSTALL_DIR} ${IDIR_GETTEXT}/usr/bin
  48. $(INSTALL_BIN) $(WRKINST)/usr/bin/gettext \
  49. $(IDIR_GETTEXT)/usr/bin
  50. msgfmt-install:
  51. ${INSTALL_DIR} ${IDIR_MSGFMT}/usr/bin
  52. ${INSTALL_DIR} ${IDIR_MSGFMT}/usr/lib
  53. ${CP} ${WRKINST}/usr/lib/libgettext*so* \
  54. ${IDIR_MSGFMT}/usr/lib
  55. $(INSTALL_BIN) $(WRKINST)/usr/bin/msgfmt \
  56. $(IDIR_MSGFMT)/usr/bin
  57. include ${TOPDIR}/mk/pkg-bottom.mk