1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

Use MAKE_ARGS instead of patching the Makefile

This commit is contained in:
Baptiste Daroussin 2014-04-04 13:23:38 +00:00
parent 3f07fb0b8a
commit 9d64176515
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350113

View File

@ -16,10 +16,7 @@ USES= gmake
PLIST_FILES= bin/dxa65 man/man1/dxa.1.gz
PORTDOCS= INSTALL
post-patch-script:
@${REINPLACE_CMD} 's|CC = |CC ?= |g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} 's|CFLAGS = |CFLAGS ?= |g' ${WRKSRC}/Makefile
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dxa ${STAGEDIR}${PREFIX}/bin/dxa65