2001-05-24 01:54:55 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2001/05/24 05:54:55 pvalchev Exp $
|
2001-04-19 14:55:39 -04:00
|
|
|
|
2001-05-09 19:26:16 -04:00
|
|
|
COMMENT= "cross-platform multimedia library"
|
2001-04-19 14:55:39 -04:00
|
|
|
|
|
|
|
VER= 1.2.0
|
|
|
|
DISTNAME= SDL-${VER}
|
2001-04-20 19:48:50 -04:00
|
|
|
PKGNAME= ${DISTNAME:L}
|
2001-04-19 14:55:39 -04:00
|
|
|
CATEGORIES= devel
|
|
|
|
NEED_VERSION= 1.378
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.libsdl.org
|
|
|
|
|
2001-05-09 19:26:16 -04:00
|
|
|
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
|
2001-04-19 14:55:39 -04:00
|
|
|
|
|
|
|
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/
|
2001-05-24 01:54:55 -04:00
|
|
|
MASTER_SITES0= http://vedge.com.ar/hack/ \
|
|
|
|
http://hobbiton.org/~pvalchev/sdl/
|
2001-04-19 14:55:39 -04:00
|
|
|
|
2001-05-24 01:54:55 -04:00
|
|
|
DISTFILES= ${DISTNAME}.tar.gz SDL_obsd_audio-1.2.0.tar.gz:0
|
|
|
|
|
|
|
|
FLAVORS= sun oss esd gl arts no_x11
|
|
|
|
FLAVOR?= sun
|
2001-04-19 14:55:39 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
CONFIGURE_STYLE= gnu
|
2001-05-12 00:27:05 -04:00
|
|
|
CONFIGURE_ENV+= X11BASE="${X11BASE}"
|
2001-04-19 14:55:39 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
|
|
|
--disable-joystick \
|
|
|
|
--disable-pthread-sem \
|
2001-04-21 11:33:01 -04:00
|
|
|
--disable-nasm
|
2001-04-19 14:55:39 -04:00
|
|
|
|
2001-05-24 01:54:55 -04:00
|
|
|
.if ${FLAVOR:L:Msun}
|
|
|
|
CONFIGURE_ARGS+= --enable-openbsdaudio
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-openbsdaudio
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mesd}
|
2001-04-20 19:48:50 -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
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Moss}
|
|
|
|
CONFIGURE_ARGS+= --enable-oss
|
2001-04-21 11:33:01 -04:00
|
|
|
.else
|
2001-05-24 01:54:55 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-oss
|
2001-04-19 14:55:39 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mgl}
|
|
|
|
CONFIGURE_ARGS+= --enable-video-opengl
|
2001-04-21 11:33:01 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-video-opengl
|
2001-04-19 14:55:39 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Marts}
|
|
|
|
LIB_DEPENDS+= artsc::x11/kde/libs2
|
|
|
|
CONFIGURE_ARGS+= --enable-arts
|
2001-04-21 11:33:01 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-arts
|
2001-04-19 14:55:39 -04:00
|
|
|
.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
|
2001-05-24 01:54:55 -04:00
|
|
|
@ln -sf ${WRKSRC}/../src/audio/obsd ${WRKSRC}/src/audio/obsd
|
2001-04-19 14:55:39 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|