1997-11-24 10:23:01 +01:00
|
|
|
# New ports collection makefile for: Yorick
|
|
|
|
# Date created: 26 Oct 97
|
|
|
|
# Whom: Pedro Giffuni <giffunip@asme.org>
|
|
|
|
#
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1997-11-24 10:23:01 +01:00
|
|
|
#
|
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= yorick
|
2010-05-20 23:16:17 +02:00
|
|
|
PORTVERSION= 2.1.06
|
1997-11-24 10:23:01 +01:00
|
|
|
CATEGORIES= lang math
|
2009-08-22 02:24:37 +02:00
|
|
|
MASTER_SITES= SF
|
2001-09-22 08:12:03 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
1997-11-24 10:23:01 +01:00
|
|
|
|
2010-02-23 19:07:14 +01:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2003-02-21 13:35:09 +01:00
|
|
|
COMMENT= Interpreted language and scientific graphics
|
1997-11-24 10:23:01 +01:00
|
|
|
|
2001-09-22 08:12:03 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
|
|
|
|
|
2008-03-24 00:03:18 +01:00
|
|
|
USE_XORG= x11
|
2005-05-20 17:23:32 +02:00
|
|
|
MAKE_ARGS= Y_HOME=relocatable Y_DOCDIR=/dev/null
|
1997-11-24 10:23:01 +01:00
|
|
|
MAN1= yorick.1 gist.1
|
2003-09-09 08:46:12 +02:00
|
|
|
INFO= yorick
|
1997-11-24 10:23:01 +01:00
|
|
|
|
2005-05-20 17:23:32 +02:00
|
|
|
PORTDOCS= FILE_FORMATS README drat.doc graph.doc hex.doc \
|
2006-03-16 14:05:54 +01:00
|
|
|
library.doc math.doc refs.pdf refs.tex std.doc \
|
|
|
|
yorick.pdf yorick.tex
|
2001-09-22 08:12:03 +02:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@(cd ${CONFIGURE_WRKSRC}; ${SETENV} ${MAKE_ENV} \
|
|
|
|
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ysite config)
|
|
|
|
|
2002-02-09 10:16:00 +01:00
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC}/doc; make yorick.info
|
|
|
|
|
1997-11-24 10:23:01 +01:00
|
|
|
post-install:
|
2005-05-20 17:23:32 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/emacs/yorick.el ${WRKSRC}/relocatable
|
|
|
|
@${RM} -rf ${WRKSRC}/relocatable/doc
|
|
|
|
@${RM} -rf ${PREFIX}/lib/${PORTNAME}
|
|
|
|
@${MV} ${WRKSRC}/relocatable ${PREFIX}/lib/${PORTNAME}
|
2001-12-24 11:37:45 +01:00
|
|
|
.for file in gist yorick
|
2001-09-22 08:12:03 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${file}.1 ${PREFIX}/man/man1
|
2002-02-09 10:16:00 +01:00
|
|
|
@${STRIP_CMD} ${PREFIX}/lib/${PORTNAME}/bin/${file}
|
2001-09-22 08:12:03 +02:00
|
|
|
@${LN} -sf ${PREFIX}/lib/${PORTNAME}/bin/${file} ${PREFIX}/bin/${file}
|
|
|
|
.endfor
|
2002-02-09 10:16:00 +01:00
|
|
|
@${STRIP_CMD} ${PREFIX}/lib/${PORTNAME}/lib/codger
|
2001-09-22 08:12:03 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-12-14 00:59:49 +01:00
|
|
|
.for file in ${PORTDOCS}
|
2001-09-22 08:12:03 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
2005-05-20 17:23:32 +02:00
|
|
|
@${LN} -sf ${DOCSDIR} ${PREFIX}/lib/${PORTNAME}/doc
|
2006-03-16 14:05:54 +01:00
|
|
|
.endif
|
2002-02-09 10:16:00 +01:00
|
|
|
for f in ${WRKSRC}/doc/yorick.info*; do \
|
2006-03-16 14:05:54 +01:00
|
|
|
${INSTALL_DATA} $$f ${PREFIX}/${INFO_PATH}; \
|
2002-02-09 10:16:00 +01:00
|
|
|
done
|
1997-11-24 10:23:01 +01:00
|
|
|
|
2008-06-26 14:28:08 +02:00
|
|
|
# Hidden by default: this requires an X terminal to run all checks
|
|
|
|
.ifdef MAINTAINER_MODE
|
|
|
|
regression-test: build
|
|
|
|
(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} check)
|
|
|
|
.endif
|
|
|
|
|
1997-11-24 10:23:01 +01:00
|
|
|
.include <bsd.port.mk>
|