aboutsummaryrefslogtreecommitdiff
path: root/lang/yorick/Makefile
diff options
context:
space:
mode:
authorFUJISHIMA Satsuki <sf@FreeBSD.org>2001-09-22 06:12:03 +0000
committerFUJISHIMA Satsuki <sf@FreeBSD.org>2001-09-22 06:12:03 +0000
commit8f30eadf72cb2c5d0ee3134b8549beb93ad4899f (patch)
tree7c6a84ca02b3680523fc0a070264d5891e9b3966 /lang/yorick/Makefile
parentb42604dddf97be2120fa1100d373ec73166e7c36 (diff)
downloadports-8f30eadf72cb2c5d0ee3134b8549beb93ad4899f.tar.gz
ports-8f30eadf72cb2c5d0ee3134b8549beb93ad4899f.zip
Notes
Diffstat (limited to 'lang/yorick/Makefile')
-rw-r--r--lang/yorick/Makefile43
1 files changed, 28 insertions, 15 deletions
diff --git a/lang/yorick/Makefile b/lang/yorick/Makefile
index eb98ada6abd2..0fedda033ac6 100644
--- a/lang/yorick/Makefile
+++ b/lang/yorick/Makefile
@@ -6,30 +6,43 @@
#
PORTNAME= yorick
-PORTVERSION= 1.4.1
+PORTVERSION= 1.5.02
CATEGORIES= lang math
-MASTER_SITES= ftp://ftp-icf.llnl.gov/pub/Yorick/ \
+MASTER_SITES= ftp://ftp-icf.llnl.gov/pub/Yorick/ \
ftp://wuarchive.wustl.edu/languages/yorick/
-DISTNAME= yorick-1.4
-
-PATCH_SITES= ftp://ftp-icf.llnl.gov/pub/Yorick/
-PATCHFILES= yorick-1.4.diff.gz
-PATCH_DIST_STRIP=-p1
+EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
+
USE_XLIB= yes
-HAS_CONFIGURE= yes
-ALL_TARGET=
+MAKE_ARGS= Y_HOME="${PREFIX}/lib/${PORTNAME}" Y_SITE="${DATADIR}"
MAN1= yorick.1 gist.1
+PORTDOCS= FILE_FORMATS README drat.doc drat.tex graph.doc hex.doc \
+ library.doc math.doc refs.ps refs.tex std.doc yorick.pdf \
+ yorick.ps yorick.tex
+
+post-patch:
+ @${PERL} -pi -e \
+ 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/play/x11/xconfig.sh
+
+do-configure:
+ @(cd ${CONFIGURE_WRKSRC}; ${SETENV} ${MAKE_ENV} \
+ ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ysite config)
+
post-install:
- strip $(PREFIX)/bin/yorick
- strip $(PREFIX)/bin/gist
- @${INSTALL_MAN} ${WRKSRC}/yorick.1 ${PREFIX}/man/man1/
- @${INSTALL_MAN} ${WRKSRC}/gist.1 ${PREFIX}/man/man1/
-.if defined(NOPORTDOCS)
- ${RM} -rf $(PREFIX)/share/yorick/1.4/doc
+.for file in gist yorick
+ ${INSTALL_MAN} ${WRKSRC}/doc/${file}.1 ${PREFIX}/man/man1
+ @strip ${PREFIX}/lib/${PORTNAME}/bin/${file}
+ @${LN} -sf ${PREFIX}/lib/${PORTNAME}/bin/${file} ${PREFIX}/bin/${file}
+.endfor
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
+.endfor
.endif
.include <bsd.port.mk>