1
0

Makefile 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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:= glib
  5. PKG_VERSION:= 2.28.1
  6. PKG_EXTRAVER:= 2.28
  7. PKG_RELEASE:= 1
  8. PKG_MD5SUM:= 9f6e85e1e38490c3956f4415bcd33e6e
  9. PKG_DESCR:= low-level core library that forms the basis of GTK+
  10. PKG_SECTION:= libs
  11. PKG_DEPENDS:= libintl libiconv libpthread
  12. PKG_BUILDDEP:= gettext libiconv dbus
  13. PKG_URL:= http://www.gtk.org/
  14. PKG_SITES:= http://ftp.gnome.org/pub/gnome/sources/glib/${PKG_EXTRAVER}/
  15. PKG_SUBPKGS:= GLIB GLIB_DEV
  16. PKGSC_GLIB_DEV:= devel
  17. PKGSD_GLIB_DEV:= glib headers
  18. ifeq ($(ADK_STATIC),y)
  19. PKG_OPTS:= libonly
  20. endif
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,GLIB,glib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  23. $(eval $(call PKG_template,GLIB_DEV,glib-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_GLIB_DEV},${PKGSC_GLIB_DEV},${PKG_OPTS}))
  24. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  25. CONFIGURE_ARGS+= --enable-debug=no \
  26. --disable-mem-pools \
  27. --disable-rebuilds \
  28. --disable-fam \
  29. --with-libiconv=gnu \
  30. --with-threads=posix
  31. CONFIGURE_ENV+= glib_cv_long_long_format=ll \
  32. glib_cv_stack_grows=no \
  33. glib_cv_have_strlcpy=no \
  34. glib_cv_uscore=no \
  35. ac_cv_func_posix_getpwuid_r=yes \
  36. ac_cv_func_posix_getgrgid_r=yes
  37. pre-configure:
  38. ifneq ($(OStype),Darwin)
  39. (cd ${WRKBUILD}; rm -rf config.{cache,status}; \
  40. ./configure --prefix=$(STAGING_HOST_DIR) \
  41. );
  42. ${MAKE} -C ${WRKBUILD} V=1
  43. $(CP) ${WRKBUILD}/gio/.libs/glib-compile-schemas ${STAGING_HOST_DIR}/bin
  44. $(CP) ${WRKBUILD}/gobject/.libs/glib-genmarshal ${STAGING_HOST_DIR}/bin
  45. $(CP) ${WRKBUILD}/gobject/glib-mkenums ${STAGING_HOST_DIR}/bin
  46. ${MAKE} -C ${WRKBUILD} clean
  47. endif
  48. glib-install:
  49. ${INSTALL_DIR} ${IDIR_GLIB}/usr/lib
  50. ${CP} ${WRKINST}/usr/lib/libgio*.so* ${IDIR_GLIB}/usr/lib
  51. ${CP} ${WRKINST}/usr/lib/libglib*.so* ${IDIR_GLIB}/usr/lib
  52. ${CP} ${WRKINST}/usr/lib/libgobject*.so* ${IDIR_GLIB}/usr/lib
  53. ${CP} ${WRKINST}/usr/lib/libgmodule*.so* ${IDIR_GLIB}/usr/lib
  54. ${CP} ${WRKINST}/usr/lib/libgthread*.so* ${IDIR_GLIB}/usr/lib
  55. glib-dev-install:
  56. ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/include
  57. ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/lib/glib-2.0/include
  58. ${CP} ${WRKINST}/usr/lib/glib-2.0/include/glibconfig.h \
  59. ${IDIR_GLIB_DEV}/usr/lib/glib-2.0/include
  60. ${CP} ${WRKINST}/usr/include/* \
  61. ${IDIR_GLIB_DEV}/usr/include
  62. ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/lib/pkgconfig
  63. ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc \
  64. ${IDIR_GLIB_DEV}/usr/lib/pkgconfig
  65. ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/bin
  66. $(INSTALL_BIN) $(WRKINST)/usr/bin/glib-genmarshal \
  67. ${IDIR_GLIB_DEV}/usr/bin
  68. include ${TOPDIR}/mk/pkg-bottom.mk