2001-05-31 10:10:36 +00:00
|
|
|
# New ports collection makefile for: Open Scene Graph
|
|
|
|
# Date created: 26 Apr 2001
|
|
|
|
# Whom: Randall Hopper <aa8vb@nc.rr.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= osg
|
2003-11-13 11:36:41 +00:00
|
|
|
PORTVERSION= 0.9.6.2
|
2001-05-31 10:10:36 +00:00
|
|
|
CATEGORIES= graphics
|
2003-11-13 11:36:41 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= openscenegraph
|
2003-07-29 15:53:05 +00:00
|
|
|
DISTNAME= OpenSceneGraph-${PORTVERSION:R}-${PORTVERSION:E}
|
2001-05-31 10:10:36 +00:00
|
|
|
|
2003-07-29 15:53:05 +00:00
|
|
|
MAINTAINER= yinjieh@csie.nctu.edu.tw
|
2003-02-20 18:08:19 +00:00
|
|
|
COMMENT= C++ OpenGL scene graph library for real-time rendering
|
2001-05-31 10:10:36 +00:00
|
|
|
|
2003-11-13 11:36:41 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libOpenThreads.so:${PORTSDIR}/devel/openthreads \
|
|
|
|
${X11BASE}/lib/libProducer.so:${PORTSDIR}/graphics/openproducer
|
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
|
2002-05-08 02:19:16 +00:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2002-05-11 08:33:46 +00:00
|
|
|
ungif.5:${PORTSDIR}/graphics/libungif \
|
2002-05-11 09:05:01 +00:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
2003-07-29 15:53:05 +00:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
2003-11-13 11:36:41 +00:00
|
|
|
xml2.5:${PORTSDIR}/textproc/libxml2
|
2001-05-31 10:10:36 +00:00
|
|
|
|
2003-01-24 05:10:18 +00:00
|
|
|
USE_REINPLACE= yes
|
2001-05-31 10:10:36 +00:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_MESA= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
USE_GMAKE= yes
|
2003-07-29 15:53:05 +00:00
|
|
|
MAKE_ENV= OSGHOME=${WRKSRC} \
|
|
|
|
PTHREAD_LIBS=${PTHREAD_LIBS}
|
|
|
|
MAKEFILE= GNUmakefile
|
2003-11-13 11:36:41 +00:00
|
|
|
WRKSRC= ${WRKDIR}/OpenSceneGraph-${PORTVERSION:R}-${PORTVERSION:E}
|
2002-05-25 17:38:07 +00:00
|
|
|
|
|
|
|
# opt = optimized ($OPTF added); debug = debug ($DBGF added); opt is default
|
|
|
|
ALL_TARGET= opt
|
|
|
|
|
2003-07-29 15:53:05 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 500113
|
|
|
|
BROKEN= "Does not compile (bad C++ code)"
|
|
|
|
.endif
|
|
|
|
|
2003-01-24 05:10:18 +00:00
|
|
|
post-patch:
|
|
|
|
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e "s|malloc\.h|stdlib.h|"
|
2003-07-29 15:53:05 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,%%CXXFLAGS%%,${CXXFLAGS},g' \
|
|
|
|
${WRKSRC}/Make/makedefs
|
2003-01-24 05:10:18 +00:00
|
|
|
|
2002-05-25 17:38:07 +00:00
|
|
|
post-install:
|
2003-01-24 05:10:18 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${CP} -r ${WRKSRC}/doc/ ${DOCSDIR}
|
|
|
|
.endif
|
2001-05-31 10:10:36 +00:00
|
|
|
|
2003-07-29 15:53:05 +00:00
|
|
|
.include <bsd.port.post.mk>
|