Makefile 2.6 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_URL:= http://www.cups.org
  13. PKG_SITES:= http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/${PKG_VERSION}/ \
  14. 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_STYLE:= gnu
  19. CONFIGURE_ENV+= ac_cv_func_sigset=no \
  20. OPTIM='-fPIC'
  21. CONFIGURE_ARGS+= --with-cups-user=0 \
  22. --with-cups-group=0 \
  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. BUILD_STYLE:= auto
  39. INSTALL_STYLE:= auto
  40. FAKE_FLAGS+= DSTROOT="${WRKINST}" STRIP="/bin/true"
  41. XAKE_FLAGS+= OPTIM='-fPIC'
  42. post-install:
  43. ${INSTALL_DIR} ${IDIR_CUPS}/usr/bin
  44. ${INSTALL_DIR} ${IDIR_CUPS}/usr/sbin
  45. ${INSTALL_DIR} ${IDIR_CUPS}/etc/cups
  46. ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib/cups/cgi-bin
  47. ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib/cups/daemon
  48. ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/cups/banners
  49. ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/doc/cups
  50. ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/cups/templates
  51. ${CP} ${WRKINST}/etc/cups/* ${IDIR_CUPS}/etc/cups/
  52. rm ${IDIR_CUPS}/etc/cups/cupsd.conf.default
  53. ${CP} ${WRKINST}/usr/bin/* ${IDIR_CUPS}/usr/bin/
  54. ${CP} ${WRKINST}/usr/share/doc/cups/index.html \
  55. ${IDIR_CUPS}/usr/share/doc/cups/
  56. ${CP} ${WRKINST}/usr/share/doc/cups/*.css \
  57. ${IDIR_CUPS}/usr/share/doc/cups/
  58. ${CP} ${WRKINST}/usr/share/doc/cups/images \
  59. ${IDIR_CUPS}/usr/share/doc/cups/
  60. rm -f ${IDIR_CUPS}/usr/bin/cups-config
  61. ${CP} ${WRKINST}/usr/lib/libcups*.so* ${IDIR_CUPS}/usr/lib/
  62. ${CP} ${WRKINST}/usr/lib/cups/cgi-bin/* ${IDIR_CUPS}/usr/lib/cups/cgi-bin/
  63. ${CP} ${WRKINST}/usr/lib/cups/daemon/* ${IDIR_CUPS}/usr/lib/cups/daemon/
  64. ${CP} ${WRKINST}/usr/share/cups/banners/* \
  65. ${IDIR_CUPS}/usr/share/cups/banners/
  66. ${CP} ${WRKINST}/usr/share/cups/templates/*.tmpl \
  67. ${IDIR_CUPS}/usr/share/cups/templates/
  68. ${CP} ${WRKINST}/usr/sbin/* ${IDIR_CUPS}/usr/sbin/
  69. ${CP} ./files/etc/cups/* ${IDIR_CUPS}/etc/cups/
  70. include ${TOPDIR}/mk/pkg-bottom.mk