1996-12-19 20:41:57 +01:00
|
|
|
# New ports collection makefile for: geomview
|
|
|
|
# Date created: 5 November 1996
|
|
|
|
# Whom: fenner
|
1997-11-27 01:32:36 +01:00
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1999-11-28 19:32:45 +01:00
|
|
|
#
|
1996-12-19 20:41:57 +01:00
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= geomview
|
2009-01-14 10:12:13 +01:00
|
|
|
PORTVERSION= 1.9.4
|
2011-05-02 14:44:53 +02:00
|
|
|
PORTREVISION= 2
|
2003-12-12 07:24:50 +01:00
|
|
|
CATEGORIES= graphics
|
2009-01-14 10:12:13 +01:00
|
|
|
MASTER_SITES= SF
|
1996-12-19 20:41:57 +01:00
|
|
|
|
2008-09-01 15:35:21 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= An interactive viewer for 3- and 4-D geometric objects
|
1996-12-19 20:41:57 +01:00
|
|
|
|
2008-09-03 03:45:10 +02:00
|
|
|
NOT_FOR_ARCHS= amd64
|
|
|
|
NOT_FOR_ARCHS_REASON= Segfaults on amd64
|
|
|
|
|
2012-06-12 23:42:32 +02:00
|
|
|
OPTIONS_DEFINE= MOTION_AVG DOCS EXAMPLES
|
|
|
|
MOTION_AVG_DESC= Use experimental motion averaging code
|
2003-12-10 18:18:44 +01:00
|
|
|
|
2009-01-14 10:12:13 +01:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_MOTIF= yes
|
|
|
|
USE_GL= glu
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2009-01-14 10:12:13 +01:00
|
|
|
CONFIGURE_ARGS= --with-motif=${LOCALBASE} --with-opengl=${LOCALBASE}
|
|
|
|
USE_LDCONFIG= yes
|
2006-07-20 20:30:08 +02:00
|
|
|
|
2009-01-14 10:12:13 +01:00
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}"
|
2003-12-10 18:18:44 +01:00
|
|
|
|
2009-01-14 10:12:13 +01:00
|
|
|
MAN1= animate.1gv anytooff.1gv anytoucd.1gv bdy.1gv bez2mesh.1gv \
|
|
|
|
clip.1gv geomview.1gv hvectext.1gv math2oogl.1gv nose.1gv \
|
|
|
|
offconsol.1gv oogl2rib.1gv oogl2vrml.1gv polymerge.1gv \
|
|
|
|
togeomview.1gv ucdtooff.1gv vrml2oogl.1gv
|
|
|
|
MAN3= anytopl.3gv bdy.3gv fsaparse.3gv geomutil.3gv lisp.3gv \
|
|
|
|
plcombine.3gv plconsol.3gv
|
|
|
|
MAN5= discgrp.5gv geomview.5gv oogl.5gv
|
|
|
|
INFO= geomview
|
1996-12-19 20:41:57 +01:00
|
|
|
|
2000-01-26 07:01:56 +01:00
|
|
|
# Set "CPU" type for Geomview make
|
1996-12-19 20:41:57 +01:00
|
|
|
# Allow user to specify "make install MAPLE_LIB=foo" as geomview wants
|
2000-01-26 07:01:56 +01:00
|
|
|
MAKE_ENV= CPU=FreeBSD MAPLE_LIB=${MAPLE_LIB}
|
1996-12-19 20:41:57 +01:00
|
|
|
|
2012-06-12 23:42:32 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2002-11-22 21:44:29 +01:00
|
|
|
|
2012-06-12 23:42:32 +02:00
|
|
|
.if ${PORT_OPTIONS:MMOTION_AVG}
|
2009-01-14 10:12:13 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-motion-averaging
|
|
|
|
.endif
|
2002-11-22 21:44:29 +01:00
|
|
|
|
2009-01-14 10:12:13 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS =/s|doc||g' ${WRKSRC}/Makefile.in
|
|
|
|
.for i in src/bin/geomutil/math2oogl/Makefile.in \
|
|
|
|
src/bin/geomutil/maple2oogl/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^install-data-am:/s|install-docDATA||g' ${WRKSRC}/${i}
|
1996-12-19 20:41:57 +01:00
|
|
|
.endfor
|
2009-01-14 10:12:13 +01:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC}/doc && /usr/bin/makeinfo --no-split --no-validate \
|
|
|
|
-o geomview.info geomview.texi
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_MAN} *.3gv ${MAN3PREFIX}/man/man3
|
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_MAN} *.5gv ${MAN5PREFIX}/man/man5
|
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} *.info ${PREFIX}/${INFO_PATH}
|
2012-06-12 23:42:32 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2009-01-14 10:12:13 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in OOGL.m.txt README README.gvplot geomview.pdf geomview-pt_BR.pdf \
|
|
|
|
oogltour oogltour-pt_BR
|
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${i} ${DOCSDIR}
|
2006-07-20 20:30:08 +02:00
|
|
|
.endfor
|
2009-01-14 10:12:13 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}/html
|
|
|
|
cd ${WRKSRC}/doc/geomview.html \
|
|
|
|
&& ${INSTALL_DATA} *.html ${DOCSDIR}/html
|
|
|
|
@${MKDIR} ${DOCSDIR}/html/figs
|
|
|
|
cd ${WRKSRC}/doc/figs \
|
|
|
|
&& ${INSTALL_DATA} *.png ${DOCSDIR}/html/figs
|
|
|
|
@${MKDIR} ${DOCSDIR}/html/pt_BR
|
|
|
|
cd ${WRKSRC}/doc/geomview-pt_BR.html \
|
|
|
|
&& ${INSTALL_DATA} *.html ${DOCSDIR}/html/pt_BR
|
|
|
|
cd ${DOCSDIR}/html/pt_BR && ${LN} -sf ../figs .
|
|
|
|
.endif
|
2012-06-12 23:42:32 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2009-01-14 10:12:13 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} *.c ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} *.tcl ${EXAMPLESDIR}
|
2003-12-10 18:18:44 +01:00
|
|
|
.endif
|
1996-12-19 20:41:57 +01:00
|
|
|
|
2012-06-12 23:42:32 +02:00
|
|
|
.include <bsd.port.mk>
|