60945f0277
the 32 ports that still use it. Bump PORTREVISION on their dependent ports except the ones that depend on these: audio/libogg audio/libvorbis devel/pcre ftp/curl graphics/jpeg graphics/libart_lgpl graphics/tiff textproc/expat2 textproc/libxslt In these cases the same trick as in the recent gettext update is used. The ports install a symlink with the old library version. When enough of their dependent ports have had regular updates the remaining ones can get a PORTREVISION bump and the links can be removed. Also remove the devel/pcre dependency from USE_GNOME=glib20. It causes over 2200 packages to depend on devel/pcre while less than 200 actually link with it. The glib20 package still depends on devel/pcre so this should not make a difference for ports with USE_GNOME=glib20. Also, libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so USE_GNOME=glib20 should not propagate it. PR: 195724 Exp-run by: antoine Approved by: portmgr (antoine)
72 lines
2.4 KiB
Makefile
72 lines
2.4 KiB
Makefile
# Created by: nemysis <nemysis@gmx.ch>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= alure
|
|
PORTVERSION= 1.2
|
|
PORTREVISION= 4
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://kcat.strangesoft.net/alure-releases/
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
COMMENT= Utility library to help manage common tasks with OpenAL
|
|
|
|
LICENSE= MIT
|
|
|
|
USES= cmake openal:soft pkgconfig
|
|
USE_LDCONFIG= yes
|
|
CMAKE_ARGS= -DBUILD_STATIC:BOOL=FALSE
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= DOCS DUMB EXAMPLES FLAC FLUIDSYNTH MPG123 MODPLUG VORBIS SNDFILE
|
|
OPTIONS_DEFAULT= DUMB FLAC VORBIS SNDFILE
|
|
|
|
DUMB_DESC= DUMB audio library decoding support
|
|
FLUIDSYNTH_DESC= MIDI support via FluidSynth
|
|
MODPLUG_DESC= MOD decoding via ModPlug
|
|
|
|
DOCS_BUILD_DEPENDS= NaturalDocs:${PORTSDIR}/devel/naturaldocs
|
|
DUMB_BUILD_DEPENDS= ${LOCALBASE}/include/dumb.h:${PORTSDIR}/audio/dumb
|
|
DUMB_CMAKE_ON= -DDUMB:BOOL=TRUE
|
|
DUMB_CMAKE_OFF= -DDUMB:BOOL=FALSE
|
|
FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac
|
|
FLAC_CMAKE_ON= -DFLAC:BOOL=TRUE
|
|
FLAC_CMAKE_OFF= -DFLAC:BOOL=FALSE
|
|
FLUIDSYNTH_LIB_DEPENDS= libfluidsynth.so:${PORTSDIR}/audio/fluidsynth
|
|
FLUIDSYNTH_CMAKE_ON= -DFLUIDSYNTH:BOOL=TRUE
|
|
FLUIDSYNTH_CMAKE_OFF= -DFLUIDSYNTH:BOOL=FALSE
|
|
MPG123_LIB_DEPENDS= libmpg123.so:${PORTSDIR}/audio/mpg123
|
|
MPG123_CMAKE_ON= -DMPG123:BOOL=TRUE
|
|
MPG123_CMAKE_OFF= -DMPG123:BOOL=FALSE
|
|
MODPLUG_LIB_DEPENDS= libmodplug.so:${PORTSDIR}/audio/libmodplug
|
|
MODPLUG_CMAKE_ON= -DMODPLUG:BOOL=TRUE
|
|
MODPLUG_CMAKE_OFF= -DMODPLUG:BOOL=FALSE
|
|
VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
|
|
VORBIS_CMAKE_ON= -DVORBIS:BOOL=TRUE
|
|
VORBIS_CMAKE_OFF= -DVORBIS:BOOL=FALSE
|
|
SNDFILE_LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile
|
|
SNDFILE_CMAKE_ON= -DSNDFILE:BOOL=TRUE
|
|
SNDFILE_CMAKE_OFF= -DSNDFILE:BOOL=FALSE
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|lib$${LIB_SUFFIX}/pkgconfig|libdata/pkgconfig|' \
|
|
-e 's|LIBFLAC_LIBRARIES|FLAC_LIBRARIES|' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${REINPLACE_CMD} \
|
|
-e 's|INSTALL(DIRECTORY "$${ALURE_SOURCE_DIR}/docs/html"|INSTALL(DIRECTORY "$${ALURE_SOURCE_DIR}/docs/html" "$${ALURE_SOURCE_DIR}/docs/naturaldocs"|' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
.else
|
|
@${REINPLACE_CMD} -i '' '/FIND_PROGRAM(NATDOCS_BIN NaturalDocs)/,/ENDIF(NATDOCS_BIN)/s/^/#/' ${WRKSRC}/CMakeLists.txt
|
|
@${REINPLACE_CMD} -i '' -e '/INSTALL(DIRECTORY "$${ALURE_SOURCE_DIR}/,+2d' ${WRKSRC}/CMakeLists.txt
|
|
.endif
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
.include <bsd.port.mk>
|