aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2016-04-10 09:12:26 +0800
committerjbeich <jbeich@FreeBSD.org>2016-04-10 09:12:26 +0800
commitccf82a23065a7142a00a45c9f91e8250a4584cac (patch)
tree5585e95471e5a6d811c26363e8f7e32a45bcb8c3 /multimedia
parent6ff51869a9c42a616c6fa6ba2006b141f1d05ece (diff)
downloadfreebsd-ports-gnome-ccf82a23065a7142a00a45c9f91e8250a4584cac.tar.gz
freebsd-ports-gnome-ccf82a23065a7142a00a45c9f91e8250a4584cac.tar.zst
freebsd-ports-gnome-ccf82a23065a7142a00a45c9f91e8250a4584cac.zip
multimedia/vapoursynth-l-smash-works: add new port
L-SMASH source plugin for VapourSynth. https://github.com/VFR-maniac/L-SMASH-Works/tree/master/VapourSynth
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/vapoursynth-l-smash-works/Makefile56
-rw-r--r--multimedia/vapoursynth-l-smash-works/distinfo2
-rw-r--r--multimedia/vapoursynth-l-smash-works/pkg-descr3
4 files changed, 62 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index b4da68155794..2e44db3435b7 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -394,6 +394,7 @@
SUBDIR += v4l_compat
SUBDIR += vamps
SUBDIR += vapoursynth
+ SUBDIR += vapoursynth-l-smash-works
SUBDIR += vcdgear
SUBDIR += vcdimager
SUBDIR += vcdpad
diff --git a/multimedia/vapoursynth-l-smash-works/Makefile b/multimedia/vapoursynth-l-smash-works/Makefile
new file mode 100644
index 000000000000..3606f825e335
--- /dev/null
+++ b/multimedia/vapoursynth-l-smash-works/Makefile
@@ -0,0 +1,56 @@
+# $FreeBSD$
+
+PORTNAME= l-smash-works
+DISTVERSION= 0.0-877 # git rev-list --count HEAD
+DISTVERSIONSUFFIX= -g9828349
+CATEGORIES= multimedia
+PKGNAMEPREFIX= vapoursynth-
+
+MAINTAINER= jbeich@FreeBSD.org
+COMMENT= L-SMASH source plugin for VapourSynth
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${LOCALBASE}/include/vapoursynth/VSHelper.h:multimedia/vapoursynth
+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} \
+ %%DATADIR%%/libvslsmashsource.so
+PORTDOCS= README
+
+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
+
+post-install:
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} \
+ "${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
+
+.include <bsd.port.mk>
diff --git a/multimedia/vapoursynth-l-smash-works/distinfo b/multimedia/vapoursynth-l-smash-works/distinfo
new file mode 100644
index 000000000000..e7a48ab46a12
--- /dev/null
+++ b/multimedia/vapoursynth-l-smash-works/distinfo
@@ -0,0 +1,2 @@
+SHA256 (VFR-maniac-L-SMASH-Works-0.0-877-g9828349_GH0.tar.gz) = ba816491d0972bf382c55de7de7fdd9a0c4643837c9dceb1f83b859a0dc1a4a9
+SIZE (VFR-maniac-L-SMASH-Works-0.0-877-g9828349_GH0.tar.gz) = 222345
diff --git a/multimedia/vapoursynth-l-smash-works/pkg-descr b/multimedia/vapoursynth-l-smash-works/pkg-descr
new file mode 100644
index 000000000000..aecc83962bba
--- /dev/null
+++ b/multimedia/vapoursynth-l-smash-works/pkg-descr
@@ -0,0 +1,3 @@
+L-SMASH source plugin for VapourSynth.
+
+WWW: https://github.com/VFR-maniac/L-SMASH-Works/tree/master/VapourSynth