Makefile 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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.4.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 8776403ad60fea9e85eab9c04d88560d
  8. PKG_DESCR:= Common Unix Printing System
  9. PKG_SECTION:= net/misc
  10. PKG_DEPENDS:= zlib libpthread
  11. PKG_BUILDDEP:= zlib
  12. PKG_URL:= http://www.cups.org/
  13. PKG_SITES:= ftp://ftp.easysw.com/pub/cups/${PKG_VERSION}/
  14. PKG_NEED_CXX:= 1
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-source.tar.bz2
  16. PKG_SUBPKGS:= CUPS CUPS_DEV
  17. PKGSC_CUPS_DEV:= devel
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,CUPS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,CUPS_DEV,${PKG_NAME}-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_CUPS_DEV}))
  21. CONFIGURE_ENV+= ac_cv_func_sigset=no \
  22. OPTIM='-fPIC'
  23. CONFIGURE_ARGS+= --with-cups-user=cups \
  24. --with-cups-group=cups \
  25. --disable-ldap \
  26. --disable-gssapi \
  27. --disable-pam \
  28. --disable-pap \
  29. --disable-dbus \
  30. --without-java \
  31. --without-perl \
  32. --without-python \
  33. --without-php \
  34. --disable-slp \
  35. --disable-gnutls \
  36. --disable-openssl \
  37. --disable-cdsassl \
  38. --disable-dbus \
  39. --disable-ssl
  40. FAKE_FLAGS+= DSTROOT="${WRKINST}" STRIP="/bin/true"
  41. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  42. XAKE_FLAGS+= OPTIM='-fPIC -fstack-protector'
  43. else
  44. XAKE_FLAGS+= OPTIM='-fPIC'
  45. endif
  46. post-install:
  47. ${INSTALL_DIR} ${IDIR_CUPS}/usr/bin
  48. ${INSTALL_DIR} ${IDIR_CUPS}/usr/sbin
  49. ${INSTALL_DIR} ${IDIR_CUPS}/etc/cups
  50. ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib/cups/cgi-bin
  51. ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib/cups/daemon
  52. ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/cups/banners
  53. ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/doc/cups
  54. ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/cups/templates
  55. ${CP} ${WRKINST}/etc/cups/* ${IDIR_CUPS}/etc/cups/
  56. rm ${IDIR_CUPS}/etc/cups/cupsd.conf.default
  57. ${CP} ${WRKINST}/usr/bin/* ${IDIR_CUPS}/usr/bin/
  58. ${CP} ${WRKINST}/usr/share/doc/cups/index.html \
  59. ${IDIR_CUPS}/usr/share/doc/cups/
  60. ${CP} ${WRKINST}/usr/share/doc/cups/*.css \
  61. ${IDIR_CUPS}/usr/share/doc/cups/
  62. ${CP} ${WRKINST}/usr/share/doc/cups/images \
  63. ${IDIR_CUPS}/usr/share/doc/cups/
  64. rm -f ${IDIR_CUPS}/usr/bin/cups-config
  65. ${CP} ${WRKINST}/usr/lib/libcups*.so* ${IDIR_CUPS}/usr/lib/
  66. ${CP} ${WRKINST}/usr/lib/cups/cgi-bin/* \
  67. ${IDIR_CUPS}/usr/lib/cups/cgi-bin/
  68. ${CP} ${WRKINST}/usr/lib/cups/daemon/* \
  69. ${IDIR_CUPS}/usr/lib/cups/daemon/
  70. ${CP} ${WRKINST}/usr/share/cups/banners/* \
  71. ${IDIR_CUPS}/usr/share/cups/banners/
  72. ${CP} ${WRKINST}/usr/share/cups/templates/*.tmpl \
  73. ${IDIR_CUPS}/usr/share/cups/templates/
  74. ${CP} ${WRKINST}/usr/sbin/* ${IDIR_CUPS}/usr/sbin/
  75. ${CP} ./files/etc/cups/* ${IDIR_CUPS}/etc/cups/
  76. cups-dev-install:
  77. ${INSTALL_DIR} ${IDIR_CUPS_DEV}/usr/include
  78. ${CP} ${WRKINST}/usr/include/* ${IDIR_CUPS_DEV}/usr/include
  79. include ${TOPDIR}/mk/pkg-bottom.mk