From 1673638efbf4179d363e2d0986950585d9b6df94 Mon Sep 17 00:00:00 2001 From: Erwin Lansing Date: Sun, 10 Sep 2006 14:07:46 +0000 Subject: [PATCH] - Respect NOPORTDOCS - use REINPLACE_CMD for making it respect CC instead of MAKE_ARGS - Take maintainership PR: 103036 Submitted by: Gabor Kovesdan --- archivers/nomarch/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/archivers/nomarch/Makefile b/archivers/nomarch/Makefile index 2d9762eeafc7..0507b66e4368 100644 --- a/archivers/nomarch/Makefile +++ b/archivers/nomarch/Makefile @@ -12,17 +12,29 @@ CATEGORIES= archivers MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= utils/compress -MAINTAINER= ports@FreeBSD.org +MAINTAINER= gkovesdan@t-hosting.hu COMMENT= Extracts files from the old `.arc' archive format USE_GETOPT_LONG=yes -MAKE_ARGS= CC="${CC}" CFLAGS="${CPPFLAGS} ${CFLAGS} ${LDFLAGS}" MAN1= nomarch.1 PLIST_FILES= bin/nomarch +PORTDOCS= COPYING ChangeLog NEWS README TODO + +post-patch: + ${REINPLACE_CMD} -e 's|CC=|CC?=|' \ + -e 's|CFLAGS=|CFLAGS?=|' ${WRKSRC}/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/nomarch ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/nomarch.1 ${MAN1PREFIX}/man/man1 +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for i in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif + .include