1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

New port: multimedia/blind: Collection of command line video editing utilities

A minimalistic project from the suckless team: https://tools.suckless.org/blind/

Submitted by:	myself
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D14099
This commit is contained in:
Yuri Victorovich 2018-01-29 19:21:21 +00:00
parent 11049b769a
commit ff2dd81377
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=460326
7 changed files with 144 additions and 0 deletions

View File

@ -25,6 +25,7 @@
SUBDIR += baka-mplayer
SUBDIR += bino
SUBDIR += bitstream
SUBDIR += blind
SUBDIR += bsdbktr_tvtune
SUBDIR += camserv
SUBDIR += ccextractor

19
multimedia/blind/Makefile Normal file
View File

@ -0,0 +1,19 @@
# $FreeBSD$
PORTNAME= blind
DISTVERSION= 1.1
CATEGORIES= multimedia
MASTER_SITES= https://dl.suckless.org/tools/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Collection of command line video editing utilities
LICENSE= ISC
LICENSE_GROUPS= FSF GPL OSI
LICENSE_NAME= ISC License
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= gmake # because of a bug in the makefiles: suckless is supposed to have POSIX makefiles
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1517173257
SHA256 (blind-1.1.tar.gz) = 24f903ccb5e118d75f38d3ae0d85fed909749f978bff47ff6973ee1bfddfcc5a
SIZE (blind-1.1.tar.gz) = 47568

View File

@ -0,0 +1,18 @@
--- config.mk.orig 2017-05-06 11:27:39 UTC
+++ config.mk
@@ -2,10 +2,10 @@
VERSION = 1.1
# Paths
-PREFIX = /usr/local
-MANPREFIX = $(PREFIX)/share/man
+PREFIX ?= /usr/local
+MANPREFIX = $(PREFIX)/man
# You may want to remove -DHAVE_PRCTL and -DHAVE_EPOLL from CPPFLAGS if you are not using Linux.
-CFLAGS = -std=c99 -Wall -pedantic -O2
-CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_FILE_OFFSET_BITS=64 -DHAVE_PRCTL -DHAVE_EPOLL
-LDFLAGS = -lm -s
+CFLAGS += -std=c99 -Wall -pedantic
+CPPFLAGS += -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64
+LDFLAGS += -lm -lc -s

View File

@ -0,0 +1,14 @@
--- src/blind-split.c.orig 2017-05-06 11:27:39 UTC
+++ src/blind-split.c
@@ -2,7 +2,11 @@
#include "stream.h"
#include "util.h"
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+#include <stdlib.h>
+#else
#include <alloca.h>
+#endif
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>

View File

@ -0,0 +1,13 @@
blind uses a raw video format with a simple container. A file begins with
an plain-text line, containing the number of frames, the width, the height,
and the pixel format, all separated by a single regular blank space, without
and leading or tailing white space. After this line, which ends with an LF,
there is a NUL-byte followed by the 4 characters "uivf" (unportable, interim
video format). This head is followed by the video frame-by-frame with row-major
frames. Pixels are independently encoded, and are encoded unscaled CIE XYZ with
non-premultiplied alpha and without any transfer-function, with values stored
in native doubles or optionally in native floats. These two configurations are
the only options, but the container format is designed so this can be changed
arbitrarily in the future.
WWW: https://tools.suckless.org/blind/

View File

@ -0,0 +1,76 @@
bin/blind-arithm
bin/blind-colour-ciexyz
bin/blind-colour-srgb
bin/blind-compress
bin/blind-concat
bin/blind-crop
bin/blind-cut
bin/blind-decompress
bin/blind-dissolve
bin/blind-extend
bin/blind-flip
bin/blind-flop
bin/blind-from-image
bin/blind-from-text
bin/blind-from-video
bin/blind-gauss-blur
bin/blind-invert-luma
bin/blind-next-frame
bin/blind-read-head
bin/blind-repeat
bin/blind-reverse
bin/blind-rewrite-head
bin/blind-set-alpha
bin/blind-set-luma
bin/blind-set-saturation
bin/blind-single-colour
bin/blind-skip-pattern
bin/blind-split
bin/blind-stack
bin/blind-time-blur
bin/blind-to-image
bin/blind-to-text
bin/blind-to-video
bin/blind-translate
bin/blind-transpose
bin/blind-write-head
man/man1/blind-arithm.1.gz
man/man1/blind-colour-ciexyz.1.gz
man/man1/blind-colour-srgb.1.gz
man/man1/blind-compress.1.gz
man/man1/blind-concat.1.gz
man/man1/blind-crop.1.gz
man/man1/blind-cut.1.gz
man/man1/blind-decompress.1.gz
man/man1/blind-dissolve.1.gz
man/man1/blind-extend.1.gz
man/man1/blind-flip.1.gz
man/man1/blind-flop.1.gz
man/man1/blind-from-image.1.gz
man/man1/blind-from-text.1.gz
man/man1/blind-from-video.1.gz
man/man1/blind-gauss-blur.1.gz
man/man1/blind-invert-luma.1.gz
man/man1/blind-next-frame.1.gz
man/man1/blind-read-head.1.gz
man/man1/blind-repeat.1.gz
man/man1/blind-reverse.1.gz
man/man1/blind-rewrite-head.1.gz
man/man1/blind-rotate-180.1.gz
man/man1/blind-rotate-270.1.gz
man/man1/blind-rotate-90.1.gz
man/man1/blind-set-alpha.1.gz
man/man1/blind-set-luma.1.gz
man/man1/blind-set-saturation.1.gz
man/man1/blind-single-colour.1.gz
man/man1/blind-skip-pattern.1.gz
man/man1/blind-split.1.gz
man/man1/blind-stack.1.gz
man/man1/blind-time-blur.1.gz
man/man1/blind-to-image.1.gz
man/man1/blind-to-text.1.gz
man/man1/blind-to-video.1.gz
man/man1/blind-translate.1.gz
man/man1/blind-transpose.1.gz
man/man1/blind-write-head.1.gz
man/man7/blind.7.gz