2002-05-28 03:31:29 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: oaeses
|
|
|
|
# Date created: May 27, 2002
|
|
|
|
# Whom: Heiner Strauss <heiner@bilch.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= oases
|
|
|
|
PORTVERSION= 2.2
|
2002-10-22 06:23:02 +00:00
|
|
|
PORTREVISION= 1
|
2002-05-28 03:31:29 +00:00
|
|
|
CATEGORIES= science
|
|
|
|
MASTER_SITES= ftp://keel.mit.edu/pub/Oases/
|
|
|
|
DISTNAME= oases_Mar-28-2002
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= Ocean Acoustics and Seismic Exploration Synthesis
|
2002-05-28 03:31:29 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/Oases_export
|
|
|
|
|
2002-10-22 06:23:02 +00:00
|
|
|
USE_XLIB= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
MAKE_ENV= OASES_ROOT="${WRKSRC}"
|
|
|
|
|
2002-05-28 03:31:29 +00:00
|
|
|
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 \
|
2002-10-22 06:23:02 +00:00
|
|
|
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
|
2002-05-28 03:31:29 +00:00
|
|
|
|
|
|
|
do-install:
|
2002-10-22 06:23:02 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD-FreeBSD/* ${PREFIX}/bin
|
2002-05-28 03:31:29 +00:00
|
|
|
.for script in ${SCRIPT}
|
2002-10-22 06:23:02 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/${script} ${PREFIX}/bin
|
2002-05-28 03:31:29 +00:00
|
|
|
.endfor
|
2002-10-22 06:23:02 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/FreeBSD-FreeBSD/*.a ${PREFIX}/lib
|
2002-05-28 03:31:29 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-22 06:23:02 +00:00
|
|
|
@${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 -
|
2002-05-28 03:31:29 +00:00
|
|
|
.endfor
|
2002-10-22 06:23:02 +00:00
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
2002-05-28 03:31:29 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|