2021-01-23 17:52:00 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.105 2021/01/23 17:52:00 thfr Exp $
|
2001-04-19 18:55:39 +00:00
|
|
|
|
2007-09-16 02:52:56 +00:00
|
|
|
COMMENT= cross-platform multimedia library
|
2001-04-19 18:55:39 +00:00
|
|
|
|
2012-03-02 09:10:38 +00:00
|
|
|
VERSION= 1.2.15
|
2001-06-23 19:05:33 +00:00
|
|
|
DISTNAME= SDL-${VERSION}
|
2010-11-15 19:45:56 +00:00
|
|
|
PKGNAME= ${DISTNAME:L}
|
2021-01-23 17:52:00 +00:00
|
|
|
REVISION= 11
|
2001-04-19 18:55:39 +00:00
|
|
|
CATEGORIES= devel
|
2021-01-23 17:52:00 +00:00
|
|
|
MAINTAINER= Thomas Frohwein <thfr@openbsd.org>
|
2012-03-02 09:10:38 +00:00
|
|
|
MASTER_SITES= ${HOMEPAGE}release/
|
|
|
|
|
|
|
|
SHARED_LIBS= SDL 8.0
|
2001-04-19 18:55:39 +00:00
|
|
|
|
2018-01-12 19:32:54 +00:00
|
|
|
HOMEPAGE= https://www.libsdl.org/
|
2001-04-19 18:55:39 +00:00
|
|
|
|
2008-09-26 03:14:42 +00:00
|
|
|
# LGPLv2.1+
|
2019-07-12 21:02:12 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2001-04-19 18:55:39 +00:00
|
|
|
|
2016-04-26 21:21:22 +00:00
|
|
|
WANTLIB= iconv m pthread sndio usbhid
|
2012-03-02 09:10:38 +00:00
|
|
|
|
2016-04-26 21:21:22 +00:00
|
|
|
LIB_DEPENDS= converters/libiconv
|
2001-05-24 05:54:55 +00:00
|
|
|
|
2013-12-15 01:57:55 +00:00
|
|
|
AUTOCONF_VERSION= 2.61
|
|
|
|
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS}
|
|
|
|
|
2008-09-26 03:14:42 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2012-03-02 09:10:38 +00:00
|
|
|
BUILD_DEPENDS+= devel/nasm
|
2008-09-26 03:14:42 +00:00
|
|
|
.endif
|
|
|
|
|
2012-03-02 09:10:38 +00:00
|
|
|
FLAVORS= aa no_x11
|
2007-12-09 13:40:16 +00:00
|
|
|
FLAVOR?=
|
2001-04-19 18:55:39 +00:00
|
|
|
|
2012-03-02 09:10:38 +00:00
|
|
|
USE_GMAKE= Yes
|
2012-03-29 13:38:12 +00:00
|
|
|
SEPARATE_BUILD= Yes
|
2007-09-22 01:12:38 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2001-09-28 06:02:12 +00:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/test
|
2016-03-11 20:28:21 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-alsa \
|
2012-03-02 09:10:38 +00:00
|
|
|
--disable-arts \
|
|
|
|
--disable-esd \
|
|
|
|
--disable-oss \
|
|
|
|
--disable-pulseaudio
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
2013-12-15 01:57:55 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2004-11-18 17:48:50 +00: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
|
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Maa}
|
2012-03-02 09:10:38 +00:00
|
|
|
WANTLIB+= aa
|
2010-11-15 19:45:56 +00:00
|
|
|
LIB_DEPENDS+= graphics/aalib
|
2002-11-30 11:17:26 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-video-aalib
|
2004-04-23 12:09:18 +00:00
|
|
|
.endif
|
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mno_x11}
|
2001-04-19 18:55:39 +00:00
|
|
|
CONFIGURE_ARGS+= --without-x \
|
|
|
|
--disable-video-x11
|
2012-03-04 01:33:22 +00:00
|
|
|
.else
|
|
|
|
#
|
|
|
|
# X11/Xext/Xrender/Xrandr are dlopen'd by SDL
|
|
|
|
#
|
2017-10-23 17:10:37 +00:00
|
|
|
WANTLIB+= X11 Xau Xdmcp Xext Xrandr Xrender xcb
|
2001-04-19 18:55:39 +00:00
|
|
|
.endif
|
|
|
|
|
2013-03-11 10:50:00 +00:00
|
|
|
NO_TEST= Yes
|
2002-02-19 06:42:03 +00:00
|
|
|
|
2008-11-02 14:53:51 +00:00
|
|
|
pre-configure:
|
2013-12-15 01:57:55 +00:00
|
|
|
@mkdir -p ${WRKSRC}/src/audio/sndio
|
|
|
|
@cp ${FILESDIR}/SDL_sndioaudio.{c,h} ${WRKSRC}/src/audio/sndio
|
2021-01-23 17:52:00 +00:00
|
|
|
@cd ${WRKSRC} && AUTOCONF_VERSION=${AUTOCONF_VERSION} PATH=${PORTPATH} \
|
|
|
|
./autogen.sh
|
2008-11-02 14:53:51 +00:00
|
|
|
|
2001-04-19 18:55:39 +00:00
|
|
|
.include <bsd.port.mk>
|