Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 2013 16:06:22 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r331708 - head/emulators/spim
Message-ID:  <201310261606.r9QG6M28030814@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Sat Oct 26 16:06:22 2013
New Revision: 331708
URL: http://svnweb.freebsd.org/changeset/ports/331708

Log:
  - Add stage support

Modified:
  head/emulators/spim/Makefile

Modified: head/emulators/spim/Makefile
==============================================================================
--- head/emulators/spim/Makefile	Sat Oct 26 16:00:45 2013	(r331707)
+++ head/emulators/spim/Makefile	Sat Oct 26 16:06:22 2013	(r331708)
@@ -17,20 +17,17 @@ INSTALL_WRKSRC=	${WRKSRC}/${PORTNAME}
 
 ALL_TARGET=	${PORTNAME}
 
-MAN1=		spim.1
-MANCOMPRESSED=	no
 PORTDOCS=	cycle.ps.gz spim.ps.gz SPIM.html
-PLIST_FILES=	bin/spim %%DATADIR%%/exceptions.s
+PLIST_FILES=	bin/spim %%DATADIR%%/exceptions.s \
+	man/man1/spim.1.gz
 PLIST_DIRS=	%%DATADIR%%
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MGUI}
 USE_XORG=	x11 xaw
 USES+=		imake:env
-PLIST_FILES+=	bin/xspim
-MAN1+=		xspim.1
+PLIST_FILES+=	bin/xspim man/man1/xspim.1.gz
 .endif
 
 post-build:
@@ -40,20 +37,18 @@ post-build:
 .endif
 
 do-install:
-	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/spim ${PREFIX}/bin/spim
-	${INSTALL_MAN} ${WRKSRC}/Documentation/spim.man ${MANPREFIX}/man/man1/spim.1
-	${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/CPU/exceptions.s ${DATADIR}/exceptions.s
+	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/spim ${STAGEDIR}${PREFIX}/bin/spim
+	${INSTALL_MAN} ${WRKSRC}/Documentation/spim.man ${STAGEDIR}${MANPREFIX}/man/man1/spim.1
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/CPU/exceptions.s ${STAGEDIR}${DATADIR}/exceptions.s
 .if ${PORT_OPTIONS:MGUI}
-	${INSTALL_PROGRAM} ${WRKSRC}/xspim/xspim ${PREFIX}/bin/xspim
-	${INSTALL_MAN} ${WRKSRC}/Documentation/xspim.man ${MANPREFIX}/man/man1/xspim.1
-.endif
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/Documentation/TeX/cycle.ps ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/Documentation/TeX/spim.ps ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/Documentation/SPIM.html ${DOCSDIR}
-	${GZIP_CMD} ${DOCSDIR}/cycle.ps ${DOCSDIR}/spim.ps
+	${INSTALL_PROGRAM} ${WRKSRC}/xspim/xspim ${STAGEDIR}${PREFIX}/bin/xspim
+	${INSTALL_MAN} ${WRKSRC}/Documentation/xspim.man ${STAGEDIR}${MANPREFIX}/man/man1/xspim.1
 .endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/Documentation/TeX/cycle.ps ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/Documentation/TeX/spim.ps ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/Documentation/SPIM.html ${STAGEDIR}${DOCSDIR}
+	${GZIP_CMD} ${STAGEDIR}${DOCSDIR}/cycle.ps ${STAGEDIR}${DOCSDIR}/spim.ps
 
 .include <bsd.port.mk>



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