Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.27.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ad9c80adb624a1ffe3d9753bab8a578a
  8. PKG_DESCR:= low-level core library that forms the basis of GTK+
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libintl libiconv libpthread
  11. PKG_BUILDDEP:= gettext libiconv
  12. PKG_URL:= http://www.gtk.org/
  13. PKG_SITES:= http://ftp.gnome.org/pub/gnome/sources/glib/2.27/
  14. ifeq ($(ADK_STATIC),y)
  15. PKG_OPTS:= libonly
  16. endif
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,GLIB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. CONFIGURE_ARGS+= --enable-debug=no \
  20. --disable-mem-pools \
  21. --disable-rebuilds \
  22. --disable-fam \
  23. --with-libiconv=gnu \
  24. --with-threads=posix
  25. CONFIGURE_ENV+= glib_cv_long_long_format=ll \
  26. glib_cv_stack_grows=no \
  27. glib_cv_have_strlcpy=no \
  28. glib_cv_uscore=no \
  29. ac_cv_func_posix_getpwuid_r=yes \
  30. ac_cv_func_posix_getgrgid_r=yes
  31. pre-configure:
  32. ifneq ($(OStype),Darwin)
  33. (cd ${WRKBUILD}; rm -rf config.{cache,status}; \
  34. ./configure --prefix=$(STAGING_HOST_DIR) \
  35. --with-libiconv=gnu \
  36. --enable-debug=no \
  37. --with-threads=posix \
  38. );
  39. env CFLAGS="-static" LDFLAGS="-static -liconv" ${MAKE} -C ${WRKBUILD}/glib
  40. env CFLAGS="-static" LDFLAGS="-static" ${MAKE} -C ${WRKBUILD}/gthread
  41. env CFLAGS="-static" LDFLAGS="-static" ${MAKE} -C ${WRKBUILD}/gio glib-compile-schemas
  42. env CFLAGS="-static" LDFLAGS="-static" ${MAKE} -C ${WRKBUILD}/gobject glib-genmarshal
  43. $(CP) ${WRKBUILD}/gio/glib-compile-schemas ${STAGING_HOST_DIR}/bin
  44. $(CP) ${WRKBUILD}/gobject/.libs/glib-genmarshal ${STAGING_HOST_DIR}/bin
  45. ${MAKE} -C ${WRKBUILD} clean
  46. endif
  47. post-install:
  48. ${INSTALL_DIR} ${IDIR_GLIB}/usr/lib
  49. ${CP} ${WRKINST}/usr/lib/libgio*.so* ${IDIR_GLIB}/usr/lib
  50. ${CP} ${WRKINST}/usr/lib/libglib*.so* ${IDIR_GLIB}/usr/lib
  51. ${CP} ${WRKINST}/usr/lib/libgobject*.so* ${IDIR_GLIB}/usr/lib
  52. ${CP} ${WRKINST}/usr/lib/libgmodule*.so* ${IDIR_GLIB}/usr/lib
  53. ${CP} ${WRKINST}/usr/lib/libgthread*.so* ${IDIR_GLIB}/usr/lib
  54. include ${TOPDIR}/mk/pkg-bottom.mk