2004-10-24 22:34:21 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.33 2004/10/25 02:34:21 pvalchev Exp $
|
2001-08-29 22:24:52 -04:00
|
|
|
# Uses pthreads
|
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
|
|
|
|
2004-10-24 22:34:21 -04:00
|
|
|
VERSION= 1.2.7
|
2001-06-23 15:05:33 -04:00
|
|
|
DISTNAME= SDL-${VERSION}
|
2004-10-24 22:34:21 -04:00
|
|
|
PKGNAME= ${DISTNAME:L}
|
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
|
|
|
|
2003-09-29 01:41:37 -04:00
|
|
|
# LGPL
|
2001-04-19 14:55:39 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2003-09-29 01:41:37 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}release/ \
|
2001-04-19 14:55:39 -04:00
|
|
|
http://www.devolution.com/~slouken/SDL/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
|
|
|
|
2004-04-23 08:09:18 -04:00
|
|
|
FLAVORS= sun esd arts aa caca no_x11
|
2001-05-24 01:54:55 -04:00
|
|
|
FLAVOR?= sun
|
2001-04-19 14:55:39 -04:00
|
|
|
|
2004-10-24 22:34:21 -04:00
|
|
|
AUTOCONF_VERSION= 2.59
|
2001-04-19 14:55:39 -04:00
|
|
|
SEPARATE_BUILD= concurrent
|
2002-09-15 15:53:21 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2001-09-28 02:02:12 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/test
|
2002-11-30 06:17:26 -05:00
|
|
|
CONFIGURE_ENV+= X11BASE="${X11BASE}" \
|
|
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
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 \
|
2002-02-25 17:33:59 -05:00
|
|
|
--enable-pthread-sem
|
|
|
|
|
2003-12-28 17:26:18 -05:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
USE_GCC3?=No
|
2002-11-30 06:17:26 -05:00
|
|
|
# XXX gcc 3/nasm issue.
|
2003-12-28 17:26:18 -05:00
|
|
|
.if (${MACHINE_ARCH} == "i386") && (${CC} != "egcc" && ${USE_GCC3:L} != "yes")
|
2004-10-24 22:34:21 -04:00
|
|
|
BUILD_DEPENDS+= nasm::devel/nasm
|
2002-02-25 17:33:59 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-nasm
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nasm
|
|
|
|
.endif
|
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
|
|
|
|
|
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
|
2001-04-19 14:55:39 -04:00
|
|
|
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
|
|
|
|
|
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
|
|
|
|
PATCHFILES= patch-libsd1.2.6-libcaca0.9.diff:0
|
|
|
|
LIB_DEPENDS+= caca::graphics/libcaca
|
|
|
|
CONFIGURE_ARGS+= --enable-video-caca
|
|
|
|
.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
|
|
|
|
.endif
|
|
|
|
|
2002-02-19 01:42:03 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2004-10-24 22:34:21 -04:00
|
|
|
MAKE_FLAGS= libSDL_la_LDFLAGS="-version-info 3:0:0"
|
2001-08-14 18:42:03 -04:00
|
|
|
|
2001-04-19 14:55:39 -04:00
|
|
|
.include <bsd.port.mk>
|