Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2014 01:57:02 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r359433 - head/sysutils/hfsexplorer
Message-ID:  <201406270157.s5R1v21d050837@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Fri Jun 27 01:57:02 2014
New Revision: 359433
URL: http://svnweb.freebsd.org/changeset/ports/359433
QAT: https://qat.redports.org/buildarchive/r359433/

Log:
  1: Stagify.
  2: switch to options helper.
  
  Approved by:	portmgr@ (blanket approval)

Modified:
  head/sysutils/hfsexplorer/Makefile

Modified: head/sysutils/hfsexplorer/Makefile
==============================================================================
--- head/sysutils/hfsexplorer/Makefile	Fri Jun 27 01:51:00 2014	(r359432)
+++ head/sysutils/hfsexplorer/Makefile	Fri Jun 27 01:57:02 2014	(r359433)
@@ -22,10 +22,11 @@ DESKTOP_ENTRIES="hfsexplorer" "reader Ma
 USES=		zip
 USE_JAVA=	yes
 JAVA_VERSION=	1.6
-
+OPTIONS_DEFINE= DOCS
 WRKSRC=		${WRKDIR}
 
-NO_STAGE=	yes
+.include <bsd.port.options.mk>
+
 do-configure:
 	@cd ${WRKSRC}/dist && ${REINPLACE_CMD} -e 's|lib/|${DATADIR}/lib/|g' \
 		hfsx.sh resview.sh unhfs.sh
@@ -36,19 +37,19 @@ do-build:
 	@cd ${WRKSRC} && ${SH} buildall.sh
 
 do-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	@cd ${WRKSRC}/dist/doc && ${COPYTREE_SHARE} html ${DOCSDIR}/
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	@cd ${WRKSRC}/dist/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}/
 .endif
 
 post-install:
-	@${MKDIR} ${DATADIR}/lib
-	@${MKDIR} ${DATADIR}/res
+	@${MKDIR} ${STAGEDIR}${DATADIR}/lib
+	@${MKDIR} ${STAGEDIR}${DATADIR}/res
 .for f in hfsx.sh resview.sh unhfs.sh
-	@cd ${WRKSRC} && ${INSTALL_SCRIPT} dist/${f} ${PREFIX}/bin
+	@cd ${WRKSRC} && ${INSTALL_SCRIPT} dist/${f} ${STAGEDIR}${PREFIX}/bin
 .endfor
-	@cd ${WRKSRC} && ${INSTALL_SCRIPT} dist/runfsb.sh ${PREFIX}/bin/${PORTNAME}
-	@cd ${WRKSRC} && ${INSTALL_DATA} dist/lib/*.jar ${DATADIR}/lib
-	@cd ${WRKSRC} && ${INSTALL_DATA} dist/res/icon.png ${DATADIR}/res
+	@cd ${WRKSRC} && ${INSTALL_SCRIPT} dist/runfsb.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	@cd ${WRKSRC} && ${INSTALL_DATA} dist/lib/*.jar ${STAGEDIR}${DATADIR}/lib
+	@cd ${WRKSRC} && ${INSTALL_DATA} dist/res/icon.png ${STAGEDIR}${DATADIR}/res
 
 .include <bsd.port.mk>



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