aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-10-22 06:23:02 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-10-22 06:23:02 +0000
commit03f93af6128663aa904d4d879d0949b5bbe5d39f (patch)
tree0a86ad6fed900006802c6eebf745077432e534e5
parent1fad8ad261ed1b12005a701b8f494a1ae6d2a07e (diff)
downloadports-03f93af6128663aa904d4d879d0949b5bbe5d39f.tar.gz
ports-03f93af6128663aa904d4d879d0949b5bbe5d39f.zip
Notes
-rw-r--r--science/oases/Makefile41
-rw-r--r--science/oases/files/patch-aa46
-rw-r--r--science/oases/pkg-plist28
3 files changed, 64 insertions, 51 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>
diff --git a/science/oases/files/patch-aa b/science/oases/files/patch-aa
index a1e3394989ea..95db14108d5c 100644
--- a/science/oases/files/patch-aa
+++ b/science/oases/files/patch-aa
@@ -1,5 +1,5 @@
---- Makefile Thu May 23 10:01:27 2002
-+++ Makefile Thu May 23 10:29:51 2002
+--- Makefile.orig Fri Jan 25 01:50:33 2002
++++ Makefile Mon Oct 21 22:29:49 2002
@@ -4,6 +4,7 @@
# Written by: Henrik Schmidt
# Modified by: Peter Daly
@@ -13,40 +13,40 @@
# Binary and Library paths
#
-OASES_ROOT=${HOME}/Oases
-+OASES_ROOT=${WRKDIRPREFIX}${.CURDIR}
++#OASES_ROOT=${HOME/Oases
BIN = $(OASES_ROOT)/bin/${HOSTTYPE}-${OSTYPE}
LIB = $(OASES_ROOT)/lib/${HOSTTYPE}-${OSTYPE}
OBJ = ${HOSTTYPE}-${OSTYPE}
-@@ -32,7 +33,7 @@
+@@ -109,6 +110,23 @@
+ #
+ ##############################################################################
#
- FC.- = f77
- FFLAGS.- = -O
--CFLAGS.- =
-+CFLAGS.- = -I/usr/X11R6/include
- LFLAGS.- =
- RANLIB.- = ranlib
- LIB_MISC.- =
-@@ -105,6 +106,23 @@
- RANLIB.unknown-unknown = ranlib
- LIB_MISC.unknown-unknown =
- MISC.unknown-unknown =
-+#
-+##############################################################################
-+#
+# Intel x86 RUNNING FreeBSD 4.1 (or higher)
+#
+##############################################################################
+#
+# Compiler flags
+#
-+FC.FreeBSD-FreeBSD = f77
-+CC.FreeBSD-FreeBSD = cc
-+FFLAGS.FreeBSD-FreeBSD = -O
-+CFLAGS.FreeBSD-FreeBSD = -I/usr/X11R6/include
-+LFLAGS.FreeBSD-FreeBSD = -L/usr/X11R6/lib
++FC.FreeBSD-FreeBSD = %%FC%%
++CC.FreeBSD-FreeBSD = %%CC%%
++FFLAGS.FreeBSD-FreeBSD = %%FFLAGS%%
++CFLAGS.FreeBSD-FreeBSD = %%CFLAGS%% -I%%X11BASE%%/include
++LFLAGS.FreeBSD-FreeBSD = %%LDFLAGS%% -L%%X11BASE%%/lib
+RANLIB.FreeBSD-FreeBSD = ranlib
+LIB_MISC.FreeBSD-FreeBSD =
+MISC.FreeBSD-FreeBSD =
++#
++##############################################################################
++#
+ # DIGITAL MIPS-based WORKSTATIONS RUNNING ULTRIX 4.4 (or higher)
#
##############################################################################
+@@ -223,7 +241,7 @@
+ # 'OSTYPE = ${OSTYPE}' 'HOSTTYPE = ${HOSTTYPE}'
#
+ all: objdir oases.done mplot.done cplot.done pp.done \
+- mindis.done mail.send
++ mindis.done
+ rm -f *.done
+
+ new: clean_mail clean objdir all
diff --git a/science/oases/pkg-plist b/science/oases/pkg-plist
index 5464a75a3766..3c64c7fdd6f6 100644
--- a/science/oases/pkg-plist
+++ b/science/oases/pkg-plist
@@ -67,8 +67,6 @@ lib/pulslib.a
%%PORTDOCS%%share/doc/oases/figs/vol_scat.ps
%%PORTDOCS%%share/doc/oases/figs/wg_rhs.ps
%%PORTDOCS%%share/doc/oases/figs/wg_scat.ps
-%%PORTDOCS%%@dirrm share/doc/oases/figs
-%%PORTDOCS%%@dirrm share/doc/oases
%%PORTDOCS%%share/examples/oases/mfp/crack.dat
%%PORTDOCS%%share/examples/oases/mfp/crackmfp.dat
%%PORTDOCS%%share/examples/oases/mfp/f9-2.dat
@@ -1058,18 +1056,20 @@ lib/pulslib.a
%%PORTDOCS%%share/examples/oases/volume/scenarios_vol/vol_c_iso4_scat.dat
%%PORTDOCS%%share/examples/oases/volume/scenarios_vol/vol_c_iso6.dat
%%PORTDOCS%%share/examples/oases/volume/scenarios_vol/vol_c_iso6_scat.dat
-%%PORTDOCS%%@dirrm share/examples/oases/mfp
-%%PORTDOCS%%@dirrm share/examples/oases/mfp_geo
-%%PORTDOCS%%@dirrm share/examples/oases/noise
-%%PORTDOCS%%@dirrm share/examples/oases/pulse
-%%PORTDOCS%%@dirrm share/examples/oases/rcoef
-%%PORTDOCS%%@dirrm share/examples/oases/rd_test
-%%PORTDOCS%%@dirrm share/examples/oases/rdloss
-%%PORTDOCS%%@dirrm share/examples/oases/rdpulse
-%%PORTDOCS%%@dirrm share/examples/oases/scat
-%%PORTDOCS%%@dirrm share/examples/oases/scatp
-%%PORTDOCS%%@dirrm share/examples/oases/tloss
-%%PORTDOCS%%@dirrm share/examples/oases/volume/scenarios_rgh
%%PORTDOCS%%@dirrm share/examples/oases/volume/scenarios_vol
+%%PORTDOCS%%@dirrm share/examples/oases/volume/scenarios_rgh
%%PORTDOCS%%@dirrm share/examples/oases/volume
+%%PORTDOCS%%@dirrm share/examples/oases/tloss
+%%PORTDOCS%%@dirrm share/examples/oases/scatp
+%%PORTDOCS%%@dirrm share/examples/oases/scat
+%%PORTDOCS%%@dirrm share/examples/oases/rdpulse
+%%PORTDOCS%%@dirrm share/examples/oases/rdloss
+%%PORTDOCS%%@dirrm share/examples/oases/rd_test
+%%PORTDOCS%%@dirrm share/examples/oases/rcoef
+%%PORTDOCS%%@dirrm share/examples/oases/pulse
+%%PORTDOCS%%@dirrm share/examples/oases/noise
+%%PORTDOCS%%@dirrm share/examples/oases/mfp_geo
+%%PORTDOCS%%@dirrm share/examples/oases/mfp
%%PORTDOCS%%@dirrm share/examples/oases
+%%PORTDOCS%%@dirrm share/doc/oases/figs
+%%PORTDOCS%%@dirrm share/doc/oases