Makefile 617 B

123456789101112131415161718192021222324252627282930313233
  1. # $OpenBSD: Makefile,v 1.19 2015/02/16 22:57:08 naddy Exp $
  2. COMMENT= fast anagram generator
  3. V= 0.95
  4. DISTNAME= an_${V}.orig
  5. PKGNAME= an-${V}
  6. CATEGORIES= games
  7. MASTER_SITES= ${MASTER_SITE_DEBIAN:=main/a/an/}
  8. # GPL - LGPL
  9. PERMIT_PACKAGE_CDROM= Yes
  10. WANTLIB= c
  11. WRKDIST= ${WRKDIR}/an-${V}
  12. NO_TEST= Yes
  13. pre-configure:
  14. @perl -pi -e 's,/usr/dict/words,/usr/share/dict/words,g' \
  15. ${WRKSRC}/an.6
  16. do-build:
  17. cd ${WRKBUILD} && \
  18. ${CC} ${CFLAGS} an.c gan_qsort.c -o an ${LDFLAGS}
  19. do-install:
  20. ${INSTALL_PROGRAM} ${WRKBUILD}/an ${PREFIX}/bin
  21. ${INSTALL_MAN} ${WRKBUILD}/an.6 ${PREFIX}/man/man6
  22. .include <bsd.port.mk>