2002-09-07 00:56:28 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.25 2002/09/07 04:56:28 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
|
|
|
|
2002-04-20 20:20:08 -04:00
|
|
|
VERSION= 1.2.4
|
2001-06-23 15:05:33 -04:00
|
|
|
DISTNAME= SDL-${VERSION}
|
2002-09-07 00:56:28 -04:00
|
|
|
PKGNAME= ${DISTNAME:L}p2
|
2001-04-19 14:55:39 -04:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
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
|
|
|
|
2001-07-19 18:03:26 -04:00
|
|
|
FLAVORS= sun esd arts no_x11
|
2001-05-24 01:54:55 -04:00
|
|
|
FLAVOR?= sun
|
2001-04-19 14:55:39 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
SEPARATE_BUILD= concurrent
|
2002-02-19 15:53:50 -05:00
|
|
|
CONFIGURE_STYLE= gnu autoconf
|
2001-09-28 02:02:12 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/test
|
2001-05-12 00:27:05 -04:00
|
|
|
CONFIGURE_ENV+= X11BASE="${X11BASE}"
|
2001-04-19 14:55:39 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
2001-07-19 18:03:26 -04:00
|
|
|
--disable-oss \
|
2002-02-25 17:33:59 -05:00
|
|
|
--enable-pthread-sem
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
BUILD_DEPENDS= nasm::devel/nasm
|
|
|
|
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
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
2002-04-20 20:20:08 -04:00
|
|
|
MAKE_FLAGS= libSDL_la_LDFLAGS="-version-info 1:0:0"
|
2001-08-14 18:42:03 -04:00
|
|
|
|
2001-04-19 14:55:39 -04:00
|
|
|
post-patch:
|
|
|
|
@touch ${WRKSRC}/aclocal.m4 ${WRKSRC}/configure
|
2001-07-29 15:46:17 -04:00
|
|
|
@find ${WRKSRC} -name Makefile.in -exec touch {} \;
|
2001-04-19 14:55:39 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|