openbsd-ports/games/an/Makefile
2013-03-11 11:02:49 +00:00

34 lines
633 B
Makefile

# $OpenBSD: Makefile,v 1.18 2013/03/11 11:07:37 espie Exp $
COMMENT= fast anagram generator
V= 0.95
DISTNAME= an_${V}.orig
PKGNAME= an-${V}
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_DEBIAN:=main/a/an/}
# GPL - LGPL
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c
WRKDIST= ${WRKDIR}/an-${V}
USE_GROFF = Yes
NO_TEST= Yes
pre-configure:
@perl -pi -e 's,/usr/dict/words,/usr/share/dict/words,g' \
${WRKSRC}/an.6
do-build:
cd ${WRKBUILD} && \
${CC} ${CFLAGS} an.c gan_qsort.c -o an ${LDFLAGS}
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/an ${PREFIX}/bin
${INSTALL_MAN} ${WRKBUILD}/an.6 ${PREFIX}/man/man6
.include <bsd.port.mk>