pkgsrc/devel/SDL/Makefile

71 lines
2.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.128 2018/01/28 20:10:45 wiz Exp $
DISTNAME= SDL-1.2.15
PKGREVISION= 23
2006-06-12 18:20:44 +02:00
CATEGORIES= devel games
MASTER_SITES= http://www.libsdl.org/release/
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.libsdl.org/
COMMENT= Simple DirectMedia Layer, a cross-platform multimedia library
2010-01-24 18:11:17 +01:00
LICENSE= gnu-lgpl-v2.1
2006-06-12 18:20:44 +02:00
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
PTHREAD_OPTS+= require
2004-01-05 23:44:04 +01:00
CPPFLAGS+= -DPREFIX="\"${PREFIX}\""
CPPFLAGS+= -DX11BASE="\"${X11BASE}\""
2006-06-12 18:20:44 +02:00
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
2010-12-29 19:34:06 +01:00
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && ${OPSYS} != "SunOS"
BUILD_DEPENDS+= yasm>=0.6.0:../../devel/yasm
2006-06-12 18:20:44 +02:00
NASMFLAGS_ELF= -f elf
NASMFLAGS_a.out= -f aoutb
.else
CONFIGURE_ARGS+= --disable-nasm
2006-06-12 18:20:44 +02:00
.endif
CONFIGURE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}"
MAKE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}"
2007-12-17 21:40:00 +01:00
# See <http://developer.apple.com/qa/qa2007/qa1567.html>.
.if ${OPSYS} == "Darwin"
2007-12-17 21:40:00 +01:00
. if !empty(OS_VERSION:M9.*)
LDFLAGS+= -Wl,-dylib_file -Wl,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
. endif
2006-06-12 18:20:44 +02:00
.endif
.include "../../mk/oss.buildlink3.mk"
AM_CFLAGS= -D_PATH_DEV_DSP="\"${DEVOSSAUDIO}\""
MAKE_ENV+= AM_CFLAGS=${AM_CFLAGS:M*:Q}
2006-06-12 18:20:44 +02:00
# Irix comes with GL, which works fine for SDL
.if ${OPSYS} != "IRIX" && ${OPSYS} != "Darwin"
CONFIGURE_ARGS+= --disable-x11-shared
2006-06-12 18:20:44 +02:00
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/xproto/buildlink3.mk"
2012-08-30 01:07:08 +02:00
.else
CONFIGURE_ARGS+= --without-x
2006-06-12 18:20:44 +02:00
.endif
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "pth"
# Let SDL know that we do not have native pthreads and are using GNU pth.
CONFIGURE_ARGS+= --disable-pthreads
CONFIGURE_ARGS+= --enable-pth
2006-06-12 18:20:44 +02:00
.endif
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"