summaryrefslogblamecommitdiff
path: root/graphics/osg/Makefile
blob: 6aa7347a9fadc11dd23b8611b23ab2873b0c044a (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                        
                     

                                                                 
                                             
 
                                 
                                                                      
 

                                                  
                                                       
                                                  
                                                      
 
                   



                   
                                 



                                                                            



                                                                        
             





                                                      

                      
# 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.3
CATEGORIES=	graphics
MASTER_SITES=	http://www.openscenegraph.org/download/snapshots/
DISTNAME=	OpenSceneGraph-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
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

USE_REINPLACE=	yes
USE_X_PREFIX=	yes
USE_MESA=	yes
INSTALLS_SHLIB=	yes
USE_GMAKE=	yes
MAKE_ENV=	OSGHOME=${WRKSRC}

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

post-patch:
	@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
		-e "s|malloc\.h|stdlib.h|"

post-install:
	${LN} -sf ${DATADIR}/bin/sgv     ${PREFIX}/bin
	${LN} -sf ${DATADIR}/bin/osgconv ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${CP} -r ${WRKSRC}/doc/ ${DOCSDIR}
.endif

.include <bsd.port.mk>