blob: c86a9cb3dfcd4500028033111e26b780b9f35bc0 (
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
|
# ex:ts=8
# Ports collection makefile for: truevision
# Date created: Mar 12, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= truevision
PORTVERSION= 0.5.5.2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
MAINTAINER= ports@FreeBSD.org
COMMENT= The GNOME 3D modeler
LIB_DEPENDS= gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_GNOME= gnomehack gnomeprefix gnometarget intlhack libgnomeui
USE_GL= yes
USE_PYTHON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= truevision.1
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include \
`pkg-config --cflags gtkglext-1.0`
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib \
`pkg-config --libs gtkglext-1.0`
post-patch:
@${REINPLACE_CMD} -e 's|CXXFLAGS=""||g ; \
s|-I/usr/include/gtkglext-1.0/||g ; \
s|-I/usr/local/include/gtkglext-1.0/||g ; \
s|-I/usr/lib/gtkglext-1.0/include/||g ; \
s|-I/usr/local/lib/gtkglext-1.0/include/||g ; \
s|-I/usr/local/include ||g ; \
s|=share$$|=share/gnome|g ; \
s|=share/pixmap|=share/gnome/pixmap|g' ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|-I/usr/include||g ; \
s|-I/usr/local/include||g ; \
s|-I/usr/X11R6/include||g ; \
s|-L/usr/lib||g ; \
s|-L/usr/local/lib||g ; \
s|-L/usr/X11R6/lib||g ; \
s|-O2||g ; \
s|share/application|share/gnome/application|g ; \
s|share/mime-info|share/gnome/mime-info|g ; \
s|^truevisiondoc|#truevisiondoc|g'
.include <bsd.port.mk>
|