2009-01-24 05:56:11 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.72 2009/01/24 10:56:11 jakemsr 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}
|
2009-01-24 05:56:11 -05:00
|
|
|
PKGNAME= ${DISTNAME:L}p11
|
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
|
|
|
|
2008-11-02 09:53:51 -05:00
|
|
|
MAINTAINER= Jacob Meuser <jakemsr@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
|
2008-11-02 09:53:51 -05:00
|
|
|
WANTLIB= m sndio 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
|
|
|
|
|
2008-12-29 21:15:20 -05:00
|
|
|
FLAVORS= aa caca no_x11 altivec
|
2007-12-09 08:40:16 -05:00
|
|
|
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-11-02 09:53:51 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
2009-01-24 05:56:11 -05:00
|
|
|
WITH_SNDIO="Yes"
|
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} \
|
2008-12-29 21:15:20 -05:00
|
|
|
--disable-arts \
|
|
|
|
--disable-esd \
|
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
|
|
|
|
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
|
|
|
|
|
2008-11-02 09:53:51 -05:00
|
|
|
pre-configure:
|
|
|
|
mkdir -p ${WRKSRC}/src/audio/libsndio
|
|
|
|
cp ${FILESDIR}/SDL_libsndioaudio.{c,h} ${WRKSRC}/src/audio/libsndio
|
|
|
|
|
2001-04-19 14:55:39 -04:00
|
|
|
.include <bsd.port.mk>
|