Index: audio/Makefile =================================================================== --- audio/Makefile +++ audio/Makefile @@ -408,6 +408,7 @@ SUBDIR += libmpdclient SUBDIR += libmusicbrainz3 SUBDIR += libmusicbrainz5 + SUBDIR += libmusicxml SUBDIR += libnjb SUBDIR += libnoise SUBDIR += libogg Index: audio/libmusicxml/Makefile =================================================================== --- /dev/null +++ audio/libmusicxml/Makefile @@ -0,0 +1,42 @@ +# $FreeBSD$ + +PORTNAME= libmusicxml +DISTVERSION= 3.11 +CATEGORIES= audio + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library and tools for the MusicXML format + +LICENSE= MPL20 +LICENSE_FILE= ${WRKSRC}/license.txt + +USES= cmake +USE_GITHUB= yes +GH_ACCOUNT= grame-cncm +GH_TAGNAME= 91347ae +USE_LDCONFIG= yes +CMAKE_SOURCE_PATH= ${WRKSRC}/build + +OPTIONS_DEFINE= DOCS DOXYGEN +PORTDOCS= * + +DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen + +post-patch: + @${REINPLACE_CMD} -i '' -e ' \ + s|LIBRARY DESTINATION /usr/lib|LIBRARY DESTINATION ${PREFIX}/lib|' \ + ${WRKSRC}/build/CMakeLists.txt + +post-build-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} \ + ${WRKSRC}/doc/presentation/libmusicxml2.pdf \ + ${STAGEDIR}${DOCSDIR} + +post-install-DOXYGEN-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @cd ${WRKSRC}/doc && \ + doxygen && \ + ${COPYTREE_SHARE} html latex ${STAGEDIR}${DOCSDIR} + +.include