Lines 1-41
Link Here
|
1 |
PORTNAME= libmediainfo |
1 |
PORTNAME= libmediainfo |
2 |
PORTVERSION= 22.09 |
2 |
DISTVERSION= 22.12 |
3 |
CATEGORIES= multimedia |
3 |
CATEGORIES= multimedia |
4 |
MASTER_SITES= https://mediaarea.net/download/binary/mediainfo/${PORTVERSION}/ \ |
4 |
MASTER_SITES= https://mediaarea.net/download/source/${PORTNAME}/${DISTVERSION}/ \ |
5 |
LOCAL/sunpoet |
5 |
LOCAL/sunpoet |
6 |
DISTNAME= MediaInfo_CLI_${PORTVERSION}_GNU_FromSource |
6 |
DISTNAME= ${PORTNAME}_${DISTVERSION} |
7 |
|
7 |
|
8 |
MAINTAINER= sunpoet@FreeBSD.org |
8 |
MAINTAINER= sunpoet@FreeBSD.org |
9 |
COMMENT= MediaInfo library |
9 |
COMMENT= MediaInfo library |
10 |
WWW= https://mediaarea.net/en/MediaInfo |
10 |
WWW= https://mediaarea.net/en/MediaInfo |
11 |
|
11 |
|
12 |
LICENSE= BSD2CLAUSE |
12 |
LICENSE= BSD2CLAUSE |
13 |
LICENSE_FILE= ${WRKSRC}/../../../License.html |
13 |
LICENSE_FILE= ${WRKSRC}/../../License.html |
14 |
|
14 |
|
15 |
LIB_DEPENDS= libzen.so:multimedia/libzen |
15 |
LIB_DEPENDS= libtinyxml2.so:textproc/tinyxml2 \ |
|
|
16 |
libzen.so:multimedia/libzen |
16 |
|
17 |
|
17 |
USES= alias compiler:c++11-lang libtool localbase pathfix pkgconfig tar:xz |
18 |
USES= cmake compiler:c++11-lang dos2unix localbase:ldflags pathfix \ |
18 |
|
19 |
pkgconfig tar:xz |
19 |
CFLAGS+= -D_POSIX_PRIORITY_SCHEDULING |
|
|
20 |
CONFIGURE_ARGS= --enable-shared --enable-static |
21 |
GNU_CONFIGURE= yes |
22 |
INSTALL_TARGET= install-strip |
23 |
USE_CXXSTD= c++11 |
24 |
USE_LDCONFIG= yes |
20 |
USE_LDCONFIG= yes |
|
|
21 |
DOS2UNIX_GLOB= *.c *.cmake.in *.cpp *.h *.pc.in *.txt |
22 |
DOS2UNIX_WRKSRC= ${WRKDIR} |
23 |
|
24 |
CXXFLAGS+= -D_POSIX_PRIORITY_SCHEDULING |
25 |
|
26 |
WRKSRC= ${WRKDIR}/MediaInfoLib/Project/CMake |
27 |
PLIST_SUB= DISTVERSION=${DISTVERSION:S|.||g} |
25 |
|
28 |
|
26 |
WRKSRC= ${WRKDIR}/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library |
29 |
CMAKE_ON= BUILD_SHARED_LIBS |
27 |
|
30 |
|
28 |
OPTIONS_DEFINE= CURL TINYXML2 |
31 |
OPTIONS_DEFINE= CURL |
29 |
OPTIONS_DEFAULT=TINYXML2 |
|
|
30 |
TINYXML2_DESC= Use textproc/tinyxml2 instead of bundled one |
31 |
|
32 |
|
32 |
CURL_CONFIGURE_ON= --with-libcurl=${LOCALBASE} |
33 |
CURL_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_CURL:BOOL=True |
33 |
CURL_LIB_DEPENDS= libcurl.so:ftp/curl |
34 |
CURL_LIB_DEPENDS= libcurl.so:ftp/curl |
34 |
TINYXML2_CONFIGURE_ON= --with-libtinyxml2=yes |
|
|
35 |
TINYXML2_LIB_DEPENDS= libtinyxml2.so:textproc/tinyxml2 |
36 |
|
35 |
|
37 |
post-install: |
36 |
post-patch: |
38 |
${INSTALL_DATA} ${WRKSRC}/libmediainfo.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/libmediainfo.pc |
37 |
@${REINPLACE_CMD} -e '/^Libs_Static/d' ${PATCH_WRKSRC}/libmediainfo.pc.in |
39 |
${RM} -r ${STAGEDIR}${PREFIX}/include/MediaInfoDLL/ |
|
|
40 |
|
38 |
|
41 |
.include <bsd.port.mk> |
39 |
.include <bsd.port.mk> |