# Created by: Emanuel Haupt # $FreeBSD: head/audio/libopenmpt/Makefile 568952 2021-03-22 12:03:11Z ehaupt $ PORTNAME= libopenmpt PORTVERSION= 0.5.7 DISTVERSIONSUFFIX= +release.autotools CATEGORIES= audio MASTER_SITES= https://lib.openmpt.org/files/libopenmpt/src/ \ LOCAL/ehaupt MAINTAINER= ehaupt@FreeBSD.org COMMENT= Module music library based on OpenMPT LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= compiler:c++11-lang gmake libtool pkgconfig USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+= --without-portaudiocpp OPTIONS_DEFINE= DOCS EXAMPLES FLAC MPG123 OGG PORTAUDIO PULSEAUDIO \ SNDFILE VORBIS OPTIONS_DEFAULT= FLAC MPG123 OGG PORTAUDIO SNDFILE VORBIS FLAC_LIB_DEPENDS= libFLAC.so:audio/flac FLAC_CONFIGURE_WITH= flac MPG123_LIB_DEPENDS= libmpg123.so:audio/mpg123 MPG123_CONFIGURE_WITH= mpg123 OGG_LIB_DEPENDS= libogg.so:audio/libogg OGG_CONFIGURE_WITH= ogg PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio PORTAUDIO_CONFIGURE_WITH= portaudio PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio PULSEAUDIO_CONFIGURE_WITH= pulseaudio SNDFILE_LIB_DEPENDS= libsndfile.so:audio/libsndfile SNDFILE_CONFIGURE_WITH= sndfile VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis VORBIS_CONFIGURE_WITH= vorbis vorbisfile post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopenmpt.so.* post-install-DOCS-on: @${RM} ${STAGEDIR}${DOCSDIR}/LICENSE # do not install twice post-install-EXAMPLES-on: @${MV} ${STAGEDIR}${DOCSDIR}/examples ${STAGEDIR}${EXAMPLESDIR} .include