# New ports collection makefile for: bullet # Date created: 2008-01-09 # Whom: Jose Alonso Cardenas Marquez # # $FreeBSD$ # PORTNAME= bullet PORTVERSION= 2.77 CATEGORIES= devel MASTER_SITES= GOOGLE_CODE EXTRACT_SUFX= .tgz MAINTAINER= acm@FreeBSD.org COMMENT= 3D collision detection and rigid body dynamics library USE_GL= gl glu glut USE_XORG= x11 MAKE_JOBS_SAFE= yes USE_CMAKE= yes CPPFLAGS+= -I${LOCALBASE}/include WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} PORTDOCS= * .include .if (${ARCH} == "amd64") || (${ARCH} == "ia64") CFLAGS+= -DUSE_ADDR64 .endif post-patch: @${REINPLACE_CMD} -e "s|{OPENGL_glu_LIBRARY}|{OPENGL_glu_LIBRARY} -lcompat|g" ${WRKSRC}/Demos/AllBulletDemos/CMakeLists.txt post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/*.pdf ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}/CHANGELOG .endif .include