mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
ac04188cee
PR: ports/58171 Submitted by: maintainer
61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
# 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.6.2
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= openscenegraph
|
|
DISTNAME= OpenSceneGraph-${PORTVERSION:R}-${PORTVERSION:E}
|
|
|
|
MAINTAINER= yinjieh@csie.nctu.edu.tw
|
|
COMMENT= C++ OpenGL scene graph library for real-time rendering
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libOpenThreads.so:${PORTSDIR}/devel/openthreads \
|
|
${X11BASE}/lib/libProducer.so:${PORTSDIR}/graphics/openproducer
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
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 \
|
|
xml2.5:${PORTSDIR}/textproc/libxml2
|
|
|
|
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}-${PORTVERSION:E}
|
|
|
|
# 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>
|