aboutsummaryrefslogtreecommitdiffstats
path: root/science/oases/Makefile
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-10-22 14:23:02 +0800
committerijliao <ijliao@FreeBSD.org>2002-10-22 14:23:02 +0800
commit60e1e693a653d39d5fbb3129ba6f010b346ec2f6 (patch)
tree402372a561b93a058e22a6e99fc1042e881a4dbd /science/oases/Makefile
parent6bb3d9f10c056e8f4f5e87f33ef86d96c98d5311 (diff)
downloadfreebsd-ports-gnome-60e1e693a653d39d5fbb3129ba6f010b346ec2f6.tar.gz
freebsd-ports-gnome-60e1e693a653d39d5fbb3129ba6f010b346ec2f6.tar.zst
freebsd-ports-gnome-60e1e693a653d39d5fbb3129ba6f010b346ec2f6.zip
- Support CC/CFLAGS/FC/FFLAGS/X11BASE properly
PR: 44354 Submitted by: Ports Fury
Diffstat (limited to 'science/oases/Makefile')
-rw-r--r--science/oases/Makefile41
1 files changed, 27 insertions, 14 deletions
diff --git a/science/oases/Makefile b/science/oases/Makefile
index 1984bfacb047..19604eec16d6 100644
--- a/science/oases/Makefile
+++ b/science/oases/Makefile
@@ -8,37 +8,50 @@
PORTNAME= oases
PORTVERSION= 2.2
+PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= ftp://keel.mit.edu/pub/Oases/
DISTNAME= oases_Mar-28-2002
MAINTAINER= ports@FreeBSD.org
-USE_XLIB= yes
WRKSRC= ${WRKDIR}/Oases_export
-OASES_ROOT= ${WRKSRC}
+USE_XLIB= yes
+USE_REINPLACE= yes
+MAKE_ENV= OASES_ROOT="${WRKSRC}"
+
SCRIPT= avbeam bistat cplot mplot mtvplot multmtv oasn oasp oasr \
oass oassp oast plp2mtv
EXAMPLE= mfp mfp_geo noise pulse rcoef rd_test rdloss rdpulse \
- scat scatp tloss
+ scat scatp tloss volume
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%FC%%|${FC}|g ; \
+ s|%%CC%%|${CC}|g ; \
+ s|%%FFLAGS%%|${FFLAGS}|g ; \
+ s|%%CFLAGS%%|${CFLAGS}|g ; \
+ s|%%LDFLAGS%%|${LDFLAGS}|g ; \
+ s|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD-FreeBSD/* ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD-FreeBSD/* ${PREFIX}/bin
.for script in ${SCRIPT}
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/${script} ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/${script} ${PREFIX}/bin
.endfor
- ${INSTALL_DATA} ${WRKSRC}/lib/FreeBSD-FreeBSD/*.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/lib/FreeBSD-FreeBSD/*.a ${PREFIX}/lib
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- @${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
- @${MKDIR} ${EXAMPLESDIR}
-.for example in ${EXAMPLE}
- @${MKDIR} ${EXAMPLESDIR}/${example}
- ${INSTALL_DATA} ${WRKSRC}/${example}/* ${EXAMPLESDIR}/${example}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${TAR} -C ${WRKSRC}/doc -cf - . | \
+ ${TAR} -C ${DOCSDIR} --unlink -xf -
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
+ @${MKDIR} ${EXAMPLESDIR}
+.for dir in ${EXAMPLE}
+ ${TAR} -C ${WRKSRC} -cf - ${dir} | \
+ ${TAR} -C ${EXAMPLESDIR} --unlink -xf -
.endfor
- @${CP} -R ${WRKSRC}/volume ${EXAMPLESDIR}
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>