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

PORTNAME=   truevision
PORTVERSION=    0.4.0
PORTREVISION=   2
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    The GNOME 3D modeler

LIB_DEPENDS=    gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext

USE_BZIP2=  yes
USE_X_PREFIX=   yes
USE_GL=     yes
USE_GNOME=  gnomehack gnomeprefix libgnomeui
USE_GMAKE=  yes
USE_AUTOMAKE_VER=   14
USE_AUTOCONF_VER=   213
AUTOMAKE_ARGS=  --add-missing --include-deps
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAKE_ARGS=  ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
        AUTOHEADER="${TRUE}"

CPPFLAGS=   -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
LDFLAGS=    -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}

post-extract:
    @${FIND} ${WRKSRC} -type l -delete
    @${FIND} ${WRKSRC} -name "*.o" -delete
    @${FIND} ${WRKSRC} -name "config.cache" -delete

post-install:
    @${MKDIR} ${PREFIX}/share/gnome/Truevision
    ${TAR} -C ${WRKSRC} --exclude "CVS" -cf - materials | \
        ${TAR} -C ${PREFIX}/share/gnome/Truevision --unlink -xf -
    @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/gnome/Truevision

.include <bsd.port.mk>