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