Fri Mar 11 18:26:54 2022 UTC ()
graphics/Coin: build without framework support on Darwin.

By default, Coin is installed on Darwin as a framework, which is a completely
different file layout incompatible with pkgsrc.  Add a configure argument to
prevent this and select a standard layout compatible with pkgsrc.


(brook)
diff -r1.32 -r1.33 pkgsrc/graphics/Coin/Makefile

cvs diff -r1.32 -r1.33 pkgsrc/graphics/Coin/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/Coin/Makefile 2020/08/18 17:57:28 1.32
+++ pkgsrc/graphics/Coin/Makefile 2022/03/11 18:26:54 1.33
@@ -1,31 +1,37 @@ @@ -1,31 +1,37 @@
1# $NetBSD: Makefile,v 1.32 2020/08/18 17:57:28 leot Exp $ 1# $NetBSD: Makefile,v 1.33 2022/03/11 18:26:54 brook Exp $
2 2
3DISTNAME= Coin-3.1.3 3DISTNAME= Coin-3.1.3
4PKGREVISION= 5 4PKGREVISION= 5
5CATEGORIES= graphics 5CATEGORIES= graphics
6MASTER_SITES= https://bitbucket.org/Coin3D/coin/downloads/ 6MASTER_SITES= https://bitbucket.org/Coin3D/coin/downloads/
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://www.coin3d.org/ 9HOMEPAGE= http://www.coin3d.org/
10COMMENT= Free, portable, Open Inventor API implementation 10COMMENT= Free, portable, Open Inventor API implementation
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12# See https://bitbucket.org/Coin3D/coin/wiki/EndOfLifeLetter 12# See https://bitbucket.org/Coin3D/coin/wiki/EndOfLifeLetter
13 13
14USE_LANGUAGES= c c++03 14USE_LANGUAGES= c c++03
15USE_LIBTOOL= yes 15USE_LIBTOOL= yes
16GNU_CONFIGURE= yes 16GNU_CONFIGURE= yes
17CONFIGURE_ARGS+= --enable-3ds-import 17CONFIGURE_ARGS+= --enable-3ds-import
18CONFIGURE_ARGS+= --disable-debug 18CONFIGURE_ARGS+= --disable-debug
19 19
20.include "../../mk/pthread.buildlink3.mk" 20.include "../../mk/pthread.buildlink3.mk"
21 21
22.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "none" 22.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "none"
23CONFIGURE_ARGS+= --with-pthread=yes 23CONFIGURE_ARGS+= --with-pthread=yes
24CONFIGURE_ARGS+= --enable-threadsafe 24CONFIGURE_ARGS+= --enable-threadsafe
25.endif 25.endif
26 26
 27.include "../../mk/bsd.prefs.mk"
 28
 29.if !empty(OPSYS:MDarwin)
 30CONFIGURE_ARGS+= --without-framework
 31.endif
 32
27.include "../../graphics/simage/buildlink3.mk" 33.include "../../graphics/simage/buildlink3.mk"
28.include "../../graphics/freetype2/buildlink3.mk" 34.include "../../graphics/freetype2/buildlink3.mk"
29.include "../../graphics/glu/buildlink3.mk" 35.include "../../graphics/glu/buildlink3.mk"
30.include "../../x11/libSM/buildlink3.mk" 36.include "../../x11/libSM/buildlink3.mk"
31.include "../../mk/bsd.pkg.mk" 37.include "../../mk/bsd.pkg.mk"