blob: 9e8c5e93bb5fd7559420f99ffab3a2db2e7ffb2b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= libmediainfo
PORTVERSION= 17.10
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= https://mediaarea.net/download/binary/mediainfo/${PORTVERSION}/ \
LOCAL/sunpoet
DISTNAME= MediaInfo_CLI_${PORTVERSION}_GNU_FromSource
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= MediaInfo library
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/../../../License.html
LIB_DEPENDS= libzen.so: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 --enable-static
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
USES= alias libtool localbase pathfix pkgconfig tar:xz
WRKSRC= ${WRKDIR}/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library
CURL_CONFIGURE_ON= --with-libcurl=${LOCALBASE}
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
MMS_CONFIGURE_ON= --with-libmms=${LOCALBASE}
MMS_LIB_DEPENDS= libmms.so:net/libmms
TINYXML2_CONFIGURE_ON= --with-libtinyxml2=yes
TINYXML2_LIB_DEPENDS= libtinyxml2.so:textproc/tinyxml2
post-patch:
@${REINPLACE_CMD} \
-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 '1 s|bin/bash|bin/sh|' ${WRKSRC}/libmediainfo-config.in
post-install:
${INSTALL_DATA} ${WRKSRC}/libmediainfo.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/libmediainfo.pc
${RM} -r ${STAGEDIR}${PREFIX}/include/MediaInfoDLL/
.include <bsd.port.mk>
|