summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-03-05 08:23:14 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-03-05 08:23:14 +0000
commit7e0cbf66738278aceaca3892060135d3f92212ca (patch)
treeb6da37ab12860403e8901b8af8030f26cb66de12 /graphics
parentThe tests are only working if compiled without -O. With -O (diff)
add flip 2.2.0
Load a sequence of TIFF files and play them back at a target frame rate
Notes
Notes: svn path=/head/; revision=55557
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/flip/Makefile35
-rw-r--r--graphics/flip/distinfo1
-rw-r--r--graphics/flip/files/patch-Config.cpp11
-rw-r--r--graphics/flip/files/patch-Makefile15
-rw-r--r--graphics/flip/pkg-comment1
-rw-r--r--graphics/flip/pkg-descr6
-rw-r--r--graphics/flip/pkg-plist1
8 files changed, 71 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index ff37fc20b217..a2fd6a56971e 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -53,6 +53,7 @@
SUBDIR += flashplayer
SUBDIR += flasm
SUBDIR += fli2gif
+ SUBDIR += flip
SUBDIR += fly
SUBDIR += fnlib
SUBDIR += fractorama
diff --git a/graphics/flip/Makefile b/graphics/flip/Makefile
new file mode 100644
index 000000000000..17d9da501035
--- /dev/null
+++ b/graphics/flip/Makefile
@@ -0,0 +1,35 @@
+# ex:ts=8
+# Ports collection makefile for: flip
+# Date created: Mar 4, 2002
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= flip
+PORTVERSION= 2.2.0
+CATEGORIES= graphics
+MASTER_SITES= http://www.reptilelabour.com/software/files/flip/
+
+MAINTAINER= ports@FreeBSD.org
+
+LIB_DEPENDS= tiff:${PORTSDIR}/graphics/tiff
+RUN_DEPENDS= mpeg_encode:${PORTSDIR}/graphics/mpeg_encode
+
+USE_QT_VER= 2
+WRKSRC= ${WRKDIR}/${DISTNAME:R}
+CFLAGS+= -I${LOCALBASE}/include
+MAKE_ENV= MOC="${MOC}" QTDIR="${X11BASE}"
+
+post-patch:
+ @${PERL} -pi -e "s,^CC,#CC,g ; s,^CXX,#CXX,g ; \
+ s,^CFLAGS,#CFLAGS,g ; s,^CXXFLAGS,#CXXFLAGS,g ; \
+ s,^MOC,#MOC,g ; s,lqt,lqt2,g ; \
+ s,/usr/X11R6,${X11BASE},g ; \
+ s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile
+ @${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Config.cpp
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/flip ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/graphics/flip/distinfo b/graphics/flip/distinfo
new file mode 100644
index 000000000000..42e17f9afd38
--- /dev/null
+++ b/graphics/flip/distinfo
@@ -0,0 +1 @@
+MD5 (flip-2.2.0.tar.gz) = f38bc69b794ae722e8b775f4c846a314
diff --git a/graphics/flip/files/patch-Config.cpp b/graphics/flip/files/patch-Config.cpp
new file mode 100644
index 000000000000..a7c4b7472270
--- /dev/null
+++ b/graphics/flip/files/patch-Config.cpp
@@ -0,0 +1,11 @@
+--- Config.cpp.orig Tue Mar 5 16:15:53 2002
++++ Config.cpp Tue Mar 5 16:16:50 2002
+@@ -16,7 +16,7 @@
+ flipFPS = MainWindow::F30;
+ loadFrames = 100;
+
+- mpegExec = "/usr/bin/mpeg_encode";
++ mpegExec = "%%LOCALBASE%%/bin/mpeg_encode";
+ mpegPattern = "IBBPBBPBBPBB";
+ mpegPSearch = 0;
+ mpegBSearch = 1;
diff --git a/graphics/flip/files/patch-Makefile b/graphics/flip/files/patch-Makefile
new file mode 100644
index 000000000000..3d31eeb04a96
--- /dev/null
+++ b/graphics/flip/files/patch-Makefile
@@ -0,0 +1,15 @@
+--- Makefile.orig Sun Jun 3 08:46:32 2001
++++ Makefile Tue Mar 5 16:07:48 2002
+@@ -11,10 +11,10 @@
+ CXX = g++
+ CFLAGS = -pipe -Wall -W -O2 -DNO_DEBUG
+ CXXFLAGS= -pipe -Wall -W -O2 -DNO_DEBUG
+-INCPATH = -I/usr/X11R6/include -I$(QTDIR)/include
++INCPATH = -I/usr/X11R6/include -I$(QTDIR)/include/qt2
+ LINK = g++
+ LFLAGS =
+-LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -ltiff -lqt -lXext -lX11 -lm
++LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -L%%LOCALBASE%%/lib -ltiff -lqt -lXext -lX11 -lm
+ MOC = $(QTDIR)/bin/moc
+ UIC = $(QTDIR)/bin/uic
+
diff --git a/graphics/flip/pkg-comment b/graphics/flip/pkg-comment
new file mode 100644
index 000000000000..fdf98be2e130
--- /dev/null
+++ b/graphics/flip/pkg-comment
@@ -0,0 +1 @@
+Load a sequence of TIFF files and play them back at a target frame rate
diff --git a/graphics/flip/pkg-descr b/graphics/flip/pkg-descr
new file mode 100644
index 000000000000..7d8bf367f01a
--- /dev/null
+++ b/graphics/flip/pkg-descr
@@ -0,0 +1,6 @@
+flip is a simple 'flipbook' for previewing TIFF animations. It requires
+large amounts of memory to be useful (a machine w/ 256MB, can load
+~500 320x240 frames without hitting swap). Frames can be scaled on load to
+use less memory.
+
+WWW: http://www.reptilelabour.com/software/flip/
diff --git a/graphics/flip/pkg-plist b/graphics/flip/pkg-plist
new file mode 100644
index 000000000000..9e9435b7cc7a
--- /dev/null
+++ b/graphics/flip/pkg-plist
@@ -0,0 +1 @@
+bin/flip