freebsd-ports/devel/bullet/Makefile

48 lines
1,017 B
Makefile
Raw Normal View History

# New ports collection makefile for: bullet
# Date created: 2008-01-09
# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= bullet
PORTVERSION= 2.77
CATEGORIES= devel
MASTER_SITES= GOOGLE_CODE
2009-01-16 01:31:03 +01:00
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
CMAKE_USE_PTHREAD= yes
CPPFLAGS+= -I${LOCALBASE}/include
2009-01-16 01:31:03 +01:00
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS= *
.include <bsd.port.pre.mk>
.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}
2009-01-16 01:31:03 +01:00
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}/CHANGELOG
.endif
.include <bsd.port.post.mk>