Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # $OpenBSD: Makefile,v 1.61 2016/03/11 19:59:16 naddy Exp $
  2. COMMENT= format files for printing on PostScript printers
  3. DISTNAME= a2ps-4.14
  4. REVISION= 11
  5. SHARED_LIBS += a2ps 2.0 # 2.0
  6. CATEGORIES= print
  7. HOMEPAGE= https://www.gnu.org/software/a2ps/
  8. MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
  9. # GPLv3 or later, includes AFM files from Adobe with still unclear
  10. # terms (see ${WRKSRC}/afm/MustRead.html).
  11. PERMIT_PACKAGE_CDROM= without charge
  12. PERMIT_PACKAGE_FTP= Yes
  13. WANTLIB += c m paper
  14. MASTER_SITES= ${MASTER_SITE_GNU:=a2ps/}
  15. MODULES= devel/gettext
  16. BUILD_DEPENDS= devel/gperf \
  17. print/psutils
  18. RUN_DEPENDS= print/psutils
  19. LIB_DEPENDS= print/libpaper
  20. MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/auxdir
  21. CONFIGURE_STYLE=gnu
  22. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  23. LDFLAGS="-L${LOCALBASE}/lib" \
  24. ac_cv_prog_EMACS=no \
  25. lispdir=${PREFIX}/share/a2ps/emacs
  26. .for p in bzip2 gv ghostview dvips pdf2ps tex latex ps2pdf \
  27. bzip distill netscape html2ps grog convert
  28. CONFIGURE_ENV+= ac_cv_prog_COM_$p=no
  29. .endfor
  30. pre-configure:
  31. ${SUBST_CMD} ${WRKSRC}/configure \
  32. ${WRKSRC}/etc/a2ps_cfg.in
  33. pre-build:
  34. /usr/bin/touch $(WRKSRC)/doc/*.info
  35. /usr/bin/touch $(WRKSRC)/doc/*.dvi
  36. post-install:
  37. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/a2ps
  38. mv ${WRKINST}${SYSCONFDIR}/a2ps.cfg ${PREFIX}/share/examples/a2ps
  39. mv ${WRKINST}${SYSCONFDIR}/a2ps-site.cfg ${PREFIX}/share/examples/a2ps
  40. .include <bsd.port.mk>