mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Add staging support
- Define available options
This commit is contained in:
parent
886a9071a1
commit
bca05c2bf2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356115
2 changed files with 18 additions and 33 deletions
|
@ -22,17 +22,13 @@ CONFIGURE_ARGS= o all
|
||||||
|
|
||||||
# configures and builds in one step
|
# configures and builds in one step
|
||||||
NO_BUILD= yes
|
NO_BUILD= yes
|
||||||
|
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
|
|
||||||
MAN1= rexx.1 rxstack.1 rxque.1
|
|
||||||
|
|
||||||
DOCFILES= rexx.info rexx.ref rexx.summary rexx.tech
|
DOCFILES= rexx.info rexx.ref rexx.summary rexx.tech
|
||||||
RMEFILES= README README.Y2K README.bugreport README.docs \
|
RMEFILES= README README.Y2K README.bugreport README.docs \
|
||||||
README.files README.make README.news README.platforms
|
README.files README.make README.news README.platforms
|
||||||
|
|
||||||
NO_STAGE= yes
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||||
.include <bsd.port.options.mk>
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
# CFLAGS safeness for ARCHs other than i386
|
# CFLAGS safeness for ARCHs other than i386
|
||||||
|
@ -41,33 +37,19 @@ post-patch:
|
||||||
@${REINPLACE_CMD} -E -e 's|^CC=.+$$|CC=${CC}|' ${WRKSRC}/Make
|
@${REINPLACE_CMD} -E -e 's|^CC=.+$$|CC=${CC}|' ${WRKSRC}/Make
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
# install interpreter and daemon helpers
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} rexx rxque rxstack \
|
||||||
.for prog in rexx rxque rxstack
|
${STAGEDIR}${PREFIX}/bin)
|
||||||
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${prog} ${PREFIX}/bin)
|
${INSTALL_DATA} ${WRKSRC}/rexxsaa.h ${STAGEDIR}${PREFIX}/include
|
||||||
.endfor
|
(cd ${WRKSRC} && ${INSTALL_DATA} librexx.so.2 rxmathfn.rxfn \
|
||||||
# install shared libraries, include file, and rxlib
|
rxmathfn.rxlib ${STAGEDIR}${PREFIX}/lib)
|
||||||
(cd ${WRKSRC} && ${INSTALL_DATA} rexxsaa.h ${PREFIX}/include)
|
@${LN} -sf librexx.so.2 ${STAGEDIR}${PREFIX}/lib/librexx.so
|
||||||
# DO NOT delete rxlib or you will lose ability to call mathlib!!
|
(cd ${WRKSRC} && ${INSTALL_MAN} rexx.1 rxstack.1 rxque.1 \
|
||||||
.for lib in librexx.so.2 rxmathfn.rxfn rxmathfn.rxlib
|
${STAGEDIR}${MANPREFIX}/man/man1)
|
||||||
(cd ${WRKSRC} && ${INSTALL_DATA} ${lib} ${PREFIX}/lib)
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
.endfor
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${RMEFILES} \
|
||||||
@${LN} -sf librexx.so.2 ${PREFIX}/lib/librexx.so
|
${STAGEDIR}${DOCSDIR})
|
||||||
# install man pages
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
.for man in ${MAN1}
|
(cd ${WRKSRC} && ${INSTALL_SCRIPT} box rexxcps.rexx rexxtest.rexx \
|
||||||
(cd ${WRKSRC} && ${INSTALL_MAN} ${man} ${MANPREFIX}/man/man1)
|
rxmathfn.rexx shell.rexx ${STAGEDIR}${EXAMPLESDIR})
|
||||||
.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
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -6,6 +6,9 @@ lib/librexx.so
|
||||||
lib/librexx.so.2
|
lib/librexx.so.2
|
||||||
lib/rxmathfn.rxfn
|
lib/rxmathfn.rxfn
|
||||||
lib/rxmathfn.rxlib
|
lib/rxmathfn.rxlib
|
||||||
|
man/man1/rexx.1.gz
|
||||||
|
man/man1/rxque.1.gz
|
||||||
|
man/man1/rxstack.1.gz
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/README.Y2K
|
%%PORTDOCS%%%%DOCSDIR%%/README.Y2K
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/README.bugreport
|
%%PORTDOCS%%%%DOCSDIR%%/README.bugreport
|
||||||
|
|
Loading…
Add table
Reference in a new issue