Bug 14379 - New port: graphics/xmrm
Summary: New port: graphics/xmrm
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-10-17 21:30 UTC by Tobias Reifenberger
Modified: 2000-03-28 23:47 UTC (History)
0 users

See Also:


Attachments
patch-ac (1.79 KB, text/plain; charset=us-ascii)
1999-11-29 21:02 UTC, Tobias Reifenberger
no flags Details
patch-ad (687 bytes, text/plain; charset=us-ascii)
1999-11-29 21:02 UTC, Tobias Reifenberger
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Reifenberger 1999-10-17 21:30:01 UTC
        <Precise description of the problem (multiple lines)>

Fix: <How to correct or work around the problem, if known (multiple
lines)>
--------------8648393257C86D7DE634566B
Content-Type: application/x-shar;
 name="port.xmrm-171099.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="port.xmrm-171099.shar"



--------------8648393257C86D7DE634566B----grAamRCP2ohFDssaSJdHFifIKTwj42FanbASmsFrNiuvabuC
Content-Type: text/plain; name="file.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.shar"

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	xmrm
#	xmrm/Makefile
#	xmrm/patches
#	xmrm/patches/patch-aa
#	xmrm/patches/patch-ab
#	xmrm/patches/patch-ac
#	xmrm/patches/patch-ad
#	xmrm/files
#	xmrm/files/md5
#	xmrm/pkg
#	xmrm/pkg/PLIST
#	xmrm/pkg/COMMENT
#	xmrm/pkg/DESCR
#
echo c - xmrm
mkdir -p xmrm > /dev/null 2>&1
echo x - xmrm/Makefile
sed 's/^X//' >xmrm/Makefile << 'END-of-xmrm/Makefile'
X# New ports collection makefile for:	xmrm
X# Version required:	2.0
X# Date created:		Sa  01 May 1999 15:00:00 MET
X# Whom:			Tobias Reifenberger <treif@mayn.de>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	xmrm20_sources
XPKGNAME=	xmrm-2.0
XCATEGORIES=	graphics
XMASTER_SITES=	ftp://ftp.cg.tuwien.ac.at/pub/linux/xmrm \
X		ftp://ftp.uni-passau.de/mount/common.lib.archive.unix/Graphic/xmrm
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	treif@mayn.de
X
XRUN_DEPENDS=	mpeg:${PORTSDIR}/graphics/mpeg
XLIB_DEPENDS=	xforms.0:${PORTSDIR}/x11-toolkits/xforms \
X		Xpm.4:${PORTSDIR}/graphics/xpm
X
XWRKSRC=		${WRKDIR}
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/xmrm ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/xmrm_mpeg ${PREFIX}/bin
X
X.include <bsd.port.mk>
END-of-xmrm/Makefile
echo c - xmrm/patches
mkdir -p xmrm/patches > /dev/null 2>&1
echo x - xmrm/patches/patch-aa
sed 's/^X//' >xmrm/patches/patch-aa << 'END-of-xmrm/patches/patch-aa'
Xdiff -u ../xmrm.orig/Makefile ./Makefile
X--- ../xmrm.orig/Makefile  Tue Mar 10 00:00:00 1998
X+++ ./Makefile  Sat Sep 11 13:28:02 1999
X@@ -16,8 +16,8 @@
X #
X ##############################################################################
X 
X-CPP = g++
X-CC = gcc
X+CPP = c++
X+CC = cc
X 
X # -c: don't link yet
X # -g: produce debugging-information, don't use together with link_flag -s
X@@ -29,14 +29,14 @@
X #COMPILE_FLAGS = -O3 -m486 -c
X 
X # -O: normal optimization level  -c: don't link yet
X-COMPILE_FLAGS = -O -c
X+COMPILE_FLAGS = ${CFLAGS} -I${PREFIX}/include -I${X11BASE}/include -c
X 
X # -s: DESTROYS symbol-table
X-LINK_FLAGS = -s
X+#LINK_FLAGS = -s
X 
X 
X-SYSLIB = -L/usr/X11R6/lib -lX11 -lm
X-LIBS = -L/usr/lib -ltiff -ljpeg -lgz -lforms -lXpm $(SYSLIB)
X+SYSLIB = -L${X11BASE}/lib -lX11 -lm
X+LIBS = -L${PREFIX}/lib -ltiff -ljpeg -lz -lxforms -lXpm $(SYSLIB)
X 
X OBJECTS = xmrm.o xmrm_cb.o io.o morphvec.o init.o wavemorph.o wave_rts.o wave.o\
X           areas.o xmrm_main.o
END-of-xmrm/patches/patch-aa
echo x - xmrm/patches/patch-ab
sed 's/^X//' >xmrm/patches/patch-ab << 'END-of-xmrm/patches/patch-ab'
Xdiff -u ../xmrm.orig/const.h ./const.h
X--- ../xmrm.orig/const.h   Tue Mar 10 00:00:00 1998
X+++ ./const.h  Fri Apr 23 15:46:03 1999
X@@ -3,7 +3,7 @@
X //   Programming: Gerhard Waldh^vr, Andreas Artmann
X 
X #include <stdio.h>
X-#include <malloc.h>
X+#include <stdlib.h>
X #include <errno.h>
X #include <math.h>
X 
END-of-xmrm/patches/patch-ab
echo x - xmrm/patches/patch-ac
sed 's/^X//' >xmrm/patches/patch-ac << 'END-of-xmrm/patches/patch-ac'
Xdiff -u ../xmrm.orig/io.cc ./io.cc
X--- ../xmrm.orig/io.cc  Tue Mar 10 00:00:00 1998
X+++ ./io.cc     Sat Sep 11 13:26:28 1999
X@@ -87,7 +87,7 @@
X extern ControlClass control;
X 
X /* Constructor: */
X-ControlClass::ControlClass()
X+ControlClass::ControlClassInit()
X {
X   int i;
X  
Xdiff -u ../xmrm.orig/io.h ./io.h
X--- ../xmrm.orig/io.h   Tue Mar 10 00:00:00 1998
X+++ ./io.h      Sat Sep 11 13:26:42 1999
X@@ -39,7 +39,7 @@
X   char *URL_CG_Home;
X   char *URL_TU_Vienna;
X   
X-  ControlClass();
X+  ControlClassInit();
X   int GetDraw();
X   void SetDraw(int d);
X   void SetCursor(int Active, Window win);
Xdiff -u ../xmrm.orig/xmrm_main.cc ./xmrm_main.cc
X--- ../xmrm.orig/xmrm_main.cc   Tue Mar 10 00:00:00 1998
X+++ ./xmrm_main.cc      Sat Sep 11 13:27:07 1999
X@@ -6,7 +6,6 @@
X #include <tiffio.h>
X #include <stdlib.h>
X #include <unistd.h>
X-#include <malloc.h> //****************
X #include "xmrm.h"
X #include "io.h"
X #include "const.h"
X@@ -308,7 +307,7 @@
X   control.debug = 0;
X   
X   /* Init control: */
X-  control.ControlClass(); // call constructor
X+  control.ControlClassInit(); // call constructor
X   temp = control.URL_manual;
X 
X   while( (c=getopt(argc, argv, "hdm:p:")) != -1)
END-of-xmrm/patches/patch-ac
echo x - xmrm/patches/patch-ad
sed 's/^X//' >xmrm/patches/patch-ad << 'END-of-xmrm/patches/patch-ad'
Xdiff -u ../xmrm.orig/morphvec.cc ./morphvec.cc
X--- ../xmrm.orig/morphvec.cc    Tue Mar 10 00:00:00 1998
X+++ ./morphvec.cc       Sat May  8 15:21:25 1999
X@@ -9,6 +9,7 @@
X #include "io.h"
X #include "xmrm.h"
X //#include "areas.h"
X+#include <floatingpoint.h>
X 
X //static int oneliner = 1;
X 
X@@ -433,6 +434,10 @@
X void MorphVecClass::DrawVectorScal(FL_OBJECT *obj, int item, int mode, FL_COLOR col)
X {
X   double sc_x,sc_y;
X+
X+  /* don't exit on FPE */
X+  fpsetmask(0);
X+
X   sc_x = (double) obj->w / max_x; sc_y = (double) obj->h / max_y;
X   
X   if (item > nr_vec)
END-of-xmrm/patches/patch-ad
echo c - xmrm/files
mkdir -p xmrm/files > /dev/null 2>&1
echo x - xmrm/files/md5
sed 's/^X//' >xmrm/files/md5 << 'END-of-xmrm/files/md5'
XMD5 (xmrm20_sources.tgz) = 9deddfdf42a016edd36a9c0b7c1d94b3
END-of-xmrm/files/md5
echo c - xmrm/pkg
mkdir -p xmrm/pkg > /dev/null 2>&1
echo x - xmrm/pkg/PLIST
sed 's/^X//' >xmrm/pkg/PLIST << 'END-of-xmrm/pkg/PLIST'
Xbin/xmrm
Xbin/xmrm_mpeg
END-of-xmrm/pkg/PLIST
echo x - xmrm/pkg/COMMENT
sed 's/^X//' >xmrm/pkg/COMMENT << 'END-of-xmrm/pkg/COMMENT'
Xa image morphing/warping program
END-of-xmrm/pkg/COMMENT
echo x - xmrm/pkg/DESCR
sed 's/^X//' >xmrm/pkg/DESCR << 'END-of-xmrm/pkg/DESCR'
XFrom the manual...
X
XXMRM is an image morphing program written for XWindows. A special feature
Xof this program, which is not found in other morphing packages, is the
Xability to control the morphing speed of details in relation to the
Xmorphing speed of big features.
X
Xxmrm supports all Direct-Color-modes (Hi-Color, Real-Color: 15bpp,16bpp
Xand True-Color: 24bpp,32bpp), but it doesn't run with any Color-
XLookUpTable-mode (8bpp modes) !
X
XONLINE-MANUAL:		http://www.cg.tuwien.ac.at/~xmrm/
XThe XMRM-Homepage:	http://www.cg.tuwien.ac.at/research/ca/mrm/xmrm.html
END-of-xmrm/pkg/DESCR
exit
How-To-Repeat: 
        <Code/input/activities to reproduce the problem (multiple lines)>
Comment 1 Tobias Reifenberger 1999-11-29 21:02:51 UTC
Hi

GCC 2.95.2 broke the port. Attached are the new versions of two patch-files
- please use these when you test the port.

bye
-- 
Tobias Reifenberger -- treif@mayn.de -- DG1NGT
GEE e* dpu s:- a-- C+++ UB+++ L- W+ N+ w--- Y+ tv+ b++ D++ h++ r---
Comment 2 Ade Lovett freebsd_committer freebsd_triage 2000-03-28 23:46:15 UTC
State Changed
From-To: open->closed

New port committed, thanks!