aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-06-01 21:07:52 +0800
committerpawel <pawel@FreeBSD.org>2014-06-01 21:07:52 +0800
commitf823d29c60b5ae63a259119f82e9f1a4549fe839 (patch)
tree5e9c74d12a0bbf73e3228c760124bbf658870a9d /lang
parent8f993794383a8ef4d48cd10d14f9f5365f79fa25 (diff)
downloadfreebsd-ports-gnome-f823d29c60b5ae63a259119f82e9f1a4549fe839.tar.gz
freebsd-ports-gnome-f823d29c60b5ae63a259119f82e9f1a4549fe839.tar.zst
freebsd-ports-gnome-f823d29c60b5ae63a259119f82e9f1a4549fe839.zip
- Add staging support
- Define available options
Diffstat (limited to 'lang')
-rw-r--r--lang/rexx-imc/Makefile48
-rw-r--r--lang/rexx-imc/pkg-plist3
2 files changed, 18 insertions, 33 deletions
diff --git a/lang/rexx-imc/Makefile b/lang/rexx-imc/Makefile
index 6f27787f2ac8..30f1c28ae7a5 100644
--- a/lang/rexx-imc/Makefile
+++ b/lang/rexx-imc/Makefile
@@ -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>
diff --git a/lang/rexx-imc/pkg-plist b/lang/rexx-imc/pkg-plist
index e235023b5674..2ccf04d128aa 100644
--- a/lang/rexx-imc/pkg-plist
+++ b/lang/rexx-imc/pkg-plist
@@ -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