aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-09-23 21:10:40 +0800
committerbapt <bapt@FreeBSD.org>2013-09-23 21:10:40 +0800
commit70593155db584faedcf7f1dfb11ddc090120031b (patch)
tree96a5f88633847149fc85f94515e0a426af830b38
parentc4f0f26722dc98c85c24e8b50c5bf16709d6d75f (diff)
downloadfreebsd-ports-graphics-70593155db584faedcf7f1dfb11ddc090120031b.tar.gz
freebsd-ports-graphics-70593155db584faedcf7f1dfb11ddc090120031b.tar.zst
freebsd-ports-graphics-70593155db584faedcf7f1dfb11ddc090120031b.zip
Convert to stage
While here remove useless patching if favour of passing CC and CFLAGS to MAKE_ARGS
-rw-r--r--audio/alac/Makefile16
1 files changed, 4 insertions, 12 deletions
diff --git a/audio/alac/Makefile b/audio/alac/Makefile
index e6182b4451c..840d599c2f6 100644
--- a/audio/alac/Makefile
+++ b/audio/alac/Makefile
@@ -12,29 +12,21 @@ MAINTAINER= multimedia@FreeBSD.org
COMMENT= Basic decoder for Apple Lossless Audio Codec files (ALAC)
WRKSRC= ${WRKDIR}/${PORTNAME}_decoder
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
ALL_TARGET= alac
-NO_STAGE= yes
-OPTIONS_DEFINE= DOCS DEBUG
+OPTIONS_DEFINE= DOCS
PLIST_FILES= bin/alac
PORTDOCS= README
.include <bsd.port.options.mk>
-post-patch:
-.if ! ${PORT_OPTIONS:MDEBUG}
- @${REINPLACE_CMD} -e 's|-ggdb||' \
- ${WRKSRC}/${MAKEFILE}
-.endif
- @${REINPLACE_CMD} -e 's|gcc|${CC}|; s|-O3|${CFLAGS}|' \
- ${WRKSRC}/${MAKEFILE}
-
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/alac ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/alac ${STAGEDIR}${PREFIX}/bin/
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>