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.2
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= zlib
  8. PKG_MD5SUM:= d95e2d588e3d36e563027a963b117b1b
  9. PKG_DESCR:= Common Unix Printing System
  10. PKG_SECTION:= net
  11. PKG_DEPENDS:= zlib libpthread
  12. PKG_BUILDDEP+= zlib
  13. PKG_URL:= http://www.cups.org
  14. PKG_SITES:= ftp://ftp.easysw.com/pub/cups/${PKG_VERSION}/
  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=0 \
  21. --with-cups-group=0 \
  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