1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/devel/bullet/Makefile
Piotr Kubaj 728e26e5c6 devel/bullet: fix build on powerpc
: && /usr/bin/c++ -fPIC -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++11 -fopenmp -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -fstack-protector-strong -shared -Wl,-soname,libHACD.so.3.20 -o Extras/HACD/libHACD.so.3.20 Extras/HACD/CMakeFiles/HACD.dir/hacdGraph.o Extras/HACD/CMakeFiles/HACD.dir/hacdHACD.o Extras/HACD/CMakeFiles/HACD.dir/hacdICHull.o Extras/HACD/CMakeFiles/HACD.dir/hacdManifoldMesh.o  -pthread && :
ld: error: unable to find library -lomp
2021-12-20 01:56:45 +00:00

70 lines
1.6 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
PORTNAME= bullet
PORTVERSION= 3.21
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= fluffy@FreeBSD.org
COMMENT= 3D collision detection and rigid body dynamics library
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
FLAVORS= single double
FLAVOR?= ${FLAVORS:[1]}
double_PKGNAMESUFFIX= -double
single_CONFLICTS_INSTALL=${PORTNAME}-double
double_CONFLICTS_INSTALL=${PORTNAME}
USES= cmake compiler:c++11-lang gl xorg
USE_GL= gl glu glut
USE_LDCONFIG= yes
USE_XORG= x11
USE_GITHUB= yes
GH_ACCOUNT= bulletphysics
GH_PROJECT= bullet3
CMAKE_ON= BUILD_BULLET3 BUILD_SHARED_LIBS INSTALL_LIBS \
BUILD_EXTRAS INSTALL_EXTRA_LIBS \
BULLET2_MULTITHREADING
CMAKE_OFF= BUILD_CPU_DEMOS BUILD_BULLET2_DEMOS BUILD_BULLET3_DEMOS \
BUILD_OPENGL3_DEMOS BUILD_PYBULLET BUILD_UNIT_TESTS \
BULLET2_USE_TBB_MULTITHREADING ENABLE_VHACD \
BUILD_BULLET_ROBOTICS_EXTRA BUILD_BULLET_ROBOTICS_GUI_EXTRA \
USE_GRAPHICAL_BENCHMARK
# List available knobs for Extras
# BUILD_HACD_EXTRA BUILD_OBJ2SDF_EXTRA BUILD_BULLET_ROBOTICS_EXTRA \
# BUILD_SERIALIZE_EXTRA BUILD_INVERSE_DYNAMIC_EXTRA \
# BUILD_CONVEX_DECOMPOSITION_EXTRA BUILD_GIMPACTUTILS_EXTRA
.if ${FLAVOR} == double
CMAKE_ON+= USE_DOUBLE_PRECISION
.endif
PORTDOCS= *
OPTIONS_DEFINE= DOCS
PLIST_SUB= LIB_VERSION=3.20
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc
CMAKE_OFF+= BULLET2_USE_OPEN_MP_MULTITHREADING
.else
CMAKE_ON+= BULLET2_USE_OPEN_MP_MULTITHREADING
.endif
post-patch:
@${RM} -r ${WRKSRC}/examples/pybullet
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.pdf ${STAGEDIR}/${DOCSDIR}
.include <bsd.port.mk>