sthen bc9e9bfbaf sdl2-mixer wasn't finding libmodplug's header, reported by ajacoutot@
help it with CPPFLAGS=-I${LOCALBASE}/include/libmodplug
2015-11-04 12:37:25 +00:00

54 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2015/11/04 12:37:25 sthen Exp $
V = 2.0.0
COMMENT = SDL2 multi-channel audio mixer library
DISTNAME = SDL2_mixer-${V}
PKGNAME = sdl2-mixer-${V}
REVISION = 3
CATEGORIES = devel audio
SHARED_LIBS = SDL2_mixer 0.0 # 0.0
HOMEPAGE = http://www.libsdl.org/projects/SDL_mixer/
# zlib
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += FLAC SDL2 c m mikmod modplug ogg pthread smpeg2 sndio usbhid
WANTLIB += vorbis vorbisfile
MASTER_SITES = http://www.libsdl.org/projects/SDL_mixer/release/
LIB_DEPENDS = audio/flac \
audio/libmikmod \
audio/libmodplug \
audio/libogg \
audio/libvorbis \
devel/sdl2 \
devel/smpeg2
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
--disable-music-flac-shared \
--disable-music-midi-fluidsynth \
--disable-music-mod-modplug-shared \
--disable-music-mp3-smpeg-shared \
--disable-music-ogg-shared \
--enable-music-mod-mikmod \
--disable-music-mod-mikmod-shared
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libmodplug" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_GMAKE = Yes
NO_TEST = Yes
pre-build:
@${SUBST_CMD} ${WRKSRC}/timidity/config.h
post-install:
${INSTALL_PROGRAM} ${WRKBUILD}/build/.libs/playmus ${PREFIX}/bin/play2mus
${INSTALL_PROGRAM} ${WRKBUILD}/build/.libs/playwave ${PREFIX}/bin/play2wave
.include <bsd.port.mk>