blob: 47f5ae4f7df38ce898ee9290e5883ca7efc12eef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# $NetBSD: Makefile,v 1.73 2006/08/04 22:12:28 markd Exp $
DISTNAME= SDL-1.2.11
PKGREVISION= 1
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
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
PTHREAD_OPTS+= require
PKG_INSTALLATION_TYPES= overwrite pkgviews
CPPFLAGS+= -DPREFIX="\"${PREFIX}\""
CPPFLAGS+= -DX11BASE="\"${X11BASE}\""
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "i386" && ${OPSYS} != "SunOS"
. include "../../devel/binutils/buildlink3.mk"
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
NASMFLAGS_ELF= -f elf
NASMFLAGS_a.out= -f aoutb
.else
CONFIGURE_ARGS+= --disable-nasm
.endif
.if ${OPSYS:MNetBSD}
CONFIGURE_ARGS+= --disable-video-wscons
.endif
CONFIGURE_ARGS+= --enable-dlopen
CONFIGURE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}"
MAKE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}"
# buildlink passthru the directories required for the Cocoa framework
# on Darwin if they exist.
.if ${OPSYS} == "Darwin"
COCOA_DIRS+= /System /Library /Developer
. for dir in ${COCOA_DIRS}
. if exists(${dir})
BUILDLINK_PASSTHRU_DIRS+= ${dir}
. endif
. endfor
.endif
.include "../../mk/oss.buildlink3.mk"
AM_CFLAGS= -D_PATH_DEV_DSP="\"${DEVOSSAUDIO}\""
MAKE_ENV+= AM_CFLAGS=${AM_CFLAGS:Q}
# Irix comes with GL, which works fine for SDL
.if ${OPSYS} != "IRIX" && ${OPSYS} != "Darwin"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.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
.endif
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|