2008-09-25 23:14:42 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.66 2008/09/26 03:14:42 brad Exp $
|
2001-04-19 14:55:39 -04:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT= cross-platform multimedia library
|
2001-04-19 14:55:39 -04:00
|
|
|
|
2008-01-03 12:39:40 -05:00
|
|
|
VERSION= 1.2.13
|
2001-06-23 15:05:33 -04:00
|
|
|
DISTNAME= SDL-${VERSION}
|
2008-09-25 23:14:42 -04:00
|
|
|
PKGNAME= ${DISTNAME:L}p5
|
2001-04-19 14:55:39 -04:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
2003-09-29 01:41:37 -04:00
|
|
|
HOMEPAGE= http://www.libsdl.org/
|
2001-04-19 14:55:39 -04:00
|
|
|
|
2001-05-09 19:26:16 -04:00
|
|
|
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
|
2001-04-19 14:55:39 -04:00
|
|
|
|
2008-09-25 23:14:42 -04:00
|
|
|
# LGPLv2.1+
|
2001-04-19 14:55:39 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-02-11 13:52:04 -05:00
|
|
|
WANTLIB= m usbhid
|
2001-04-19 14:55:39 -04:00
|
|
|
|
2007-01-21 09:47:58 -05:00
|
|
|
MASTER_SITES= ftp://ftp.fr.freebsd.org/pub/FreeBSD/distfiles/ \
|
|
|
|
${HOMEPAGE}release/
|
2004-04-23 08:09:18 -04:00
|
|
|
MASTER_SITES0= http://dev.beastie.hu/ \
|
|
|
|
http://www.beastie.hu/
|
2001-05-24 01:54:55 -04:00
|
|
|
|
2008-09-25 23:14:42 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
BUILD_DEPENDS+= :yasm-*:devel/yasm
|
|
|
|
.endif
|
|
|
|
|
2007-12-09 08:40:16 -05:00
|
|
|
FLAVORS= esd arts aa caca no_x11 altivec
|
|
|
|
FLAVOR?=
|
2001-04-19 14:55:39 -04:00
|
|
|
|
2006-02-03 01:20:11 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2007-09-21 21:12:38 -04:00
|
|
|
MODULES= converters/libiconv
|
2006-02-03 01:20:11 -05:00
|
|
|
|
2001-04-19 14:55:39 -04:00
|
|
|
SEPARATE_BUILD= concurrent
|
2007-09-21 21:12:38 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2001-09-28 02:02:12 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/test
|
2007-09-21 21:12:38 -04:00
|
|
|
SHARED_LIBS= SDL 8.0
|
2002-11-30 06:17:26 -05:00
|
|
|
CONFIGURE_ENV+= X11BASE="${X11BASE}" \
|
|
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
2008-09-25 23:14:42 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2004-11-18 12:48:50 -05:00
|
|
|
|
|
|
|
# in case devel/usb is installed, don't pick it up.
|
|
|
|
CONFIGURE_ENV+= ac_cv_lib_usb_hid_init=no \
|
|
|
|
ac_cv_header_usb_h=no
|
|
|
|
|
2001-04-19 14:55:39 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
2001-07-19 18:03:26 -04:00
|
|
|
--disable-oss \
|
2003-12-07 14:45:42 -05:00
|
|
|
--disable-ltdl \
|
2008-09-25 23:14:42 -04:00
|
|
|
--disable-pulseaudio \
|
|
|
|
--enable-nasm \
|
2007-12-09 08:40:16 -05:00
|
|
|
--enable-pthread-sem \
|
|
|
|
--enable-sunaudio
|
2002-02-25 17:33:59 -05:00
|
|
|
|
2001-05-24 01:54:55 -04:00
|
|
|
.if ${FLAVOR:L:Mesd}
|
2008-03-19 09:33:29 -04:00
|
|
|
# used via dlopen()
|
2006-08-01 19:39:08 -04:00
|
|
|
LIB_DEPENDS+= esd.>=2::audio/esound
|
2001-05-24 01:54:55 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-esd
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-esd
|
|
|
|
.endif
|
|
|
|
|
2001-04-19 14:55:39 -04:00
|
|
|
.if ${FLAVOR:L:Marts}
|
2002-09-07 00:56:28 -04:00
|
|
|
LIB_DEPENDS+= artsc::x11/kde/arts3
|
2008-03-19 09:33:29 -04:00
|
|
|
WANTLIB+= glib-2.0 gmodule-2.0 gthread-2.0 intl pcre stdc++
|
|
|
|
CONFIGURE_ARGS+= --enable-arts --disable-arts-shared
|
2001-04-21 11:33:01 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-arts
|
2001-04-19 14:55:39 -04:00
|
|
|
.endif
|
|
|
|
|
2002-11-30 06:17:26 -05:00
|
|
|
.if ${FLAVOR:L:Maa}
|
|
|
|
LIB_DEPENDS+= aa::graphics/aalib
|
|
|
|
CONFIGURE_ARGS+= --enable-video-aalib
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-video-aalib
|
|
|
|
.endif
|
|
|
|
|
2004-04-23 08:09:18 -04:00
|
|
|
.if ${FLAVOR:L:Mcaca}
|
|
|
|
PATCH_DIST_STRIP= -p1
|
2005-01-29 17:56:34 -05:00
|
|
|
PATCHFILES= patch-libsd1.2.7-libcaca0.9.diff:0
|
2004-04-23 08:09:18 -04:00
|
|
|
LIB_DEPENDS+= caca::graphics/libcaca
|
|
|
|
CONFIGURE_ARGS+= --enable-video-caca
|
2005-01-05 16:52:50 -05:00
|
|
|
.else
|
2005-01-29 17:56:34 -05:00
|
|
|
SUPDISTFILES+= patch-libsd1.2.7-libcaca0.9.diff:0
|
2004-04-23 08:09:18 -04:00
|
|
|
.endif
|
|
|
|
|
2001-04-19 14:55:39 -04:00
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
CONFIGURE_ARGS+= --without-x \
|
|
|
|
--disable-video-x11
|
|
|
|
.else
|
|
|
|
USE_X11= Yes
|
2007-09-21 21:12:38 -04:00
|
|
|
WANTLIB+= X11.>=10 Xau Xdmcp Xext Xrandr Xrender
|
2001-04-19 14:55:39 -04:00
|
|
|
.endif
|
|
|
|
|
2007-11-18 04:39:02 -05:00
|
|
|
.if ${FLAVOR:L:Maltivec}
|
2007-11-14 02:16:39 -05:00
|
|
|
ONLY_FOR_ARCHS= powerpc
|
|
|
|
CONFIGURE_ARGS+=--enable-altivec
|
|
|
|
# XXX Segmentation fault
|
|
|
|
# Blit_RGB888_RGB565Altivec at SDL_blit_N.c:203
|
|
|
|
BROKEN= segfault when altivec is enabled
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-altivec
|
|
|
|
.endif
|
|
|
|
|
2002-02-19 01:42:03 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2001-04-19 14:55:39 -04:00
|
|
|
.include <bsd.port.mk>
|