aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/white_dune/Makefile
blob: f1c0903ec7797945bb02e94ae765015eb9d0ae5a (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
# ex:ts=8
# Ports collection makefile for:    white_dune
# Date created:         Apr 12, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   white_dune
PORTVERSION=    0.26.5
PORTEPOCH=  1
CATEGORIES= graphics
MASTER_SITES=   http://www.csv.ica.uni-stuttgart.de/vrml/dune/
DISTNAME=   ${PORTNAME}-${PORTVERSION:R}pl${PORTVERSION:E}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Graphical VRML97 Editor and animation tool

LIB_DEPENDS=    jpeg.9:${PORTSDIR}/graphics/jpeg \
        glut:${PORTSDIR}/graphics/libglut \
        png.5:${PORTSDIR}/graphics/png

USE_MOTIF=  yes
USE_GL=     yes
USE_SDL=    sdl
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
        YACC="/usr/bin/byacc"
CONFIGURE_ARGS= --with-optimization \
        --without-devil \
        --with-helpurl="${DOCSDIR}/index.html" \
        --with-nurbscurveprotourl="${DATADIR}/NurbsCurvePROTO.wrl" \
        --with-nurbsgroupprotourl="${DATADIR}/NurbsGroupPROTO.wrl" \
        --with-nurbssurfaceprotourl="${DATADIR}/NurbsSurfacePROTO.wrl"
ALL_TARGET= # empty

MAN1=       dune.1

CPPFLAGS=   -I${LOCALBASE}/include `${SDL_CONFIG} --cflags` \
        -DUSBHID_UCR_DATA
LDFLAGS=    -L${LOCALBASE}/lib `${SDL_CONFIG} --libs`

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500111
CPPFLAGS+=  -DUSBHID_NEW
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/dune ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/dune4kids ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/man/dune.1 ${MANPREFIX}/man/man1
    @${MKDIR} ${DATADIR}
.for file in NurbsCurvePROTO.wrl NurbsGroupPROTO.wrl NurbsSurfacePROTO.wrl
    ${INSTALL_DATA} ${WRKSRC}/docs/vrml200x_nurbssurface/${file} ${DATADIR}
.endfor
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/docs && ${FIND} . | \
        ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>