openbsd-ports/devel/sdl/Makefile

68 lines
1.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.15 2001/07/29 19:46:17 pvalchev 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.2
DISTNAME= SDL-${VERSION}
PKGNAME= ${DISTNAME:L}
2001-04-19 14:55:39 -04:00
CATEGORIES= devel
NEED_VERSION= 1.427
2001-04-19 14:55:39 -04:00
HOMEPAGE= http://www.libsdl.org
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/
FLAVORS= sun esd arts no_x11
FLAVOR?= sun
2001-04-19 14:55:39 -04:00
USE_GMAKE= Yes
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CONFIGURE_ENV+= X11BASE="${X11BASE}"
2001-04-19 14:55:39 -04:00
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--disable-pthread-sem \
--disable-oss \
--disable-nasm
2001-04-19 14:55:39 -04:00
.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
2001-04-19 14:55:39 -04:00
.if ${FLAVOR:L:Marts}
LIB_DEPENDS+= artsc::x11/kde/libs2
CONFIGURE_ARGS+= --enable-arts
.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
@find ${WRKSRC} -name Makefile.in -exec touch {} \;
2001-04-19 14:55:39 -04:00
.include <bsd.port.mk>