Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Dec 2013 14:54:21 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337531 - head/archivers/nomarch
Message-ID:  <201312261454.rBQEsLEF030268@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Dec 26 14:54:21 2013
New Revision: 337531
URL: http://svnweb.freebsd.org/changeset/ports/337531

Log:
  Support stage
  Properly respect CC and CFLAGS (avoid useless patching)

Modified:
  head/archivers/nomarch/Makefile

Modified: head/archivers/nomarch/Makefile
==============================================================================
--- head/archivers/nomarch/Makefile	Thu Dec 26 14:51:30 2013	(r337530)
+++ head/archivers/nomarch/Makefile	Thu Dec 26 14:54:21 2013	(r337531)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312261454.rBQEsLEF030268>