diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2014-07-20 00:40:37 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2014-07-20 00:40:37 +0800 |
commit | 0fb4e1f4a180058d091df0e998347fc27214242b (patch) | |
tree | dab294a4435ea6cb6b14d86f432594b74d7e271d /multimedia/libmediainfo/Makefile | |
parent | 3c5ae26d29d089c76204d922e11735b3e316f659 (diff) | |
download | freebsd-ports-gnome-0fb4e1f4a180058d091df0e998347fc27214242b.tar.gz freebsd-ports-gnome-0fb4e1f4a180058d091df0e998347fc27214242b.tar.zst freebsd-ports-gnome-0fb4e1f4a180058d091df0e998347fc27214242b.zip |
- Add libmediainfo 0.7.69
MediaInfo is a convenient unified display of the most relevant technical and
tag data for video and audio files.
Read http://mediaarea.net/en/MediaInfo/Support/Formats for supported formats.
WWW: http://mediainfo.sourceforge.net/
Diffstat (limited to 'multimedia/libmediainfo/Makefile')
-rw-r--r-- | multimedia/libmediainfo/Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/multimedia/libmediainfo/Makefile b/multimedia/libmediainfo/Makefile new file mode 100644 index 000000000000..8d46c3deff88 --- /dev/null +++ b/multimedia/libmediainfo/Makefile @@ -0,0 +1,56 @@ +# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= libmediainfo +PORTVERSION= 0.7.69 +CATEGORIES= multimedia +MASTER_SITES= http://mediaarea.net/download/binary/mediainfo/${PORTVERSION}/ +DISTNAME= MediaInfo_CLI_${PORTVERSION}_GNU_FromSource + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= MediaInfo library + +LICENSE= BSD2CLAUSE + +LIB_DEPENDS= libzen.so:${PORTSDIR}/multimedia/libzen + +CONFLICTS_INSTALL= mediainfo-0.[0-6]* mediainfo-0.7.[0-5]* + +OPTIONS_DEFINE= CURL MMS TINYXML2 +OPTIONS_DEFAULT=TINYXML2 +TINYXML2_DESC= Use textproc/tinyxml2 instead of bundled one + +CONFIGURE_ARGS= --enable-shared +CPPFLAGS+= -I${LOCALBASE}/include +GNU_CONFIGURE= yes +USE_LDCONFIG= yes +USES= libtool pathfix pkgconfig tar:bzip2 + +WRKSRC= ${WRKDIR}/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library + +CURL_CONFIGURE_ON= --with-libcurl=${LOCALBASE} +CURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl +MMS_CONFIGURE_ON= --with-libmms=${LOCALBASE} +MMS_LIB_DEPENDS= libmms.so:${PORTSDIR}/net/libmms +TINYXML2_CONFIGURE_ENV= TINYXML2_CFLAGS=-I${LOCALBASE}/include TINYXML2_LIBS="-L${LOCALBASE}lib -ltinyxml2" +TINYXML2_CONFIGURE_ON= --with-libtinyxml2=yes +TINYXML2_LIB_DEPENDS= libtinyxml2.so:${PORTSDIR}/textproc/tinyxml2 + +post-patch: + @${REINPLACE_CMD} \ + -e 's|../../../../ZenLib/Project/GNU/Library/libzen-config|${LOCALBASE}/bin/libzen-config|' \ + -e 's|lib/pkgconfig/|libdata/pkgconfig/|g' \ + -e 's|-DMEDIAINFO_LIBMMS_FROMSOURCE||g' \ + -e 's|with_libmms/pkgconfig/|with_libmms/libdata/pkgconfig/|' \ + -e 's|src/.libs|lib|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|-lpthread|-pthread|g' ${WRKSRC}/libmediainfo.pc.in + @${REINPLACE_CMD} -e '1 s|bin/bash|bin/sh|' ${WRKSRC}/libmediainfo-config.in + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/libmediainfo-config ${STAGEDIR}${PREFIX}/bin/libmediainfo-config + ${INSTALL_DATA} ${WRKSRC}/libmediainfo.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/libmediainfo.pc + cd ${WRKSRC}/../../../Source/ && ${FIND} MediaInfo -type d | ${XARGS} -I % ${MKDIR} ${STAGEDIR}${PREFIX}/include/% + cd ${WRKSRC}/../../../Source/ && ${FIND} MediaInfo -name '*.h' | ${XARGS} -I % ${INSTALL_DATA} % ${STAGEDIR}${PREFIX}/include/% + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmediainfo.so.0.0.0 + +.include <bsd.port.mk> |