summaryrefslogtreecommitdiff
path: root/multimedia/vapoursynth-l-smash-works
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2016-04-10 01:12:26 +0000
committerJan Beich <jbeich@FreeBSD.org>2016-04-10 01:12:26 +0000
commitcd04fc6782ea3db19ae923caf5eacab6e443a22e (patch)
tree5585e95471e5a6d811c26363e8f7e32a45bcb8c3 /multimedia/vapoursynth-l-smash-works
parentmultimedia/ffms2: VapourSynth support (diff)
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
Notes
Notes: svn path=/head/; revision=412881
Diffstat (limited to 'multimedia/vapoursynth-l-smash-works')
-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
3 files changed, 61 insertions, 0 deletions
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