From 0eaf7f522b3c13d190a57307dff078d97311e5f7 Mon Sep 17 00:00:00 2001 From: youri Date: Sun, 17 Apr 2016 16:39:22 +0000 Subject: [PATCH] plib: Make it build on x86_64 Darwin. --- games/plib/Makefile | 15 ++++++++++++++- games/plib/PLIST | 16 ++++++++-------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/games/plib/Makefile b/games/plib/Makefile index 9e3129e10eff..059c6c402fcf 100644 --- a/games/plib/Makefile +++ b/games/plib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.28 2015/04/25 14:23:02 tnn Exp $ +# $NetBSD: Makefile,v 1.29 2016/04/17 16:39:22 youri Exp $ DISTNAME= plib-1.8.5 PKGREVISION= 4 @@ -8,6 +8,7 @@ MASTER_SITES= http://plib.sourceforge.net/dist/ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://plib.sourceforge.net/ COMMENT= Libraries for writing portable games/realtime interactive apps +LICENSE= gnu-lgpl-v2 GNU_CONFIGURE= YES USE_LANGUAGES= c c++ @@ -17,6 +18,18 @@ CPPFLAGS+= -Dunix=1 CXXFLAGS+= -fPIC .endif +.include "../../mk/bsd.prefs.mk" + +PLIST_VARS+= sl pw + +.if ${OPSYS} == "Darwin" && ${ABI} == "64" +CONFIGURE_ARGS+=--disable-sl \ + --disable-pw +.else +PLIST.sl= yes +PLIST.pw= yes +.endif + .include "../../graphics/Mesa/buildlink3.mk" .include "../../mk/oss.buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/games/plib/PLIST b/games/plib/PLIST index 102689134614..7868ccfd46eb 100644 --- a/games/plib/PLIST +++ b/games/plib/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.4 2009/06/14 17:56:53 joerg Exp $ +@comment $NetBSD: PLIST,v 1.5 2016/04/17 16:39:22 youri Exp $ include/plib/fnt.h include/plib/js.h include/plib/net.h @@ -18,11 +18,11 @@ include/plib/puGLUT.h include/plib/puNative.h include/plib/puPW.h include/plib/puSDL.h -include/plib/pw.h +${PLIST.pw}include/plib/pw.h include/plib/sg.h -include/plib/sl.h -include/plib/slPortability.h -include/plib/sm.h +${PLIST.sl}include/plib/sl.h +${PLIST.sl}include/plib/slPortability.h +${PLIST.sl}include/plib/sm.h include/plib/ssg.h include/plib/ssgAux.h include/plib/ssgKeyFlier.h @@ -45,10 +45,10 @@ lib/libplibnet.a lib/libplibpsl.a lib/libplibpu.a lib/libplibpuaux.a -lib/libplibpw.a +${PLIST.pw}lib/libplibpw.a lib/libplibsg.a -lib/libplibsl.a -lib/libplibsm.a +${PLIST.sl}lib/libplibsl.a +${PLIST.sl}lib/libplibsm.a lib/libplibssg.a lib/libplibssgaux.a lib/libplibul.a