Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.25 2017/02/26 20:18:13 sthen Exp $
  2. COMMENT = generates ASCII banner art
  3. DISTNAME = figlet-2.2.5
  4. CATEGORIES = misc graphics
  5. HOMEPAGE = http://www.figlet.org/
  6. MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
  7. # BSD
  8. PERMIT_PACKAGE_CDROM = Yes
  9. WANTLIB = c
  10. MASTER_SITES = ftp://ftp.figlet.org/pub/figlet/program/unix/
  11. MASTER_SITES0 = http://www.arcane-labs.net/download/OpenBSD/
  12. DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
  13. figlet-contributed-06092002${EXTRACT_SUFX}:0
  14. MAKE_FLAGS = CC="${CC}" LD="${CC}" CFLAGS="${CFLAGS}" \
  15. DEFAULTFONTDIR=${PREFIX}/share/figlet
  16. NO_TEST = Yes
  17. pre-configure:
  18. @perl -pi -e 's|%%OPENBSDFIGLET%%|${LOCALBASE}/share/figlet|g' ${WRKBUILD}/figlist
  19. post-extract:
  20. @mv ${WRKDIR}/contributed/*.{flf,flc} ${WRKSRC}/fonts
  21. @mv ${WRKDIR}/contributed/bdffonts/*.flf ${WRKSRC}/fonts
  22. do-install:
  23. ${INSTALL_PROGRAM} ${WRKSRC}/figlet ${PREFIX}/bin
  24. ${INSTALL_PROGRAM} ${WRKSRC}/chkfont ${PREFIX}/bin
  25. ${INSTALL_SCRIPT} ${WRKSRC}/chkfont ${PREFIX}/bin
  26. ${INSTALL_SCRIPT} ${WRKSRC}/figlist ${PREFIX}/bin
  27. ${INSTALL_SCRIPT} ${WRKSRC}/showfigfonts ${PREFIX}/bin
  28. ${INSTALL_DATA_DIR} ${PREFIX}/share/figlet
  29. ${INSTALL_DATA} ${WRKSRC}/fonts/*.{flf,flc} ${PREFIX}/share/figlet
  30. ${INSTALL_MAN} ${WRKSRC}/figlet.6 ${PREFIX}/man/man6
  31. .include <bsd.port.mk>