openbsd-ports/devel/sdl/Makefile

98 lines
2.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.74 2010/01/12 11:19:06 jakemsr Exp $
2001-04-19 14:55:39 -04:00
COMMENT= cross-platform multimedia library
2001-04-19 14:55:39 -04:00
VERSION= 1.2.13
DISTNAME= SDL-${VERSION}
PKGNAME= ${DISTNAME:L}p13
2001-04-19 14:55:39 -04:00
CATEGORIES= devel
HOMEPAGE= http://www.libsdl.org/
2001-04-19 14:55:39 -04:00
MAINTAINER= Jacob Meuser <jakemsr@openbsd.org>
2001-04-19 14:55:39 -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
WANTLIB= m sndio usbhid
2001-04-19 14:55:39 -04:00
MASTER_SITES= ftp://ftp.fr.freebsd.org/pub/FreeBSD/distfiles/ \
${HOMEPAGE}release/
MASTER_SITES0= http://dev.beastie.hu/ \
http://www.beastie.hu/
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS+= :yasm-*:devel/yasm
.endif
FLAVORS= aa caca no_x11 altivec
FLAVOR?=
2001-04-19 14:55:39 -04:00
USE_LIBTOOL= Yes
MODULES= converters/libiconv
2001-04-19 14:55:39 -04:00
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/test
SHARED_LIBS= SDL 8.0
CONFIGURE_ENV+= X11BASE="${X11BASE}" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
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} \
--disable-arts \
--disable-esd \
--disable-oss \
--disable-pulseaudio \
--enable-nasm \
--enable-pthread-sem
.if ${FLAVOR:L:Maa}
LIB_DEPENDS+= aa::graphics/aalib
CONFIGURE_ARGS+= --enable-video-aalib
.else
CONFIGURE_ARGS+= --disable-video-aalib
.endif
.if ${FLAVOR:L:Mcaca}
PATCH_DIST_STRIP= -p1
PATCHFILES= patch-libsd1.2.7-libcaca0.9.diff:0
LIB_DEPENDS+= caca::graphics/libcaca
CONFIGURE_ARGS+= --enable-video-caca
2005-01-05 16:52:50 -05:00
.else
SUPDISTFILES+= patch-libsd1.2.7-libcaca0.9.diff:0
.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
WANTLIB+= X11.>=10 Xau Xdmcp Xext Xrandr Xrender pthread-stubs xcb
2001-04-19 14:55:39 -04:00
.endif
.if ${FLAVOR:L:Maltivec}
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
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>