aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/geomview/Makefile
blob: a9f089ec6298b0e23781c8e73cd59b23815f7fc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# New ports collection makefile for:    geomview
# Date created:             5 November 1996
# Whom:                 fenner
#
# $FreeBSD$
#

PORTNAME=   geomview
PORTVERSION=    1.8.1
PORTREVISION=   3
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= geomview

MAINTAINER= bms@FreeBSD.org
COMMENT=    An interactive viewer for 3- and 4-D geometric objects

LIB_DEPENDS=    glut.4:${PORTSDIR}/graphics/libglut

USE_MOTIF=  yes
USE_X_PREFIX=   yes

USE_AUTOTOOLS=  autoconf:213

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-opengl=${X11BASE}

MANCOMPRESSED=  no
MAN1=       geomview.1 togeomview.1 bdy.1 oogl2rib.1 anytooff.1 \
        bez2mesh.1 offconsol.1 polymerge.1 vrml2oogl.1 clip.1 \
        math2oogl.1 oogl2vrml.1 anytoucd.1 ucdtooff.1
MAN3=       lisp.3
MAN5=       oogl.5 geomview.5

INFO=       geomview-7 geomview-6 geomview-5 geomview-4 geomview-3 \
        geomview-2 geomview-1 geomview

MAN_FILES=  oogl.5 geomview.5
DOC_FILES=  gvplot.txt oogltour OOGL.m.txt README

EXAMPLE_FILES=  example1.c example2.c example3.c example4.tcl

# Set "CPU" type for Geomview make
# Allow user to specify "make install MAPLE_LIB=foo" as geomview wants
MAKE_ENV=   CPU=FreeBSD MAPLE_LIB=${MAPLE_LIB}

AC_FAKE_FILES=  aclocal.m4 config.h.in stamp-h stamp-h.in

post-configure:
    cd ${WRKSRC}; ${TOUCH} ${AC_FAKE_FILES}
    ${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${TOUCH}

post-install:
    ${MKDIR} ${EXAMPLESDIR}
.for i in ${EXAMPLE_FILES}
    ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${EXAMPLESDIR}
.endfor
.for i in ${MAN3}
    ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${PREFIX}/man/man3
.endfor
.for i in ${MAN5}
    ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${PREFIX}/man/man5
.endfor
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR} ${DOCSDIR}/figs ${DOCSDIR}/html \
        ${DOCSDIR}/html/pix
.for i in ${DOC_FILES}
    ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
    ${INSTALL_MAN} ${WRKSRC}/doc/figs/*.ps ${DOCSDIR}/figs
    ${INSTALL_MAN} ${WRKSRC}/doc/html/*.html ${DOCSDIR}/html
    ${INSTALL_MAN} ${WRKSRC}/doc/html/pix/*.gif ${DOCSDIR}/html/pix
.for i in ${INFO}
    ${MV} ${PREFIX}/info/${i} ${PREFIX}/info/${i}.info
.endfor
.endif

.include <bsd.port.mk>