Initial diff from David Carlier. Add a patch to disable SDL_GetBasePath support, as we don't have kernel support for that feature. Ports bulk and ok ajacoutot@
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.15 2016/11/10 10:08:04 jca Exp $
|
|
|
|
COMMENT= cross-platform multimedia library
|
|
BROKEN-hppa= src/atomic/SDL_spinlock.c:101:2: error: #error Please implement for your platform.
|
|
|
|
V= 2.0.5
|
|
DISTNAME= SDL2-${V}
|
|
PKGNAME= sdl2-${V}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.libsdl.org/release/
|
|
|
|
SHARED_LIBS= SDL2 0.3
|
|
|
|
HOMEPAGE= http://www.libsdl.org/
|
|
|
|
# zlib
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
SEPARATE_BUILD= Yes
|
|
CONFIGURE_STYLE= gnu
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/build-scripts
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS+= --disable-alsa \
|
|
--disable-arts \
|
|
--disable-dbus \
|
|
--disable-esd \
|
|
--disable-ibus \
|
|
--disable-libudev \
|
|
--disable-nas \
|
|
--disable-oss \
|
|
--disable-pulseaudio
|
|
# 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
|
|
|
|
WANTLIB= m pthread sndio usbhid
|
|
# GL/X11/Xext/Xrender/Xrandr are dlopen'd by SDL
|
|
WANTLIB+= GL X11 Xau Xdmcp Xext Xrandr Xrender pthread-stubs xcb
|
|
|
|
NO_TEST= Yes
|
|
|
|
.include <bsd.port.mk>
|