Makefile 2.5 KB

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