1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Support CC/CFLAGS/MAKE properly

PR:		39432
Submitted by:	Ports Fury
This commit is contained in:
Ying-Chieh Liao 2002-06-17 20:42:03 +00:00
parent e8c042ad25
commit 385461e88c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61455

View File

@ -7,18 +7,25 @@
PORTNAME= an
PORTVERSION= 0.93
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ftp://suburbia.net/pub/rmj/ \
ftp://ftp.suburbia.net/pub/rmj/
MAINTAINER= ports@FreeBSD.Org
MAINTAINER= ports@FreeBSD.org
MAKE_ENV+= DEFS=-DDEFDICT=\\\"/usr/share/dict/words\\\"
ALL_TARGET= with-getopt
MAN6= an.6
post-patch:
@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
's|^CC=|CC?=|g ; \
s|^CFLAGS=-O|CFLAGS+=|g ; \
s| make| \$$\(MAKE\)|g' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/an ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/an.6 ${MANPREFIX}/man/man6
${INSTALL_PROGRAM} ${WRKSRC}/an ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/an.6 ${MANPREFIX}/man/man6
.include <bsd.port.mk>