openbsd-ports/devel/sdl/Makefile
pvalchev fdb0db3f2e - Implement a native audio driver by <vedge2@vedge.com.ar> as a "sun"
flavor, being the default one (fetching distfile from an external site).
- Isolate esd as a separate flavor from oss -- a combination with either
"sun" or "oss" is possible.
2001-05-24 05:54:55 +00:00

84 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2001/05/24 05:54:55 pvalchev Exp $
COMMENT= "cross-platform multimedia library"
VER= 1.2.0
DISTNAME= SDL-${VER}
PKGNAME= ${DISTNAME:L}
CATEGORIES= devel
NEED_VERSION= 1.378
HOMEPAGE= http://www.libsdl.org
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/release/ \
http://www.devolution.com/~slouken/SDL/release/
MASTER_SITES0= http://vedge.com.ar/hack/ \
http://hobbiton.org/~pvalchev/sdl/
DISTFILES= ${DISTNAME}.tar.gz SDL_obsd_audio-1.2.0.tar.gz:0
FLAVORS= sun oss esd gl arts no_x11
FLAVOR?= sun
USE_GMAKE= Yes
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CONFIGURE_ENV+= X11BASE="${X11BASE}"
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--disable-joystick \
--disable-pthread-sem \
--disable-nasm
.if ${FLAVOR:L:Msun}
CONFIGURE_ARGS+= --enable-openbsdaudio
.else
CONFIGURE_ARGS+= --disable-openbsdaudio
.endif
.if ${FLAVOR:L:Mesd}
LIB_DEPENDS+= esd.2::audio/esound
CONFIGURE_ARGS+= --enable-esd
.else
CONFIGURE_ARGS+= --disable-esd
.endif
.if ${FLAVOR:L:Moss}
CONFIGURE_ARGS+= --enable-oss
.else
CONFIGURE_ARGS+= --disable-oss
.endif
.if ${FLAVOR:L:Mgl}
CONFIGURE_ARGS+= --enable-video-opengl
.else
CONFIGURE_ARGS+= --disable-video-opengl
.endif
.if ${FLAVOR:L:Marts}
LIB_DEPENDS+= artsc::x11/kde/libs2
CONFIGURE_ARGS+= --enable-arts
.else
CONFIGURE_ARGS+= --disable-arts
.endif
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS+= --without-x \
--disable-video-x11
.else
USE_X11= Yes
.endif
post-patch:
@touch ${WRKSRC}/aclocal.m4 ${WRKSRC}/configure
@ln -sf ${WRKSRC}/../src/audio/obsd ${WRKSRC}/src/audio/obsd
.include <bsd.port.mk>