Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jun 2014 13:07:53 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r356115 - head/lang/rexx-imc
Message-ID:  <201406011307.s51D7rP5058232@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sun Jun  1 13:07:52 2014
New Revision: 356115
URL: http://svnweb.freebsd.org/changeset/ports/356115
QAT: https://qat.redports.org/buildarchive/r356115/

Log:
  - Add staging support
  - Define available options

Modified:
  head/lang/rexx-imc/Makefile
  head/lang/rexx-imc/pkg-plist

Modified: head/lang/rexx-imc/Makefile
==============================================================================
--- head/lang/rexx-imc/Makefile	Sun Jun  1 13:03:14 2014	(r356114)
+++ head/lang/rexx-imc/Makefile	Sun Jun  1 13:07:52 2014	(r356115)
@@ -22,17 +22,13 @@ CONFIGURE_ARGS=		o all
 
 # configures and builds in one step
 NO_BUILD=		yes
-
 USE_LDCONFIG=		yes
 
-MAN1=		rexx.1 rxstack.1 rxque.1
-
 DOCFILES=	rexx.info rexx.ref rexx.summary rexx.tech
 RMEFILES=	README README.Y2K README.bugreport README.docs \
 		README.files README.make README.news README.platforms
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 post-patch:
 # CFLAGS safeness for ARCHs other than i386
@@ -41,33 +37,19 @@ post-patch:
 	@${REINPLACE_CMD} -E -e 's|^CC=.+$$|CC=${CC}|' ${WRKSRC}/Make
 
 do-install:
-# install interpreter and daemon helpers
-.for prog in rexx rxque rxstack
-	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${prog} ${PREFIX}/bin)
-.endfor
-# install shared libraries, include file, and rxlib
-	(cd ${WRKSRC} && ${INSTALL_DATA} rexxsaa.h ${PREFIX}/include)
-# DO NOT delete rxlib or you will lose ability to call mathlib!!
-.for lib in librexx.so.2 rxmathfn.rxfn rxmathfn.rxlib
-	(cd ${WRKSRC} && ${INSTALL_DATA} ${lib} ${PREFIX}/lib)
-.endfor
-	@${LN} -sf librexx.so.2 ${PREFIX}/lib/librexx.so
-# install man pages
-.for man in ${MAN1}
-	(cd ${WRKSRC} && ${INSTALL_MAN} ${man} ${MANPREFIX}/man/man1)
-.endfor
-# install documenation and examples
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-.for doc in ${DOCFILES} ${RMEFILES}
-	(cd ${WRKSRC} && ${INSTALL_DATA} ${doc} ${DOCSDIR})
-.endfor
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
-	@${MKDIR} ${EXAMPLESDIR}
-.for ex in box rexxcps.rexx rexxtest.rexx rxmathfn.rexx shell.rexx
-	(cd ${WRKSRC} && ${INSTALL_SCRIPT} ${ex} ${EXAMPLESDIR})
-.endfor
-.endif
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} rexx rxque rxstack \
+		${STAGEDIR}${PREFIX}/bin)
+	${INSTALL_DATA} ${WRKSRC}/rexxsaa.h ${STAGEDIR}${PREFIX}/include
+	(cd ${WRKSRC} && ${INSTALL_DATA} librexx.so.2 rxmathfn.rxfn \
+		rxmathfn.rxlib ${STAGEDIR}${PREFIX}/lib)
+	@${LN} -sf librexx.so.2 ${STAGEDIR}${PREFIX}/lib/librexx.so
+	(cd ${WRKSRC} && ${INSTALL_MAN} rexx.1 rxstack.1 rxque.1 \
+		${STAGEDIR}${MANPREFIX}/man/man1)
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${RMEFILES} \
+		${STAGEDIR}${DOCSDIR})
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${WRKSRC} && ${INSTALL_SCRIPT} box rexxcps.rexx rexxtest.rexx \
+		rxmathfn.rexx shell.rexx ${STAGEDIR}${EXAMPLESDIR})
 
 .include <bsd.port.mk>

Modified: head/lang/rexx-imc/pkg-plist
==============================================================================
--- head/lang/rexx-imc/pkg-plist	Sun Jun  1 13:03:14 2014	(r356114)
+++ head/lang/rexx-imc/pkg-plist	Sun Jun  1 13:07:52 2014	(r356115)
@@ -6,6 +6,9 @@ lib/librexx.so
 lib/librexx.so.2
 lib/rxmathfn.rxfn
 lib/rxmathfn.rxlib
+man/man1/rexx.1.gz
+man/man1/rxque.1.gz
+man/man1/rxstack.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/README
 %%PORTDOCS%%%%DOCSDIR%%/README.Y2K
 %%PORTDOCS%%%%DOCSDIR%%/README.bugreport



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