summaryrefslogtreecommitdiffstats
path: root/graphics/k3d/Makefile
blob: db90cd0d00d6190eaf448b749daa08d18b61f23e (plain)
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
# ex:ts=8
# Ports collection makefile for:	k3d
# Date created:			Jun 9, 2004
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	k3d
PORTVERSION=	0.4.4.0
PORTREVISION=	3
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
EXTRACT_SUFX=	.tgz

MAINTAINER=	dyeske@yahoo.com
COMMENT=	A free 3D modeling, animation, and rendering system

BUILD_DEPENDS=	${X11BASE}/lib/libplibul.a:${PORTSDIR}/x11-toolkits/plib
#		${X11BASE}/lib/libode.a:${PORTSDIR}/devel/ode
LIB_DEPENDS=	sigc.1:${PORTSDIR}/devel/libsigc++ \
		freetype.9:${PORTSDIR}/print/freetype2 \
		tiff.4:${PORTSDIR}/graphics/tiff \
		Magick++.8:${PORTSDIR}/graphics/ImageMagick \
		netpbm.1:${PORTSDIR}/graphics/netpbm \
		Half.2:${PORTSDIR}/graphics/OpenEXR \
		gts.3:${PORTSDIR}/graphics/gts

CONFLICTS=	atlas-3* superlu-3*

USE_LIBTOOL_VER=15
USE_GL=		yes
USE_GNOME=	gnometarget gtk12 libxslt
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	\
	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
	LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS=	--without-docbook --without-graphviz \
		--with-openexr --with-plib --with-gts
#		--with-ode
USE_GMAKE=	yes
INSTALLS_SHLIB=	yes

MAN1=	k3d.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=		"Does not compile on FreeBSD 4.x"
.endif

.if ${ARCH} == "amd64"
BROKEN=		"Does not compile on amd64"
.endif

post-install:
.for dir in ${PREFIX}/include/k3d ${PREFIX}/share/k3d ${PREFIX}/lib/k3d
	@${FIND} ${dir} ! -type d | \
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
	@${FIND} ${dir} -type d | ${SORT} -r | \
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.endfor

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud