summaryrefslogtreecommitdiff
path: root/graphics/osg-devel/Makefile
blob: f1ab41ed7688ec9366b0399fc785dcdf002e9cfe (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
# New ports collection makefile for:	Open Scene Graph
# Date created:				26 Apr 2001
# Whom:					Randall Hopper <aa8vb@nc.rr.com>
#
# $FreeBSD$
#

PORTNAME=	osg
PORTVERSION=	0.9.4.2
CATEGORIES=	graphics
MASTER_SITES=	http://www.openscenegraph.org/download/snapshots/
DISTNAME=	OpenSceneGraph-${PORTVERSION:R}-${PORTVERSION:E}

MAINTAINER=	yinjieh@csie.nctu.edu.tw
COMMENT=	C++ OpenGL scene graph library for real-time rendering

LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
		jpeg.9:${PORTSDIR}/graphics/jpeg \
		ungif.5:${PORTSDIR}/graphics/libungif \
		tiff.4:${PORTSDIR}/graphics/tiff \
		freetype.9:${PORTSDIR}/print/freetype2 \
		Producer.0:${PORTSDIR}/graphics/openproducer

USE_REINPLACE=	yes
USE_X_PREFIX=	yes
USE_MESA=	yes
INSTALLS_SHLIB=	yes
USE_GMAKE=	yes
MAKE_ENV=	OSGHOME=${WRKSRC} \
		PTHREAD_LIBS=${PTHREAD_LIBS}
MAKEFILE=	GNUmakefile
WRKSRC=		${WRKDIR}/OpenSceneGraph-${PORTVERSION:R}

# opt = optimized ($OPTF added); debug = debug ($DBGF added); opt is default
ALL_TARGET=	opt

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500113
 BROKEN=         "Does not compile (bad C++ code)"
.endif

post-patch:
	@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
		-e "s|malloc\.h|stdlib.h|"
	 @${REINPLACE_CMD} -e 's,%%CXXFLAGS%%,${CXXFLAGS},g' \
		${WRKSRC}/Make/makedefs

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${CP} -r ${WRKSRC}/doc/ ${DOCSDIR}
.endif

.include <bsd.port.post.mk>