diff options
author | nectar <nectar@FreeBSD.org> | 1998-11-25 02:46:10 +0800 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 1998-11-25 02:46:10 +0800 |
commit | 24400768a561fe1333cae413423786ac06912a3f (patch) | |
tree | ceb682012703e9ad037299a4dc741acb5949a401 /lang/rexx-imc/Makefile | |
parent | d0ad5104e884cb4236b6006e2b97c5a9971803b4 (diff) | |
download | freebsd-ports-gnome-24400768a561fe1333cae413423786ac06912a3f.tar.gz freebsd-ports-gnome-24400768a561fe1333cae413423786ac06912a3f.tar.zst freebsd-ports-gnome-24400768a561fe1333cae413423786ac06912a3f.zip |
* Update checksum for distribution.
* Fix for ELF.
* Fix misuse of errno as a structure member name (original author
notified).
* Build and install both static and shared libraries.
* Move install target from port Makefile to files/Makefile.
Diffstat (limited to 'lang/rexx-imc/Makefile')
-rw-r--r-- | lang/rexx-imc/Makefile | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/lang/rexx-imc/Makefile b/lang/rexx-imc/Makefile index e6890e5b8a0e..fc8679756e15 100644 --- a/lang/rexx-imc/Makefile +++ b/lang/rexx-imc/Makefile @@ -3,7 +3,7 @@ # Date created: Septermber 21 96 # Whom: James FitzGibbon <jfitz@FreeBSD.org> # -# $Id: Makefile,v 1.4 1998/05/03 18:03:23 steve Exp $ +# $Id: Makefile,v 1.5 1998/10/14 03:46:56 jseger Exp $ # DISTNAME= rexx-imc-1.6d @@ -12,33 +12,34 @@ MASTER_SITES= http://www.comlab.ox.ac.uk/oucl/users/ian.collier/distribution/ MAINTAINER= jfitz@FreeBSD.ORG -BROKEN_ELF= yes - NO_WRKSUBDIR= YES +MAKE_ENV= MKDIR="${MKDIR}" + +# we must patch these files until the author correct misuse of +# errno in struct fileinfo +UGLY_PATCH= rexx.c rxfn.c util.c + +.include <bsd.port.pre.mk> + +post-patch: +.for c in ${UGLY_PATCH} + @${ECHO_MSG} "Changing struct fileinfo member errno to ferrno in ${c}" + @mv ${WRKSRC}/${c} ${WRKSRC}/${c}.old + @${SED} 's/->errno/->ferrno/g;' ${WRKSRC}/${c}.old > ${WRKSRC}/${c} + @${RM} ${WRKSRC}/${c}.old +.endfor + pre-build: @ ${CP} ${FILESDIR}/Makefile ${WRKDIR} -do-install: - @strip ${WRKDIR}/librexx.so.1.6.4 ${WRKDIR}/rxmathfn.rxfn - @ for file in rexx rxque rxstack; do \ - ${INSTALL_PROGRAM} ${WRKDIR}/$$file ${PREFIX}/bin; \ - done - @ for file in rxmathfn.rxfn rxmathfn.rxlib; do \ - ${INSTALL_DATA} ${WRKDIR}/$$file ${PREFIX}/bin; \ - done - @ for file in librexx.a librexx.so.1.6.4; do \ - ${INSTALL_DATA} ${WRKDIR}/$$file ${PREFIX}/lib; \ - done - @(${INSTALL_DATA} ${WRKDIR}/rexxsaa.h ${PREFIX}/include) -.ifndef(NOPORTDOCS) - @ ${MKDIR} ${PREFIX}/share/doc/rexx-imc/ - @ for file in README README.avail README.bugreport README.docs README.files README.make README.news README.versions rexx.info rexx.ref rexx.summary rexx.tech; do \ - ${INSTALL_DATA} ${WRKDIR}/$$file ${PREFIX}/share/doc/rexx-imc/; \ - done -.endif - post-install: - @ ${LDCONFIG} -m ${PREFIX}/lib +.if ${PORTOBJFORMAT} == "aout" + @${ECHO_MSG} "Fixing packing list for a.out" + @${MV} ${TMPPLIST} ${TMPPLIST}.new + @${GREP} -v '.so$$' ${TMPPLIST}.new > ${TMPPLIST} + @${RM} ${TMPPLIST}.new +.endif + @${LDCONFIG} -m ${PREFIX}/lib -.include <bsd.port.mk> +.include <bsd.port.post.mk> |