Makefile 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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:= 4
  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. PKG_BUILDDEP_UCLIBC_NG:=libiconv-tiny
  20. include ${ADK_TOPDIR}/mk/host.mk
  21. include ${ADK_TOPDIR}/mk/package.mk
  22. $(eval $(call HOST_template,GLIB,glib,${PKG_VERSION}-${PKG_RELEASE}))
  23. $(eval $(call PKG_template,GLIB,glib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  24. TARGET_CPPFLAGS+= -D_GNU_SOURCE
  25. CONFIGURE_ARGS+= --disable-mem-pools \
  26. --disable-rebuilds \
  27. --disable-fam \
  28. --with-threads=posix
  29. CONFIGURE_ENV+= glib_cv_long_long_format=ll \
  30. glib_cv_stack_grows=no \
  31. glib_cv_have_strlcpy=no \
  32. glib_cv_uscore=no \
  33. ac_cv_func_posix_getpwuid_r=yes \
  34. ac_cv_func_posix_getgrgid_r=yes
  35. HOST_STYLE:= auto
  36. HOST_CONFIGURE_ARGS+= --disable-fam \
  37. --enable-static \
  38. --disable-compile-warnings
  39. glib-install:
  40. ${INSTALL_DIR} ${IDIR_GLIB}/usr/lib
  41. ${CP} ${WRKINST}/usr/lib/libgio*.so* ${IDIR_GLIB}/usr/lib
  42. ${CP} ${WRKINST}/usr/lib/libglib*.so* ${IDIR_GLIB}/usr/lib
  43. ${CP} ${WRKINST}/usr/lib/libgobject*.so* ${IDIR_GLIB}/usr/lib
  44. ${CP} ${WRKINST}/usr/lib/libgmodule*.so* ${IDIR_GLIB}/usr/lib
  45. ${CP} ${WRKINST}/usr/lib/libgthread*.so* ${IDIR_GLIB}/usr/lib
  46. # workaround for dev subpackage
  47. ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/include
  48. ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/lib/glib-2.0/include
  49. ${CP} ${WRKINST}/usr/lib/glib-2.0/include/glibconfig.h \
  50. ${IDIR_GLIB_DEV}/usr/lib/glib-2.0/include
  51. ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/bin
  52. $(INSTALL_BIN) $(WRKINST)/usr/bin/glib-genmarshal \
  53. ${IDIR_GLIB_DEV}/usr/bin
  54. include ${ADK_TOPDIR}/mk/host-bottom.mk
  55. include ${ADK_TOPDIR}/mk/pkg-bottom.mk