blob: 9bf1d58c4e163d499ddf96ee74364b9f3539e4fc (
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
|
# $NetBSD: Makefile,v 1.49 2003/07/17 21:29:18 grant Exp $
#
DISTNAME= SDL-1.2.5
PKGREVISION= 4
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_BUILDLINK2= YES
USE_X11= YES
GNU_CONFIGURE= YES
USE_GMAKE= YES
PTHREAD_OPTS+= require
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
NASMFLAGS_ELF= -f elf
NASMFLAGS_a.out= -f aoutb
.endif
.if defined(SDL_USE_NAS)
. include "../../audio/nas/buildlink2.mk"
.else
CONFIGURE_ARGS+= --disable-nas
.endif
CONFIGURE_ARGS+= --disable-arts
CONFIGURE_ARGS+= --enable-video-aalib
CONFIGURE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}"
MAKE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}"
# Pass in LDFLAGS via SYSTEM_LIBS as it's used as the linker options for
# finding various libraries. This ensure that any unusual -Wl,-R options
# are noted correctly in the generated sdl-config.
#
CONFIGURE_ENV+= SYSTEM_LIBS="${LDFLAGS}"
.include "../../mk/ossaudio.buildlink2.mk"
.if defined(HAVE_OSS) && (${HAVE_OSS} == "YES")
AM_CFLAGS= -D_PATH_DEV_DSP=\\\"${DEVOSSAUDIO}\\\"
MAKE_ENV+= AM_CFLAGS="${AM_CFLAGS}"
.endif
.include "../../audio/esound/buildlink2.mk"
.include "../../graphics/MesaLib/buildlink2.mk"
.include "../../graphics/glut/buildlink2.mk"
.include "../../graphics/aalib-x11/buildlink2.mk"
.include "../../mk/pthread.buildlink2.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 "../../mk/bsd.pkg.mk"
|