Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  39. XAKE_FLAGS+= OPTIM='-fPIC -fstack-protector'
  40. else
  41. XAKE_FLAGS+= OPTIM='-fPIC'
  42. endif
  43. post-install:
  44. ${INSTALL_DIR} ${IDIR_CUPS}/usr/bin
  45. ${INSTALL_DIR} ${IDIR_CUPS}/usr/sbin
  46. ${INSTALL_DIR} ${IDIR_CUPS}/etc/cups
  47. ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib/cups/cgi-bin
  48. ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib/cups/daemon
  49. ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/cups/banners
  50. ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/doc/cups
  51. ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/cups/templates
  52. ${CP} ${WRKINST}/etc/cups/* ${IDIR_CUPS}/etc/cups/
  53. rm ${IDIR_CUPS}/etc/cups/cupsd.conf.default
  54. ${CP} ${WRKINST}/usr/bin/* ${IDIR_CUPS}/usr/bin/
  55. ${CP} ${WRKINST}/usr/share/doc/cups/index.html \
  56. ${IDIR_CUPS}/usr/share/doc/cups/
  57. ${CP} ${WRKINST}/usr/share/doc/cups/*.css \
  58. ${IDIR_CUPS}/usr/share/doc/cups/
  59. ${CP} ${WRKINST}/usr/share/doc/cups/images \
  60. ${IDIR_CUPS}/usr/share/doc/cups/
  61. rm -f ${IDIR_CUPS}/usr/bin/cups-config
  62. ${CP} ${WRKINST}/usr/lib/libcups*.so* ${IDIR_CUPS}/usr/lib/
  63. ${CP} ${WRKINST}/usr/lib/cups/cgi-bin/* \
  64. ${IDIR_CUPS}/usr/lib/cups/cgi-bin/
  65. ${CP} ${WRKINST}/usr/lib/cups/daemon/* \
  66. ${IDIR_CUPS}/usr/lib/cups/daemon/
  67. ${CP} ${WRKINST}/usr/share/cups/banners/* \
  68. ${IDIR_CUPS}/usr/share/cups/banners/
  69. ${CP} ${WRKINST}/usr/share/cups/templates/*.tmpl \
  70. ${IDIR_CUPS}/usr/share/cups/templates/
  71. ${CP} ${WRKINST}/usr/sbin/* ${IDIR_CUPS}/usr/sbin/
  72. ${CP} ./files/etc/cups/* ${IDIR_CUPS}/etc/cups/
  73. include ${TOPDIR}/mk/pkg-bottom.mk