Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. HOST_STYLE:= auto
  22. HOST_CONFIGURE_ARGS+= --disable-tcp-wrappers \
  23. --disable-webif \
  24. --disable-gssapi \
  25. --disable-pam \
  26. --disable-dbus \
  27. --without-java \
  28. --without-perl \
  29. --without-python \
  30. --without-php \
  31. --disable-gnutls \
  32. --disable-openssl \
  33. --disable-cdsassl \
  34. --disable-dbus \
  35. --disable-ssl \
  36. --with-components=core \
  37. --with-rcdir=$(STAGING_HOST_DIR)/etc
  38. CONFIGURE_ENV+= ac_cv_func_sigset=no \
  39. OPTIM='-fPIC'
  40. CONFIGURE_ARGS+= --with-cups-user=cups \
  41. --with-cups-group=cups \
  42. --disable-webif \
  43. --disable-tcp-wrappers \
  44. --disable-gssapi \
  45. --disable-pam \
  46. --disable-dbus \
  47. --without-java \
  48. --without-perl \
  49. --without-python \
  50. --without-php \
  51. --disable-gnutls \
  52. --disable-openssl \
  53. --disable-cdsassl \
  54. --disable-dbus \
  55. --disable-ssl \
  56. --with-components=core \
  57. --with-rcdir=$(STAGING_TARGET_DIR)/etc
  58. FAKE_FLAGS+= DSTROOT="${WRKINST}" STRIP="/bin/true"
  59. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  60. XAKE_FLAGS+= OPTIM='-fPIC -fstack-protector'
  61. else
  62. XAKE_FLAGS+= OPTIM='-fPIC'
  63. endif
  64. cups-install:
  65. ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib
  66. ${CP} ${WRKINST}/usr/lib/libcups*.so* ${IDIR_CUPS}/usr/lib/
  67. include ${TOPDIR}/mk/host-bottom.mk
  68. include ${TOPDIR}/mk/pkg-bottom.mk