Index: multimedia/Makefile =================================================================== --- multimedia/Makefile +++ multimedia/Makefile @@ -157,6 +157,7 @@ SUBDIR += gtk-youtube-viewer SUBDIR += gxine SUBDIR += handbrake + SUBDIR += harvid SUBDIR += imagination SUBDIR += iriverter SUBDIR += iso2mkv Index: multimedia/harvid/Makefile =================================================================== --- /dev/null +++ multimedia/harvid/Makefile @@ -0,0 +1,30 @@ +# $FreeBSD$ + +PORTNAME= harvid +DISTVERSIONPREFIX= v +DISTVERSION= 0.8.2 +CATEGORIES= multimedia + +MAINTAINER= marcelbonnet@gmail.com +COMMENT= Extract still images from movies and serve them via HTTP + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \ + libpng16.so:graphics/png +RUN_DEPENDS= ffmpeg:multimedia/ffmpeg + +USES= gmake jpeg localbase pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= x42 + +MAKE_JOBS_UNSAFE= yes # https://github.com/x42/harvid/issues/5 + +PLIST_FILES= bin/harvid \ + man/man1/harvid.1.gz + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/harvid + +.include Index: multimedia/harvid/distinfo =================================================================== --- /dev/null +++ multimedia/harvid/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1519465247 +SHA256 (x42-harvid-v0.8.2_GH0.tar.gz) = 3e3e22f554c7c8f0efe3ca400200e95c9fd5c0495cc76c4ae08991bc2abbc358 +SIZE (x42-harvid-v0.8.2_GH0.tar.gz) = 116541 Index: multimedia/harvid/files/patch-common.mak =================================================================== --- /dev/null +++ multimedia/harvid/files/patch-common.mak @@ -0,0 +1,11 @@ +--- common.mak.orig 2018-02-24 09:43:21 UTC ++++ common.mak +@@ -4,7 +4,7 @@ CFLAGS ?= -Wall -g -O2 + PREFIX ?= /usr/local + + bindir ?= $(PREFIX)/bin +-mandir ?= $(PREFIX)/share/man ++mandir ?= $(PREFIX)/man + libdir ?= $(PREFIX)/lib + docdir ?= $(PREFIX)/share/doc + includedir ?= $(PREFIX)/include Index: multimedia/harvid/files/patch-src_Makefile =================================================================== --- /dev/null +++ multimedia/harvid/files/patch-src_Makefile @@ -0,0 +1,15 @@ +--- src/Makefile.orig 2018-02-24 09:51:55 UTC ++++ src/Makefile +@@ -16,9 +16,9 @@ ifeq ($(shell PKG_CONFIG_PATH=$(PKG_CONF + $(error "libpng is required - install libpng-dev") + endif + +-ifeq ($(shell $(ECHO) "\#include \n\#include \nint main() { struct jpeg_error_mgr jerr; jpeg_std_error(&jerr); return 0; }" | $(CC) -pipe -x c -o $(CONFIGTEMP) $(ARCHINCLUDES) $(LDFLAGS) - -ljpeg 2>/dev/null || echo no; $(RM) -f $(CONFIGTEMP)), no) +- $(error "libjpeg is required - install libjpeg-dev, libjpeg8-dev or libjpeg62-dev") +-endif ++#ifeq ($(shell $(ECHO) "\#include \n\#include \nint main() { struct jpeg_error_mgr jerr; jpeg_std_error(&jerr); return 0; }" | $(CC) -pipe -x c -o $(CONFIGTEMP) $(ARCHINCLUDES) $(LDFLAGS) - -ljpeg 2>/dev/null || echo no; $(RM) -f $(CONFIGTEMP)), no) ++# $(error "libjpeg is required - install libjpeg-dev, libjpeg8-dev or libjpeg62-dev") ++#endif + + FLAGS=-I../libharvid/ + FLAGS+=$(ARCHINCLUDES) $(ARCHFLAGS) Index: multimedia/harvid/pkg-descr =================================================================== --- /dev/null +++ multimedia/harvid/pkg-descr @@ -0,0 +1,6 @@ +Harvid efficiently provides frame-accurate data and acts as second level +cache for rendering the video-timeline in Ardour, but it is not limited to +that: it has applications for any task that requires a high-performance +frame-accurate online image extraction processor. + +WWW: https://x42.github.com/harvid/