Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jun 2016 14:03:43 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r417422 - head/emulators/xhomer
Message-ID:  <201606241403.u5OE3hli023566@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Jun 24 14:03:43 2016
New Revision: 417422
URL: https://svnweb.freebsd.org/changeset/ports/417422

Log:
  - Switch to options helpers
  - Cosmetic fixes

Modified:
  head/emulators/xhomer/Makefile

Modified: head/emulators/xhomer/Makefile
==============================================================================
--- head/emulators/xhomer/Makefile	Fri Jun 24 13:54:34 2016	(r417421)
+++ head/emulators/xhomer/Makefile	Fri Jun 24 14:03:43 2016	(r417422)
@@ -14,21 +14,28 @@ COMMENT=	Emulator for the DEC Pro 350 co
 USES=		gmake tar:tgz
 USE_XORG=	xt sm ice xext x11
 ALL_TARGET=	clean xhomer
-INSTALL_TARGET=
+INSTALL_TARGET=	# empty
 CFLAGS+=	-Wall -ffloat-store
+
 SUB_FILES=	pkg-message
-PKGMESSAGE=	${WRKDIR}/pkg-message
 
-PLIST_FILES=	bin/xhomer %%EXAMPLESDIR%%/xhomer.cfg
+PLIST_FILES=	bin/xhomer
 PORTDOCS=	README LICENSE SIMH
+PORTEXAMPLES=	xhomer.cfg
 
 MAKE_JOBS_UNSAFE=	yes
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 post-install:
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_PROGRAM} ${WRKSRC}/xhomer ${STAGEDIR}${PREFIX}/bin
-	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/xhomer.cfg ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>



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