summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-08-08 10:33:27 +0000
committernia <nia@pkgsrc.org>2019-08-08 10:33:27 +0000
commit8f6c5eae9bc7954f54c71a1c3bdee5a581c74b14 (patch)
treeb6cd09454b826200c8e1cccf383fc480183ad1b1 /devel
parent873c69d099659abcd3b1822dfb2f5d371de9a8ad (diff)
downloadpkgsrc-8f6c5eae9bc7954f54c71a1c3bdee5a581c74b14.tar.gz
bullet: Disable -lcompat on Linux and SunOS to fix the build.
XXX I'm not sure which other operating systems actually have libcompat
Diffstat (limited to 'devel')
-rw-r--r--devel/bullet/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/devel/bullet/Makefile b/devel/bullet/Makefile
index 8a16dac36b2..f652532b208 100644
--- a/devel/bullet/Makefile
+++ b/devel/bullet/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2018/07/04 13:40:13 jperkin Exp $
+# $NetBSD: Makefile,v 1.10 2019/08/08 10:33:27 nia Exp $
PKGNAME= ${DISTNAME:S/-r2704//}
DISTNAME= bullet-2.82-r2704
@@ -21,11 +21,14 @@ CMAKE_ARGS+= -DBUILD_SHARED_LIBS:BOOL=on
# doesn't install anything without this
CMAKE_ARGS+= -DINSTALL_LIBS:BOOL=on
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} != "Linux" && ${OPSYS} != "SunOS"
SUBST_CLASSES+= lcompat
SUBST_STAGE.lcompat= pre-configure
SUBST_FILES.lcompat= Demos/AllBulletDemos/CMakeLists.txt
SUBST_SED.lcompat= -e "s|{OPENGL_glu_LIBRARY}|{OPENGL_glu_LIBRARY} -lcompat|g"
SUBST_MESSAGE.lcompat= Adding -lcompat for demos
+.endif
.include "../../graphics/glut/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"