aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2014-12-05 16:32:18 +0800
committerdanfe <danfe@FreeBSD.org>2014-12-05 16:32:18 +0800
commit25ccff1659e002a380541797d8bd590c9b2645fc (patch)
treeb902da258ac56f75a38dba43b4e3546e062884b3 /graphics
parentc21016116eb26327e2927044cd76ef2b47e902bb (diff)
downloadfreebsd-ports-gnome-25ccff1659e002a380541797d8bd590c9b2645fc.tar.gz
freebsd-ports-gnome-25ccff1659e002a380541797d8bd590c9b2645fc.tar.zst
freebsd-ports-gnome-25ccff1659e002a380541797d8bd590c9b2645fc.zip
- Resurrect, unbreak, stagify, etc.
- Requires GNU make to build, add it to USES - Links to libXext.so, thus amend USE_XORG - Contract MASTER_SITES, cleanup pkg-plist
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/seom/Makefile51
-rw-r--r--graphics/seom/distinfo2
-rw-r--r--graphics/seom/files/patch-Makefile68
-rw-r--r--graphics/seom/files/patch-seom.pc.in15
-rw-r--r--graphics/seom/files/patch-warnings25
-rw-r--r--graphics/seom/pkg-descr6
-rw-r--r--graphics/seom/pkg-plist15
8 files changed, 183 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 00d6d481f273..192cef85cab3 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -954,6 +954,7 @@
SUBDIR += sdl_ttf
SUBDIR += seam-carving-gui
SUBDIR += seejpeg
+ SUBDIR += seom
SUBDIR += separate
SUBDIR += seq2gif
SUBDIR += shared-color-profiles
diff --git a/graphics/seom/Makefile b/graphics/seom/Makefile
new file mode 100644
index 000000000000..3ed86377b672
--- /dev/null
+++ b/graphics/seom/Makefile
@@ -0,0 +1,51 @@
+# Created by: Bruce M Simpson <bms@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= seom
+PORTVERSION= 2010011201
+CATEGORIES= graphics
+MASTER_SITES= LOCAL/bms
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Real-time capture library for OpenGL applications
+
+LICENSE= GPLv2
+
+ONLY_FOR_ARCHS= i386 amd64
+ONLY_FOR_ARCHS_REASON= not yet ported to anything except i386 and amd64
+
+USES= gmake tar:bzip2
+USE_XORG= x11 xv xext
+USE_GL= gl
+USE_LDCONFIG= yes
+MAKE_ENV= DATADIR="${DATADIR}"
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == i386 || ${ARCH} == amd64
+BUILD_DEPENDS+= yasm:${PORTSDIR}/devel/yasm
+.endif
+
+post-patch:
+ @${ECHO_CMD} 1.0-196 > ${WRKSRC}/VERSION
+
+#
+# To roll snapshot: as bms: make BOOTSTRAP=defined fetch
+#
+.if defined(BOOTSTRAP)
+FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion
+SVN_REV= 196 # svn tip at epoch 2009120801
+SVNROOT_URI= https://devel.neopsis.com/svn/seom
+
+do-fetch:
+ ${MKDIR} ${WRKDIR}
+ svn export -r ${SVN_REV} ${SVNROOT_URI}/trunk ${WRKSRC}
+ cd ${WRKDIR}; tar cvfy ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME}
+.if ${USER} == bms
+ ${CHMOD} ugo+r ${DISTDIR}/${DISTNAME}.tar.bz2
+ scp -p ${DISTDIR}/${DISTNAME}.tar.bz2 \
+ freefall.freebsd.org:public_distfiles/
+.endif
+.endif # defined(BOOTSTRAP)
+
+.include <bsd.port.post.mk>
diff --git a/graphics/seom/distinfo b/graphics/seom/distinfo
new file mode 100644
index 000000000000..75ea6053e4a0
--- /dev/null
+++ b/graphics/seom/distinfo
@@ -0,0 +1,2 @@
+SHA256 (seom-2010011201.tar.bz2) = fcfb18f4aaf6f221eef1ea765fbbec965fb6180ac35879f9a3a19319a8f20bb0
+SIZE (seom-2010011201.tar.bz2) = 24242
diff --git a/graphics/seom/files/patch-Makefile b/graphics/seom/files/patch-Makefile
new file mode 100644
index 000000000000..437459fb7156
--- /dev/null
+++ b/graphics/seom/files/patch-Makefile
@@ -0,0 +1,68 @@
+--- Makefile.orig 2007-03-27 19:23:25 UTC
++++ Makefile
+@@ -1,35 +1,43 @@
++.SUFFIXES: .c .o .asm
+
+ MAJOR = 0
+ LIBRARY = libseom.so
+
+-DESTDIR =
++DESTDIR ?=
++
++# XXX override passed in
+ LIBDIR = lib
++LIBDATADIR = libdata
+
+-CC = gcc
++CC ?= gcc
+ ASM = yasm
+
+-CFLAGS = -Iinclude -std=c99
++CFLAGS += -Iinclude -std=c99
+ LDFLAGS = -Wl,--as-needed
+
+-include config.make
++###include config.make
++
++ARCH = C
++CFLAGS += -I${LOCALBASE}/include
++LDFLAGS += -L${LOCALBASE}/lib
+
+ OBJS = src/buffer.o src/client.o src/codec.o src/frame.o src/opengl.o \
+- src/server.o src/stream.o src/arch/$(ARCH)/frame.o
++ src/server.o src/stream.o src/arch/$(subst i3,x,$(ARCH))/frame.o
+
+ APPS = filter player server
+-playerLIBS = -lX11 -lXv
++playerLIBS = -lX11 -lXv -lXext
+
+ .PHONY: all clean install
+ all: $(LIBRARY) $(APPS)
+
+ %.o: %.asm
+- $(ASM) -m $(ARCH) -f elf -o $@ $<
++ $(ASM) -m $(subst i3,x,$(ARCH)) -f elf -o $@ $<
+
+ %.o: %.c
+ $(CC) $(CFLAGS) -fPIC -c -o $@ $<
+
+ $(LIBRARY): $(OBJS)
+- $(CC) -shared $(LDFLAGS) -Wl,-soname,$@.$(MAJOR) -o $@ $(OBJS) -ldl -lpthread
++ $(CC) -shared $(LDFLAGS) -Wl,-soname,$@.$(MAJOR) -o $@ $(OBJS) -lpthread
+
+ $(APPS): $(LIBRARY)
+ $(CC) $(CFLAGS) $(LDFLAGS) -L. -o $@ src/$@/main.c -lseom $($@LIBS)
+@@ -39,11 +47,11 @@ seom.pc: seom.pc.in
+
+ inst = install -m 755 -d $(DESTDIR)$(3); install -m $(1) $(2) $(DESTDIR)$(3)$(if $(4),/$(4));
+ install: $(LIBRARY) $(APPS) seom.pc
+- $(call inst,644,seom.pc,$(PREFIX)/$(LIBDIR)/pkgconfig)
++ $(call inst,644,seom.pc,$(PREFIX)/$(LIBDATADIR)/pkgconfig)
+ $(call inst,755,$(LIBRARY),$(PREFIX)/$(LIBDIR),$(LIBRARY).$(MAJOR))
+ ln -sf $(LIBRARY).$(MAJOR) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(LIBRARY)
+
+- $(call inst,644,art/seom.svg,$(PREFIX)/share/seom,seom.svg)
++ $(call inst,644,art/seom.svg,$(DATADIR),seom.svg)
+ $(call inst,644,include/seom/*,$(PREFIX)/include/seom)
+ $(call inst,755,src/scripts/backup,$(PREFIX)/bin,seom-backup)
+ $(foreach app,$(APPS),$(call inst,755,$(app),$(PREFIX)/bin,seom-$(app)))
diff --git a/graphics/seom/files/patch-seom.pc.in b/graphics/seom/files/patch-seom.pc.in
new file mode 100644
index 000000000000..b95d9052c69a
--- /dev/null
+++ b/graphics/seom/files/patch-seom.pc.in
@@ -0,0 +1,15 @@
+--- seom.pc.in.orig 2007-01-19 15:04:13 UTC
++++ seom.pc.in
+@@ -1,9 +1,9 @@
+ #!/bin/sh
+
+-if which svn &>/dev/null && svn info &>/dev/null; then
+- VERSION="1.0-$(svn info | grep Revision | sed 's#Revision: ##')"
+-elif [ -e VERSION ]; then
++if [ -e VERSION ]; then
+ VERSION=$(cat VERSION 2>/dev/null)
++elif which svn &>/dev/null && svn info &>/dev/null; then
++ VERSION="1.0-$(svn info | grep Revision | sed 's#Revision: ##')"
+ else
+ exit
+ fi
diff --git a/graphics/seom/files/patch-warnings b/graphics/seom/files/patch-warnings
new file mode 100644
index 000000000000..51796c4f6523
--- /dev/null
+++ b/graphics/seom/files/patch-warnings
@@ -0,0 +1,25 @@
+--- src/stream.c 2007-03-27 15:23:25.000000000 -0400
++++ src/stream.c 2013-02-07 12:35:18.000000000 -0500
+@@ -43,5 +43,5 @@
+
+ stream->fd = socket(AF_INET, SOCK_STREAM, 0);
+- connect(stream->fd, &addr, sizeof(addr));
++ connect(stream->fd, (struct sockaddr *)&addr, sizeof(addr));
+ } else if (strncmp(spec, "ipv6://", 7) == 0) {
+ fprintf(stderr, "IPv6 unsupported !\n");
+--- src/server.c 2006-10-17 07:12:15.000000000 -0400
++++ src/server.c 2013-02-07 12:36:56.000000000 -0500
+@@ -64,5 +64,5 @@
+ addr.sin_addr.s_addr = htonl(INADDR_ANY);
+
+- bind(server->socket, &addr, sizeof(addr));
++ bind(server->socket, (struct sockaddr *)&addr, sizeof(addr));
+ listen(server->socket, 1);
+
+@@ -80,5 +80,5 @@
+ socklen_t len = sizeof(addr);
+
+- int sockfd = accept(server->socket, &addr, &len);
++ int sockfd = accept(server->socket, (struct sockaddr *)&addr, &len);
+ if (sockfd < 0) {
+ return;
diff --git a/graphics/seom/pkg-descr b/graphics/seom/pkg-descr
new file mode 100644
index 000000000000..7d6c48cf927e
--- /dev/null
+++ b/graphics/seom/pkg-descr
@@ -0,0 +1,6 @@
+Yukon is a set of libraries and applications that are designed to
+capture realtime videos of OpenGL applications (games). The original
+design idea is based on Anandtech's FrameGetter, but was extended
+to suit today's high-performance computers.
+
+WWW: https://github.com/wereHamster/yukon
diff --git a/graphics/seom/pkg-plist b/graphics/seom/pkg-plist
new file mode 100644
index 000000000000..bbb9610c704d
--- /dev/null
+++ b/graphics/seom/pkg-plist
@@ -0,0 +1,15 @@
+bin/seom-backup
+bin/seom-filter
+bin/seom-player
+bin/seom-server
+lib/libseom.so
+lib/libseom.so.0
+libdata/pkgconfig/seom.pc
+include/seom/buffer.h
+include/seom/client.h
+include/seom/codec.h
+include/seom/frame.h
+include/seom/seom.h
+include/seom/server.h
+include/seom/stream.h
+%%DATADIR%%/seom.svg