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