openbsd-ports/devel/sdl/Makefile

76 lines
1.5 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.86 2012/05/16 14:01:19 edd 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.15
DISTNAME= SDL-${VERSION}
2010-11-15 14:45:56 -05:00
PKGNAME= ${DISTNAME:L}
REVISION= 2
2001-04-19 14:55:39 -04:00
CATEGORIES= devel
MASTER_SITES= ${HOMEPAGE}release/
SHARED_LIBS= SDL 8.0
2001-04-19 14:55:39 -04:00
HOMEPAGE= http://www.libsdl.org/
2001-04-19 14:55:39 -04:00
MAINTAINER= Jacob Meuser <jakemsr@openbsd.org>
2001-04-19 14:55:39 -04:00
# LGPLv2.1+
2001-04-19 14:55:39 -04:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= m sndio usbhid
MODULES= converters/libiconv
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS+= devel/nasm
.endif
FLAVORS= aa no_x11
FLAVOR?=
2001-04-19 14:55:39 -04:00
USE_GMAKE= Yes
USE_LIBTOOL= Yes
SEPARATE_BUILD= Yes
CONFIGURE_STYLE= gnu
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/test
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--disable-arts \
--disable-esd \
--disable-oss \
--disable-pulseaudio
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
WITH_SNDIO="Yes"
2004-11-18 12:48:50 -05:00
# in case devel/usb is installed, don't pick it up.
CONFIGURE_ENV+= ac_cv_lib_usb_hid_init=no \
ac_cv_header_usb_h=no
.if ${FLAVOR:L:Maa}
WANTLIB+= aa
2010-11-15 14:45:56 -05:00
LIB_DEPENDS+= graphics/aalib
CONFIGURE_ARGS+= --enable-video-aalib
.endif
2001-04-19 14:55:39 -04:00
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS+= --without-x \
--disable-video-x11
.else
#
# X11/Xext/Xrender/Xrandr are dlopen'd by SDL
#
WANTLIB+= X11 Xau Xdmcp Xext Xrandr Xrender pthread-stubs xcb
2001-04-19 14:55:39 -04:00
.endif
2002-02-19 01:42:03 -05:00
NO_REGRESS= Yes
pre-configure:
@mkdir -p ${WRKSRC}/src/audio/libsndio
@cp ${FILESDIR}/SDL_libsndioaudio.{c,h} ${WRKSRC}/src/audio/libsndio
2001-04-19 14:55:39 -04:00
.include <bsd.port.mk>