blob: 29d908b4d1eb6b4ce733338e9f6eb31abbb19913 (
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
54
55
56
57
58
59
60
61
62
63
64
|
PORTNAME= l-smash-works
DISTVERSION= 0.0-940 # git rev-list --count HEAD
DISTVERSIONSUFFIX= -g198cc78
PORTREVISION= 2
CATEGORIES= multimedia
PKGNAMEPREFIX= vapoursynth-
MAINTAINER= jbeich@FreeBSD.org
COMMENT= L-SMASH source plugin for VapourSynth
WWW= https://github.com/VFR-maniac/L-SMASH-Works/tree/master/VapourSynth
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN= fails to build with FFmpeg 6 (PR 270303)
BUILD_DEPENDS= ${LOCALBASE}/include/vapoursynth/VSHelper.h:multimedia/vapoursynth
BUILD_DEPENDS+= ffmpeg>=3.2,1:multimedia/ffmpeg
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
liblsmash.so:multimedia/l-smash
USE_GITHUB= yes
GH_ACCOUNT= VFR-maniac
GH_PROJECT= L-SMASH-Works
USES= gmake pkgconfig shebangfix
EXCLUDE= VSHelper.h VSScript.h VapourSynth.h
EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude ,}
WRKSRC_SUBDIR= VapourSynth
SHEBANG_FILES= configure
bash_CMD= ${SH}
HAS_CONFIGURE= yes
CONFIGURE_ENV= LD="${CC}" REV="${PORTVERSION:E}" \
HASH="${DISTVERSIONSUFFIX:S/^-g//}"
CONFIGURE_ARGS= --prefix="${PREFIX}" \
--extra-cflags="${CPPFLAGS} ${CFLAGS}" \
--extra-ldflags="${LDFLAGS}" \
--extra-libs="${LIBS}"
MAKEFILE= GNUmakefile
MAKE_ARGS= STRIP="${STRIP_CMD}"
CPPFLAGS+= `pkg-config vapoursynth --cflags`
USE_LDCONFIG= yes
DATADIR= ${PREFIX}/lib/vapoursynth
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
PLIST_FILES= lib/libvslsmashsource.so.${PORTVERSION:E}
PORTDATA= libvslsmashsource.so
PORTDOCS= README
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -Ee '/CROSS/!s/^(CC|LD|REV|HASH)=.*/: $${&}/' \
-e 's/pushd/cd/; s/popd/cd -/' \
-e 's/-Os //; /=.*-fexcess-precision/d' \
${WRKSRC}/configure
@${REINPLACE_CMD} 's/ -msse2 -g0//' ${WRKSRC}/${MAKEFILE}
post-install:
${RLN} ${STAGEDIR}${PREFIX}/lib/libvslsmashsource.so.${PORTVERSION:E} \
${STAGEDIR}${DATADIR}/libvslsmashsource.so
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|