Makefile 888 B

123456789101112131415161718192021222324252627282930313233343536
  1. # $OpenBSD: Makefile,v 1.3 2013/03/11 11:42:41 espie Exp $
  2. COMMENT = fontconfig-based alternative to banner(1)
  3. PKGNAME = fcbanner-0.0.20040302
  4. DISTFILES = fcbanner.c
  5. CATEGORIES = textproc
  6. HOMEPAGE = http://www.normalesup.org/~george/comp/fcbanner/
  7. MASTER_SITES = ${HOMEPAGE}
  8. # BSD
  9. PERMIT_PACKAGE_CDROM = Yes
  10. WANTLIB = c expat fontconfig freetype z
  11. do-extract:
  12. cp ${DISTDIR}/fcbanner.c ${WRKSRC}/
  13. do-build:
  14. cd ${WRKSRC}; \
  15. ${CC} -Wall -W -std=c99 -D_XOPEN_SOURCE=600 ${CFLAGS} -o fcbanner \
  16. `pkg-config --cflags freetype2 fontconfig` fcbanner.c \
  17. `pkg-config --libs freetype2 fontconfig`; \
  18. sed '/^*/q' < fcbanner.c > fcbanner.txt
  19. do-install:
  20. ${INSTALL_PROGRAM} ${WRKSRC}/fcbanner ${PREFIX}/bin
  21. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fcbanner
  22. ${INSTALL_DATA} ${WRKSRC}/fcbanner.txt ${PREFIX}/share/doc/fcbanner
  23. NO_TEST = Yes
  24. .include <bsd.port.mk>