plib: Make it build on x86_64 Darwin.

This commit is contained in:
youri 2016-04-17 16:39:22 +00:00
parent 7f08eb9ee9
commit 0eaf7f522b
2 changed files with 22 additions and 9 deletions

View file

@ -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"

View file

@ -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