aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorade <ade@FreeBSD.org>2000-03-29 06:44:14 +0800
committerade <ade@FreeBSD.org>2000-03-29 06:44:14 +0800
commit1bf4dea8646f7f4adaab412268c1d85a7f7fa255 (patch)
tree479209a661085aa449832875f945b6770a525768 /graphics
parentbf66b0c072396c523876c6883da344e7a984a231 (diff)
downloadfreebsd-ports-gnome-1bf4dea8646f7f4adaab412268c1d85a7f7fa255.tar.gz
freebsd-ports-gnome-1bf4dea8646f7f4adaab412268c1d85a7f7fa255.tar.zst
freebsd-ports-gnome-1bf4dea8646f7f4adaab412268c1d85a7f7fa255.zip
xmrm (X Multi Resoultion image Metamorphosis) is an easy-to-use
morphing/warping program akin to xmorph, with some nice features, like MPEG video creation. PR: 14379 Submitted by: Tobias Reifenberger <treif@mayn.de>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/xmrm/Makefile29
-rw-r--r--graphics/xmrm/distinfo1
-rw-r--r--graphics/xmrm/files/patch-aa32
-rw-r--r--graphics/xmrm/files/patch-ab11
-rw-r--r--graphics/xmrm/files/patch-ac20
-rw-r--r--graphics/xmrm/files/patch-ad11
-rw-r--r--graphics/xmrm/files/patch-ae19
-rw-r--r--graphics/xmrm/files/patch-af30
-rw-r--r--graphics/xmrm/files/patch-ag20
-rw-r--r--graphics/xmrm/pkg-comment1
-rw-r--r--graphics/xmrm/pkg-descr13
-rw-r--r--graphics/xmrm/pkg-plist2
13 files changed, 190 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index fa14a4afb887..40be3bb9c25e 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -174,6 +174,7 @@
SUBDIR += xmorph
SUBDIR += xmountains
SUBDIR += xmovie
+ SUBDIR += xmrm
SUBDIR += xpaint
SUBDIR += xpdf
SUBDIR += xpm
diff --git a/graphics/xmrm/Makefile b/graphics/xmrm/Makefile
new file mode 100644
index 000000000000..19fa2e8bf714
--- /dev/null
+++ b/graphics/xmrm/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: xmrm
+# Version required: 2.0
+# Date created: Sa 01 May 1999 15:00:00 MET
+# Whom: Tobias Reifenberger <treif@mayn.de>
+#
+# $FreeBSD$
+#
+
+DISTNAME= xmrm20_sources
+PKGNAME= xmrm-2.0
+CATEGORIES= graphics
+MASTER_SITES= ftp://ftp.cg.tuwien.ac.at/pub/linux/xmrm/ \
+ ftp://ftp.uni-passau.de/mount/common.lib.archive.unix/Graphic/xmrm/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= treif@mayn.de
+
+RUN_DEPENDS= mpeg:${PORTSDIR}/graphics/mpeg
+LIB_DEPENDS= xforms.0:${PORTSDIR}/x11-toolkits/xforms \
+ Xpm.4:${PORTSDIR}/graphics/xpm \
+ tiff.4:${PORTSDIR}/graphics/tiff
+
+WRKSRC= ${WRKDIR}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/xmrm ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/xmrm_mpeg ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/graphics/xmrm/distinfo b/graphics/xmrm/distinfo
new file mode 100644
index 000000000000..432983058520
--- /dev/null
+++ b/graphics/xmrm/distinfo
@@ -0,0 +1 @@
+MD5 (xmrm20_sources.tgz) = 9deddfdf42a016edd36a9c0b7c1d94b3
diff --git a/graphics/xmrm/files/patch-aa b/graphics/xmrm/files/patch-aa
new file mode 100644
index 000000000000..87ffe0fe4db0
--- /dev/null
+++ b/graphics/xmrm/files/patch-aa
@@ -0,0 +1,32 @@
+--- Makefile.orig Mon Mar 9 17:00:00 1998
++++ Makefile Tue Mar 28 15:23:34 2000
+@@ -16,8 +16,8 @@
+ #
+ ##############################################################################
+
+-CPP = g++
+-CC = gcc
++CPP = c++
++CC = cc
+
+ # -c: don't link yet
+ # -g: produce debugging-information, don't use together with link_flag -s
+@@ -29,14 +29,14 @@
+ #COMPILE_FLAGS = -O3 -m486 -c
+
+ # -O: normal optimization level -c: don't link yet
+-COMPILE_FLAGS = -O -c
++COMPILE_FLAGS = ${CFLAGS} -I${PREFIX}/include -I${X11BASE}/include -c
+
+ # -s: DESTROYS symbol-table
+-LINK_FLAGS = -s
++#LINK_FLAGS = -s
+
+
+-SYSLIB = -L/usr/X11R6/lib -lX11 -lm
+-LIBS = -L/usr/lib -ltiff -ljpeg -lgz -lforms -lXpm $(SYSLIB)
++SYSLIB = -L${X11BASE}/lib -lX11 -lm
++LIBS = -L${PREFIX}/lib -ltiff -ljpeg -lz -lxforms -lXpm $(SYSLIB)
+
+ OBJECTS = xmrm.o xmrm_cb.o io.o morphvec.o init.o wavemorph.o wave_rts.o wave.o\
+ areas.o xmrm_main.o
diff --git a/graphics/xmrm/files/patch-ab b/graphics/xmrm/files/patch-ab
new file mode 100644
index 000000000000..6403b6168169
--- /dev/null
+++ b/graphics/xmrm/files/patch-ab
@@ -0,0 +1,11 @@
+--- const.h.orig Mon Mar 9 17:00:00 1998
++++ const.h Tue Mar 28 15:23:34 2000
+@@ -3,7 +3,7 @@
+ // Programming: Gerhard Waldhör, Andreas Artmann
+
+ #include <stdio.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <errno.h>
+ #include <math.h>
+
diff --git a/graphics/xmrm/files/patch-ac b/graphics/xmrm/files/patch-ac
new file mode 100644
index 000000000000..9d77d4929ef3
--- /dev/null
+++ b/graphics/xmrm/files/patch-ac
@@ -0,0 +1,20 @@
+--- io.cc.orig Mon Mar 9 17:00:00 1998
++++ io.cc Tue Mar 28 15:27:12 2000
+@@ -87,7 +87,7 @@
+ extern ControlClass control;
+
+ /* Constructor: */
+-ControlClass::ControlClass()
++void ControlClass::ControlClassInit()
+ {
+ int i;
+
+@@ -1720,7 +1720,7 @@
+ // extension--;
+
+ i=0;
+- number = ".000.";
++ strcpy(number, ".000.");
+ while ( !(extension = strstr(extension,number)) && i<=999 )
+ {
+ i++;
diff --git a/graphics/xmrm/files/patch-ad b/graphics/xmrm/files/patch-ad
new file mode 100644
index 000000000000..903d7b33259f
--- /dev/null
+++ b/graphics/xmrm/files/patch-ad
@@ -0,0 +1,11 @@
+--- io.h.orig Mon Mar 9 17:00:00 1998
++++ io.h Tue Mar 28 15:24:54 2000
+@@ -39,7 +39,7 @@
+ char *URL_CG_Home;
+ char *URL_TU_Vienna;
+
+- ControlClass();
++ void ControlClassInit();
+ int GetDraw();
+ void SetDraw(int d);
+ void SetCursor(int Active, Window win);
diff --git a/graphics/xmrm/files/patch-ae b/graphics/xmrm/files/patch-ae
new file mode 100644
index 000000000000..70f7a3dae5df
--- /dev/null
+++ b/graphics/xmrm/files/patch-ae
@@ -0,0 +1,19 @@
+--- xmrm_main.cc.orig Mon Mar 9 17:00:00 1998
++++ xmrm_main.cc Tue Mar 28 15:23:34 2000
+@@ -6,7 +6,6 @@
+ #include <tiffio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+-#include <malloc.h> //****************
+ #include "xmrm.h"
+ #include "io.h"
+ #include "const.h"
+@@ -308,7 +307,7 @@
+ control.debug = 0;
+
+ /* Init control: */
+- control.ControlClass(); // call constructor
++ control.ControlClassInit(); // call constructor
+ temp = control.URL_manual;
+
+ while( (c=getopt(argc, argv, "hdm:p:")) != -1)
diff --git a/graphics/xmrm/files/patch-af b/graphics/xmrm/files/patch-af
new file mode 100644
index 000000000000..175c7abc11db
--- /dev/null
+++ b/graphics/xmrm/files/patch-af
@@ -0,0 +1,30 @@
+--- morphvec.cc.orig Mon Mar 9 17:00:00 1998
++++ morphvec.cc Tue Mar 28 15:31:48 2000
+@@ -9,6 +9,7 @@
+ #include "io.h"
+ #include "xmrm.h"
+ //#include "areas.h"
++#include <floatingpoint.h>
+
+ //static int oneliner = 1;
+
+@@ -17,7 +18,7 @@
+
+ extern Display *disp;
+
+-extern max_x,max_y;
++extern int max_x,max_y;
+ extern ControlClass control;
+ extern VisualInfoClass vis;
+ extern WindowClass *s_win, *d_win;
+@@ -433,6 +434,10 @@
+ void MorphVecClass::DrawVectorScal(FL_OBJECT *obj, int item, int mode, FL_COLOR col)
+ {
+ double sc_x,sc_y;
++
++ /* don't exit on FPE */
++ fpsetmask(0);
++
+ sc_x = (double) obj->w / max_x; sc_y = (double) obj->h / max_y;
+
+ if (item > nr_vec)
diff --git a/graphics/xmrm/files/patch-ag b/graphics/xmrm/files/patch-ag
new file mode 100644
index 000000000000..3478c3023fae
--- /dev/null
+++ b/graphics/xmrm/files/patch-ag
@@ -0,0 +1,20 @@
+--- xmrm_mpeg_main.cc.orig Mon Mar 9 17:00:00 1998
++++ xmrm_mpeg_main.cc Tue Mar 28 15:37:11 2000
+@@ -68,7 +68,7 @@
+ {
+ int count = 0;
+
+- backup_class->number_str = ".000.";
++ strcpy(backup_class->number_str, ".000.");
+
+ while ( !(*ext = strstr(fname_only,backup_class->number_str)) && (count <= MAX_PIC_NUM) )
+ {
+@@ -417,7 +417,7 @@
+ // Check for even picture size
+ if ( (tif_w % 2) || (tif_h % 2) )
+ {
+- work_class->even = ".even";
++ strcpy(work_class->even,".even");
+ if ( Even_Size( tif, tif_w, tif_h) )
+ return 1;
+ }
diff --git a/graphics/xmrm/pkg-comment b/graphics/xmrm/pkg-comment
new file mode 100644
index 000000000000..e698255476c2
--- /dev/null
+++ b/graphics/xmrm/pkg-comment
@@ -0,0 +1 @@
+a image morphing/warping program
diff --git a/graphics/xmrm/pkg-descr b/graphics/xmrm/pkg-descr
new file mode 100644
index 000000000000..fbfeb84598de
--- /dev/null
+++ b/graphics/xmrm/pkg-descr
@@ -0,0 +1,13 @@
+From the manual...
+
+XMRM is an image morphing program written for XWindows. A special feature
+of this program, which is not found in other morphing packages, is the
+ability to control the morphing speed of details in relation to the
+morphing speed of big features.
+
+xmrm supports all Direct-Color-modes (Hi-Color, Real-Color: 15bpp,16bpp
+and True-Color: 24bpp,32bpp), but it doesn't run with any Color-
+LookUpTable-mode (8bpp modes) !
+
+ONLINE-MANUAL: http://www.cg.tuwien.ac.at/~xmrm/
+The XMRM-Homepage: http://www.cg.tuwien.ac.at/research/ca/mrm/xmrm.html
diff --git a/graphics/xmrm/pkg-plist b/graphics/xmrm/pkg-plist
new file mode 100644
index 000000000000..3a4b374fb33d
--- /dev/null
+++ b/graphics/xmrm/pkg-plist
@@ -0,0 +1,2 @@
+bin/xmrm
+bin/xmrm_mpeg