svn commit: r340656 - head/graphics/hppsmtools

Antoine Brodin antoine at FreeBSD.org
Tue Jan 21 20:42:03 UTC 2014


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>


More information about the svn-ports-all mailing list