Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # $OpenBSD: Makefile,v 1.44 2017/04/04 21:24:13 ajacoutot Exp $
  2. PKG_ARCH= *
  3. COMMENT= Foomatic PPD data
  4. V= 20161003
  5. DISTNAME= foomatic-db-4.0-${V}
  6. PKGNAME= foomatic-db-4.0.${V}
  7. REVISION= 0
  8. CATEGORIES= print
  9. HOMEPAGE= http://www.linux-foundation.org/en/OpenPrinting/Database/Foomatic
  10. MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
  11. # GPLv2 - MIT
  12. PERMIT_PACKAGE_CDROM= Yes
  13. # tarballs are only available for a 24 hour period
  14. #MASTER_SITES= http://www.openprinting.org/download/foomatic/
  15. MASTER_SITES= http://pkgs.fedoraproject.org/repo/extras/foomatic-db/foomatic-db-4.0-${V}${EXTRACT_SUFX}/49caa396ebc8324a9d68179fc025fa60/
  16. BUILD_DEPENDS= print/cups,-libs
  17. CONFIGURE_STYLE= gnu
  18. WRKDIST= ${WRKDIR}/foomatic-db-${V}
  19. NO_BUILD= Yes
  20. NO_TEST= Yes
  21. pre-configure:
  22. ${SUBST_CMD} ${WRKSRC}/configure
  23. ### Fedora
  24. # splix
  25. find ${WRKSRC}/db/source/printer -name '*.xml' | \
  26. xargs grep -l "<driver>splix"|xargs -r rm
  27. rm ${WRKSRC}/db/source/driver/splix.xml
  28. # foo2zjs
  29. .for x in zjs zjs-z1 zjs-z2 zjs-z3 oak oak-z1 hp qpdl lava kyo xqx slx hiperc hbpl2 hiperc-z1
  30. find ${WRKSRC}/db/source/printer -name '*.xml' | \
  31. xargs grep -l "<driver>foo2${x}" | xargs -r rm
  32. find ${WRKSRC}/db/source/printer -name '*.xml' | \
  33. grep -E 'Samsung-CLP-610|Samsung-CLP-620' | xargs -r rm
  34. find ${WRKSRC}/db/source/printer -name '*.xml' | \
  35. grep -E 'KONICA_MINOLTA-magicolor_2430_DL' | xargs -r rm
  36. rm ${WRKSRC}/db/source/driver/foo2${x}.xml
  37. # ${WRKSRC}/db/source/opt/foo2${x}-*
  38. .endfor
  39. # these use binaries that are not provided anymore
  40. .for x in lm1100 pentaxpj pbm2l2030 pbm2l7k lex5700 lex7000 c2050 c2070 cjet
  41. find ${WRKSRC}/db/source/printer -name '*.xml' | \
  42. xargs grep -l "<driver>${x}</driver>"| xargs -r rm
  43. rm -f ${WRKSRC}/db/source/driver/${x}.xml \
  44. ${WRKSRC}/db/source/opt/${x}-*
  45. .endfor
  46. .for x in drv_x125 ml85p pbm2lwxl pbmtozjs bjc800j m2300w m2400w
  47. find ${WRKSRC}/db/source/printer -name '*.xml' | \
  48. xargs grep -l "<driver>${x}</driver>"| xargs -r rm
  49. rm -f ${WRKSRC}/db/source/driver/${x}.xml \
  50. ${WRKSRC}/db/source/opt/${x}-*
  51. .endfor
  52. # ptouch-driver
  53. rm ${WRKSRC}/db/source/driver/ptouch.xml
  54. rm ${WRKSRC}/db/source/printer/Brother-PT-*.xml
  55. rm ${WRKSRC}/db/source/printer/Brother-QL-*.xml
  56. #rm ${WRKSRC}/db/source/opt/Brother-Ptouch-*.xml
  57. ###
  58. .include <bsd.port.mk>