Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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:= cups
  5. PKG_VERSION:= 1.7.1
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 55277c40fd4b7183dc3671d39c5c42b7
  8. PKG_DESCR:= Common Unix Printing System
  9. PKG_SECTION:= net/misc
  10. PKG_DEPENDS:= zlib libpthread
  11. PKG_BUILDDEP:= cups-host zlib
  12. PKG_URL:= http://www.cups.org/
  13. PKG_SITES:= http://www.cups.org/software/${PKG_VERSION}/
  14. PKG_NEED_CXX:= 1
  15. PKG_OPTS:= dev
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-source.tar.bz2
  17. include ${TOPDIR}/mk/host.mk
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call HOST_template,CUPS,cups,${PKG_VERSION}-${PKG_RELEASE}))
  20. $(eval $(call PKG_template,CUPS,cups,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  21. ifneq ($(ADK_HOST_LINUX),y)
  22. HOST_LINUX_ONLY:= 1
  23. endif
  24. HOST_STYLE:= auto
  25. HOST_CONFIGURE_ARGS+= --disable-tcp-wrappers \
  26. --disable-webif \
  27. --disable-gssapi \
  28. --disable-pam \
  29. --disable-dbus \
  30. --without-java \
  31. --without-perl \
  32. --without-python \
  33. --without-php \
  34. --disable-gnutls \
  35. --disable-openssl \
  36. --disable-cdsassl \
  37. --disable-dbus \
  38. --disable-ssl \
  39. --with-components=core \
  40. --with-rcdir=$(STAGING_HOST_DIR)/etc
  41. CONFIGURE_ENV+= ac_cv_func_sigset=no \
  42. OPTIM='-fPIC'
  43. CONFIGURE_ARGS+= --with-cups-user=cups \
  44. --with-cups-group=cups \
  45. --disable-webif \
  46. --disable-tcp-wrappers \
  47. --disable-gssapi \
  48. --disable-pam \
  49. --disable-dbus \
  50. --without-java \
  51. --without-perl \
  52. --without-python \
  53. --without-php \
  54. --disable-gnutls \
  55. --disable-openssl \
  56. --disable-cdsassl \
  57. --disable-dbus \
  58. --disable-ssl \
  59. --with-components=core \
  60. --with-rcdir=$(STAGING_TARGET_DIR)/etc
  61. FAKE_FLAGS+= DSTROOT="${WRKINST}" STRIP="/bin/true"
  62. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  63. XAKE_FLAGS+= OPTIM='-fPIC -fstack-protector'
  64. else
  65. XAKE_FLAGS+= OPTIM='-fPIC'
  66. endif
  67. cups-install:
  68. ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib
  69. ${CP} ${WRKINST}/usr/lib/libcups*.so* ${IDIR_CUPS}/usr/lib/
  70. include ${TOPDIR}/mk/host-bottom.mk
  71. include ${TOPDIR}/mk/pkg-bottom.mk