Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.38.2
  6. PKG_RELEASE:= 1
  7. PKG_EXTRAVER:= 2.38
  8. PKG_MD5SUM:= 26d1d08e478fc48c181ca8be44f5b69f
  9. PKG_DESCR:= low-level core library that forms the basis of GTK+
  10. PKG_SECTION:= libs
  11. PKG_DEPENDS:= libpthread
  12. PKG_BUILDDEP:= libffi gettext-tiny libiconv-tiny glib-host zlib libelf dbus
  13. PKG_URL:= http://www.gtk.org/
  14. PKG_SITES:= http://ftp.gnome.org/pub/gnome/sources/glib/${PKG_EXTRAVER}/
  15. PKG_NOPARALLEL:= 1
  16. PKG_OPTS:= dev
  17. ifeq ($(ADK_STATIC),y)
  18. PKG_OPTS+= libonly
  19. endif
  20. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
  21. include ${TOPDIR}/mk/host.mk
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call HOST_template,GLIB,glib,${PKG_VERSION}-${PKG_RELEASE}))
  24. $(eval $(call PKG_template,GLIB,glib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  25. HOST_STYLE:= auto
  26. TARGET_CPPFLAGS+= -D_GNU_SOURCE
  27. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  28. CONFIGURE_ARGS+= --disable-mem-pools \
  29. --disable-rebuilds \
  30. --disable-fam \
  31. --with-threads=posix
  32. CONFIGURE_ENV+= glib_cv_long_long_format=ll \
  33. glib_cv_stack_grows=no \
  34. glib_cv_have_strlcpy=no \
  35. glib_cv_uscore=no \
  36. ac_cv_func_posix_getpwuid_r=yes \
  37. ac_cv_func_posix_getgrgid_r=yes
  38. HOST_CONFIGURE_ARGS+= --disable-fam \
  39. --disable-compile-warnings
  40. glib-install:
  41. ${INSTALL_DIR} ${IDIR_GLIB}/usr/lib
  42. ${CP} ${WRKINST}/usr/lib/libgio*.so* ${IDIR_GLIB}/usr/lib
  43. ${CP} ${WRKINST}/usr/lib/libglib*.so* ${IDIR_GLIB}/usr/lib
  44. ${CP} ${WRKINST}/usr/lib/libgobject*.so* ${IDIR_GLIB}/usr/lib
  45. ${CP} ${WRKINST}/usr/lib/libgmodule*.so* ${IDIR_GLIB}/usr/lib
  46. ${CP} ${WRKINST}/usr/lib/libgthread*.so* ${IDIR_GLIB}/usr/lib
  47. # workaround for dev subpackage
  48. ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/include
  49. ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/lib/glib-2.0/include
  50. ${CP} ${WRKINST}/usr/lib/glib-2.0/include/glibconfig.h \
  51. ${IDIR_GLIB_DEV}/usr/lib/glib-2.0/include
  52. ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/bin
  53. $(INSTALL_BIN) $(WRKINST)/usr/bin/glib-genmarshal \
  54. ${IDIR_GLIB_DEV}/usr/bin
  55. include ${TOPDIR}/mk/host-bottom.mk
  56. include ${TOPDIR}/mk/pkg-bottom.mk