openbsd-ports/devel/sdl/Makefile
ajacoutot a183b75553 "/usr/local/lib/pkgconfig/" is part of mtree(8).
Packages should not own this dir to prevent its deletion or a warning that it
cannot be removed because it's not empty at pkg_delete(1) time.
2015-05-22 11:31:10 +00:00

74 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.97 2015/05/22 11:31:13 ajacoutot Exp $
COMMENT= cross-platform multimedia library
VERSION= 1.2.15
DISTNAME= SDL-${VERSION}
PKGNAME= ${DISTNAME:L}
REVISION= 7
CATEGORIES= devel
MASTER_SITES= ${HOMEPAGE}release/
SHARED_LIBS= SDL 8.0
HOMEPAGE= http://www.libsdl.org/
# LGPLv2.1+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= m pthread sndio usbhid
MODULES= converters/libiconv
AUTOCONF_VERSION= 2.61
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS}
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS+= devel/nasm
.endif
FLAVORS= aa no_x11
FLAVOR?=
USE_GMAKE= Yes
SEPARATE_BUILD= Yes
CONFIGURE_STYLE= gnu
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/test
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--disable-alsa \
--disable-arts \
--disable-esd \
--disable-oss \
--disable-pulseaudio
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
# 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:Maa}
WANTLIB+= aa
LIB_DEPENDS+= graphics/aalib
CONFIGURE_ARGS+= --enable-video-aalib
.endif
.if ${FLAVOR: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
.endif
NO_TEST= Yes
pre-configure:
@mkdir -p ${WRKSRC}/src/audio/sndio
@cp ${FILESDIR}/SDL_sndioaudio.{c,h} ${WRKSRC}/src/audio/sndio
@cd ${WRKSRC}; env AUTOCONF_VERSION=${AUTOCONF_VERSION} ./autogen.sh
.include <bsd.port.mk>