aboutsummaryrefslogtreecommitdiffstats
path: root/games/an/Makefile
blob: f4ac104fcb907f532f9d94a4871e85fbf50c23ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Created by: proff
# $FreeBSD$

PORTNAME=   an
PORTVERSION=    0.95
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_DEBIAN_POOL}
DISTNAME=   ${PORTNAME}_${PORTVERSION}.orig

MAINTAINER= ports@FreeBSD.org
COMMENT=    Fast anagram generator

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

PLIST_FILES=    bin/${PORTNAME} \
        man/man6/${PORTNAME}.6.gz

post-patch:
    @${REINPLACE_CMD} -e '/<stdint.h>/d' ${WRKSRC}/an.c

do-build:
    cd ${BUILD_WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} an.c gan_qsort.c \
        -o ${PORTNAME} ${LDFLAGS}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/an ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/an.6 ${STAGEDIR}${MANPREFIX}/man/man6

.include <bsd.port.mk>