Makefile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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:= 2
  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. PKG_OPTS:= dev
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-source.tar.bz2
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,CUPS,cups,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. CONFIGURE_ENV+= ac_cv_func_sigset=no \
  20. OPTIM='-fPIC'
  21. CONFIGURE_ARGS+= --with-cups-user=cups \
  22. --with-cups-group=cups \
  23. --disable-ldap \
  24. --disable-gssapi \
  25. --disable-pam \
  26. --disable-pap \
  27. --disable-dbus \
  28. --without-java \
  29. --without-perl \
  30. --without-python \
  31. --without-php \
  32. --disable-slp \
  33. --disable-gnutls \
  34. --disable-openssl \
  35. --disable-cdsassl \
  36. --disable-dbus \
  37. --disable-ssl
  38. FAKE_FLAGS+= DSTROOT="${WRKINST}" STRIP="/bin/true"
  39. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  40. XAKE_FLAGS+= OPTIM='-fPIC -fstack-protector'
  41. else
  42. XAKE_FLAGS+= OPTIM='-fPIC'
  43. endif
  44. cups-install:
  45. ${INSTALL_DIR} ${IDIR_CUPS}/usr/bin
  46. ${INSTALL_DIR} ${IDIR_CUPS}/usr/sbin
  47. ${INSTALL_DIR} ${IDIR_CUPS}/etc/cups
  48. ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib/cups/cgi-bin
  49. ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib/cups/daemon
  50. ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/cups/banners
  51. ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/doc/cups
  52. ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/cups/templates
  53. ${CP} ${WRKINST}/etc/cups/* ${IDIR_CUPS}/etc/cups/
  54. rm ${IDIR_CUPS}/etc/cups/cupsd.conf.default
  55. ${CP} ${WRKINST}/usr/bin/* ${IDIR_CUPS}/usr/bin/
  56. ${CP} ${WRKINST}/usr/share/doc/cups/index.html \
  57. ${IDIR_CUPS}/usr/share/doc/cups/
  58. ${CP} ${WRKINST}/usr/share/doc/cups/*.css \
  59. ${IDIR_CUPS}/usr/share/doc/cups/
  60. ${CP} ${WRKINST}/usr/share/doc/cups/images \
  61. ${IDIR_CUPS}/usr/share/doc/cups/
  62. rm -f ${IDIR_CUPS}/usr/bin/cups-config
  63. ${CP} ${WRKINST}/usr/lib/libcups*.so* ${IDIR_CUPS}/usr/lib/
  64. ${CP} ${WRKINST}/usr/lib/cups/cgi-bin/* \
  65. ${IDIR_CUPS}/usr/lib/cups/cgi-bin/
  66. ${CP} ${WRKINST}/usr/lib/cups/daemon/* \
  67. ${IDIR_CUPS}/usr/lib/cups/daemon/
  68. ${CP} ${WRKINST}/usr/share/cups/banners/* \
  69. ${IDIR_CUPS}/usr/share/cups/banners/
  70. ${CP} ${WRKINST}/usr/share/cups/templates/*.tmpl \
  71. ${IDIR_CUPS}/usr/share/cups/templates/
  72. ${CP} ${WRKINST}/usr/sbin/* ${IDIR_CUPS}/usr/sbin/
  73. ${CP} ./files/etc/cups/* ${IDIR_CUPS}/etc/cups/
  74. include ${TOPDIR}/mk/pkg-bottom.mk