Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 2014 20:42:03 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340656 - head/graphics/hppsmtools
Message-ID:  <201401212042.s0LKg3Lj050123@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Tue Jan 21 20:42:02 2014
New Revision: 340656
URL: http://svnweb.freebsd.org/changeset/ports/340656
QAT: https://qat.redports.org/buildarchive/r340656/

Log:
  Stage support

Modified:
  head/graphics/hppsmtools/Makefile

Modified: head/graphics/hppsmtools/Makefile
==============================================================================
--- head/graphics/hppsmtools/Makefile	Tue Jan 21 20:38:23 2014	(r340655)
+++ head/graphics/hppsmtools/Makefile	Tue Jan 21 20:42:02 2014	(r340656)
@@ -12,25 +12,22 @@ COMMENT=	Tool for HP PhotoSmart C5340A &
 
 LICENSE=	GPLv2
 
-PORTDOCS=	README changes.txt
 PLIST_FILES=	bin/psmdel bin/psmdir bin/psmget bin/psmsho
+PORTDOCS=	README changes.txt
+
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's|^CC=|#CC=|g ; \
 		 s|-Wall -pedantic|$$(CFLAGS)|g' ${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e '/typedef unsigned char/d' ${WRKSRC}/exif.h
 	@${REINPLACE_CMD} -e '/<malloc.h>/d' ${WRKSRC}/psm*.c
 
-.include <bsd.port.options.mk>
-
 do-install:
 .for file in psmdel psmdir psmget psmsho
-	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin
 .endfor
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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