Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / devel / SDL / Makefile
blob6ef9e63521d5b69e6a71f1b6cbd6cafd318e413e
1 # $NetBSD: Makefile,v 1.110 2012/11/03 01:58:35 ryoon Exp $
3 DISTNAME= SDL-1.2.15
4 PKGREVISION= 7
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
13 USE_LANGUAGES= c c++
14 USE_LIBTOOL= yes
15 USE_TOOLS+= gmake
16 GNU_CONFIGURE= yes
17 PTHREAD_OPTS+= require
18 PKG_INSTALLATION_TYPES= overwrite pkgviews
20 CPPFLAGS+= -DPREFIX="\"${PREFIX}\""
21 CPPFLAGS+= -DX11BASE="\"${X11BASE}\""
23 .include "options.mk"
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
29 NASMFLAGS_ELF= -f elf
30 NASMFLAGS_a.out= -f aoutb
31 .else
32 CONFIGURE_ARGS+= --disable-nasm
33 .endif
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
42 . endif
43 .endif
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"
59 .else
60 CONFIGURE_ARGS+= --without-x
61 .endif
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
68 .endif
70 .include "../../converters/libiconv/buildlink3.mk"
71 .include "../../mk/bsd.pkg.mk"