diff options
author | bapt <bapt@FreeBSD.org> | 2013-12-26 22:54:21 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-12-26 22:54:21 +0800 |
commit | 196acb35597579ecf9623bcfb8bef2a8e8643cb8 (patch) | |
tree | 5317d011ade1b4e0aed1e8c479d4441bf79574ba /archivers | |
parent | 167b981e8234417c98e2516377096b33885cf86e (diff) | |
download | freebsd-ports-gnome-196acb35597579ecf9623bcfb8bef2a8e8643cb8.tar.gz freebsd-ports-gnome-196acb35597579ecf9623bcfb8bef2a8e8643cb8.tar.zst freebsd-ports-gnome-196acb35597579ecf9623bcfb8bef2a8e8643cb8.zip |
Support stage
Properly respect CC and CFLAGS (avoid useless patching)
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/nomarch/Makefile | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/archivers/nomarch/Makefile b/archivers/nomarch/Makefile index 254a3bd81cdc..ea24da30c3cf 100644 --- a/archivers/nomarch/Makefile +++ b/archivers/nomarch/Makefile @@ -10,25 +10,16 @@ MASTER_SITE_SUBDIR= utils/compress MAINTAINER= gabor@FreeBSD.org COMMENT= Extracts files from the old '.arc' archive format -MAN1= nomarch.1 -NO_STAGE= yes -PLIST_FILES= bin/nomarch +PLIST_FILES= bin/nomarch man/man1/nomarch.1.gz PORTDOCS= COPYING ChangeLog NEWS README TODO - -post-patch: - ${REINPLACE_CMD} -e 's|CC=|CC?=|' \ - -e 's|CFLAGS=|CFLAGS?=|' ${WRKSRC}/Makefile +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/nomarch ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/nomarch.1 ${MAN1PREFIX}/man/man1 - -post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/nomarch ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/nomarch.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor -.endif .include <bsd.port.mk> |