aboutsummaryrefslogtreecommitdiffstats
path: root/science
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
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')
-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