mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
6b368e6ffa
Use Debian version, since original author appears to have disappeared. PR: 48229 Submitted by: Kimura Fuyuki <fuyuki@hadaly.org>
36 lines
841 B
Makefile
36 lines
841 B
Makefile
# New ports collection makefile for: an
|
|
# Date created: 28 Feb 1997
|
|
# Whom: proff
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= an
|
|
PORTVERSION= 0.95
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_DEBIAN}
|
|
MASTER_SITE_SUBDIR= pool/main/a/an
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Fast anagram generator
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
USE_REINPLACE= yes
|
|
ALL_TARGET= with-getopt
|
|
MAN6= an.6
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|^CC=|CC?=|g ; \
|
|
s|^CFLAGS=-O2|CFLAGS+=|g ; \
|
|
s| make| \$$\(MAKE\)|g'
|
|
@${REINPLACE_CMD} -e 's|^\#OBJS|OBJS|' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e '/<stdint.h>/d' ${WRKSRC}/an.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/an ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/an.6 ${MANPREFIX}/man/man6
|
|
|
|
.include <bsd.port.mk>
|