Makefile 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 LIBINTL_DEV GETTEXT MSGFMT
  15. PKGSD_LIBINTL_DEV:= libintl headers
  16. PKGSC_LIBINTL_DEV:= devel
  17. PKGSD_GETTEXT:= gettext utility
  18. PKGSC_GETTEXT:= misc
  19. PKGSS_GETTEXT:= libintl
  20. PKGSD_MSGFMT:= msgfmt utility
  21. PKGSC_MSGFMT:= misc
  22. PKGSS_MSGFMT:= libintl
  23. ifeq ($(ADK_STATIC),y)
  24. PKG_OPTS:= libonly
  25. endif
  26. include ${TOPDIR}/mk/package.mk
  27. $(eval $(call PKG_template,LIBINTL,libintl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  28. $(eval $(call PKG_template,LIBINTL_DEV,libintl-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBINTL_DEV},${PKGSC_LIBINTL_DEV},${PKG_OPTS}))
  29. $(eval $(call PKG_template,GETTEXT,gettext,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_GETTEXT},${PKGSD_GETTEXT},${PKGSC_GETTEXT}))
  30. $(eval $(call PKG_template,MSGFMT,msgfmt,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_MSGFMT},${PKGSD_MSGFMT},${PKGSC_MSGFMT}))
  31. CONFIGURE_ARGS+= --disable-java \
  32. --disable-native-java \
  33. --disable-csharp \
  34. --disable-libasprintf \
  35. --disable-rpath \
  36. --enable-threads=posix \
  37. --enable-nls \
  38. --disable-openmp \
  39. --with-libiconv-prefix='${STAGING_TARGET_DIR}/usr' \
  40. --with-included-gettext \
  41. --without-emacs
  42. CONFIGURE_ENV+= nls_cv_use_gnu_gettext=yes \
  43. ac_cv_gnu_library_2=no \
  44. gt_use_preinstalled_gnugettext=no
  45. INSTALL_STYLE:= manual
  46. post-build:
  47. ${INSTALL_DIR} ${STAGING_DIR}/usr/include ${STAGING_DIR}/usr/lib
  48. $(CP) $(WRKBUILD)/gettext-runtime/intl/libintl.h ${STAGING_DIR}/usr/include
  49. ${CP} ${WRKBUILD}/gettext-runtime/intl/.libs/libintl.so* \
  50. ${STAGING_DIR}/usr/lib
  51. do-install:
  52. ${INSTALL_DIR} ${IDIR_LIBINTL}/usr/lib
  53. ${CP} ${WRKBUILD}/gettext-runtime/intl/.libs/libintl.so* \
  54. ${IDIR_LIBINTL}/usr/lib
  55. ${INSTALL_DIR} ${IDIR_LIBINTL_DEV}/usr/include
  56. ${INSTALL_DATA} ${WRKBUILD}/gettext-runtime/intl/libintl.h \
  57. ${IDIR_LIBINTL_DEV}/usr/include
  58. ${INSTALL_DIR} ${IDIR_GETTEXT}/usr/bin
  59. $(INSTALL_BIN) $(WRKBUILD)/gettext-tools/src/.libs/xgettext \
  60. $(IDIR_GETTEXT)/usr/bin
  61. $(INSTALL_BIN) $(WRKBUILD)/gettext-runtime/src/.libs/gettext \
  62. $(IDIR_GETTEXT)/usr/bin
  63. ${INSTALL_DIR} ${IDIR_MSGFMT}/usr/bin
  64. ${INSTALL_DIR} ${IDIR_MSGFMT}/usr/lib
  65. ${CP} ${WRKBUILD}/gettext-tools/libgettextpo/.libs/libgettextpo.so* \
  66. ${IDIR_MSGFMT}/usr/lib
  67. ${CP} ${WRKBUILD}/gettext-tools/gnulib-lib/.libs/libgettextlib*so* \
  68. ${IDIR_MSGFMT}/usr/lib
  69. ${CP} ${WRKBUILD}/gettext-tools/src/.libs/libgettextsrc*so* \
  70. ${IDIR_MSGFMT}/usr/lib
  71. $(INSTALL_BIN) $(WRKBUILD)/gettext-tools/src/.libs/msgfmt \
  72. $(IDIR_MSGFMT)/usr/bin
  73. $(INSTALL_BIN) $(WRKBUILD)/gettext-tools/src/.libs/msgmerge \
  74. $(IDIR_MSGFMT)/usr/bin
  75. include ${TOPDIR}/mk/pkg-bottom.mk