1 # $NetBSD: Makefile,v 1.110 2012/11/03 01:58:35 ryoon Exp $
5 CATEGORIES
= devel games
6 MASTER_SITES
= http
://www.libsdl.org
/release
/
8 MAINTAINER
= wiz@NetBSD.org
9 HOMEPAGE
= http
://www.libsdl.org
/
10 COMMENT
= Simple DirectMedia Layer
, a cross-platform multimedia library
11 LICENSE
= gnu-lgpl-v2.1
17 PTHREAD_OPTS
+= require
18 PKG_INSTALLATION_TYPES
= overwrite pkgviews
20 CPPFLAGS
+= -DPREFIX
="\"${PREFIX}\""
21 CPPFLAGS
+= -DX11BASE
="\"${X11BASE}\""
25 .
include "../../mk/bsd.prefs.mk"
27 .if
(${MACHINE_ARCH} == "i386" ||
${MACHINE_ARCH} == "x86_64") && ${OPSYS} != "SunOS"
28 BUILD_DEPENDS
+= yasm
>=0.6.0:..
/..
/devel
/yasm
30 NASMFLAGS_a.out
= -f aoutb
32 CONFIGURE_ARGS
+= --disable-nasm
35 CONFIGURE_ENV
+= NASMFLAGS
="${NASMFLAGS_${OBJECT_FMT}}"
36 MAKE_ENV
+= NASMFLAGS
="${NASMFLAGS_${OBJECT_FMT}}"
38 # See <http://developer.apple.com/qa/qa2007/qa1567.html>.
39 .if
${OPSYS} == "Darwin"
40 . if
!empty
(OS_VERSION
:M9.
*)
41 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
45 .
include "../../mk/oss.buildlink3.mk"
47 AM_CFLAGS
= -D_PATH_DEV_DSP
="\"${DEVOSSAUDIO}\""
48 MAKE_ENV
+= AM_CFLAGS
=${AM_CFLAGS
:M
*:Q
}
50 # Irix comes with GL, which works fine for SDL
51 .if
${OPSYS} != "IRIX" && ${OPSYS} != "Darwin"
52 CONFIGURE_ARGS
+= --disable-x11-shared
53 .
include "../../graphics/MesaLib/buildlink3.mk"
54 .
include "../../graphics/glu/buildlink3.mk"
55 .
include "../../x11/libXext/buildlink3.mk"
56 .
include "../../x11/libXrandr/buildlink3.mk"
57 .
include "../../x11/libXt/buildlink3.mk"
58 .
include "../../x11/xproto/buildlink3.mk"
60 CONFIGURE_ARGS
+= --without-x
62 .
include "../../mk/pthread.buildlink3.mk"
64 .if defined
(PTHREAD_TYPE
) && ${PTHREAD_TYPE} == "pth"
65 # Let SDL know that we do not have native pthreads and are using GNU pth.
66 CONFIGURE_ARGS
+= --disable-pthreads
67 CONFIGURE_ARGS
+= --enable-pth
70 .
include "../../converters/libiconv/buildlink3.mk"
71 .
include "../../mk/bsd.pkg.mk"