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