Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2002 16:53:48 +0100 (CET)
From:      Paul Everlund <tdv94ped@cs.umu.se>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/46147: 
Message-ID:  <200212091553.gB9Frm29081117@everlund.homeip.net>

next in thread | raw e-mail | index | archive | help

>Number:         46147
>Category:       ports
>Synopsis:       
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 09 08:00:13 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Paul Everlund
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
>Environment:
	System: FreeBSD freebsd.everlund.homeip.net 4.7-RELEASE
	FreeBSD 4.7-RELEASE #1: Sun Oct 13 07:35:27 CEST 2002
	su_paul@freebsd.everlund.homeip.net:/usr/obj/usr/src/sys/I686_CPU_KERNEL i386

>Description:
	(X)Medcon 0.8.2 -> (X)Medcon 0.8.8

	Did not do any diffs of the existing port-files as this is a major
        update.

	The patches now patch .in-files instead of .am-files.

	A "graphical" interface now presents the various configure 
	options. This required a rewrite of the ports Makefile.

	The pkg-plist is updated.

>How-To-Repeat:

>Fix:
--- xmedcon.shar begins here ---
# 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:
#
#	xmedcon
#	xmedcon/distinfo
#	xmedcon/files
#	xmedcon/files/patch-man::Makefile.in
#	xmedcon/files/patch-etc::Makefile.in
#	xmedcon/files/patch-source::Makefile.in
#	xmedcon/scripts
#	xmedcon/scripts/configure
#	xmedcon/Makefile
#	xmedcon/pkg-comment
#	xmedcon/pkg-descr
#	xmedcon/pkg-plist
#
echo c - xmedcon
mkdir -p xmedcon > /dev/null 2>&1
echo x - xmedcon/distinfo
sed 's/^X//' >xmedcon/distinfo << 'END-of-xmedcon/distinfo'
XMD5 (xmedcon-0.8.8.tar.gz) = 4d6a72506e35d12e73374f72e043bca2
END-of-xmedcon/distinfo
echo c - xmedcon/files
mkdir -p xmedcon/files > /dev/null 2>&1
echo x - xmedcon/files/patch-man::Makefile.in
sed 's/^X//' >xmedcon/files/patch-man::Makefile.in << 'END-of-xmedcon/files/patch-man::Makefile.in'
X--- man/Makefile.in.orig	Mon Dec  9 12:56:39 2002
X+++ man/Makefile.in	Mon Dec  9 12:52:38 2002
X@@ -180,6 +180,7 @@
X 
X AUTOMAKE_OPTIONS = gnu
X 
X+.if(DO_XSUPPORT)
X man_MANS = \
X  medcon.1 \
X  xmedcon.1 \
X@@ -191,6 +192,18 @@
X  m-gif.4 \
X  m-intf.4 \
X  m-inw.4
X+.else
X+man_MANS = \
X+ medcon.1 \
X+ xmedcon-config.1 \
X+ medcon.3 \
X+ m-acr.4 \
X+ m-anlz.4 \
X+ m-ecat.4 \
X+ m-gif.4 \
X+ m-intf.4 \
X+ m-inw.4
X+.endif
X 
X EXTRA_DIST = $(man_MANS)
X subdir = man
END-of-xmedcon/files/patch-man::Makefile.in
echo x - xmedcon/files/patch-etc::Makefile.in
sed 's/^X//' >xmedcon/files/patch-etc::Makefile.in << 'END-of-xmedcon/files/patch-etc::Makefile.in'
X--- etc/Makefile.in.orig	Sun Dec  8 01:39:58 2002
X+++ etc/Makefile.in	Mon Dec  9 13:14:55 2002
X@@ -180,13 +180,15 @@
X 
X AUTOMAKE_OPTIONS = gnu
X 
X+.if(DO_XSUPPORT)
X RC_FILES = \
X  xmedconrc \
X- xmedconrc.linux \
X- xmedconrc.win32
X-
X-
X-ICONS = xmedcon.ico xmedcon.png
X+ xmedconrc.linux
X+ICONS = xmedcon.png
X+.else
X+RC_FILES =
X+ICONS =
X+.endif
X 
X GTK_DIST = README $(RC_FILES) $(ICONS)
X 
END-of-xmedcon/files/patch-etc::Makefile.in
echo x - xmedcon/files/patch-source::Makefile.in
sed 's/^X//' >xmedcon/files/patch-source::Makefile.in << 'END-of-xmedcon/files/patch-source::Makefile.in'
X--- source/Makefile.in.orig	Mon Dec  9 15:03:20 2002
X+++ source/Makefile.in	Mon Dec  9 15:03:55 2002
X@@ -372,7 +372,7 @@
X  m-png.h
X 
X 
X-configheadersdir = $(prefix)/include
X+configheadersdir = $(prefix)/include/xmedcon
X configheaders_DATA = m-depend.h m-config.h
X 
X INCLUDES = $(DICM_INC) $(LJPG_INC) $(PNG_INC) $(XMEDCON_INC)
END-of-xmedcon/files/patch-source::Makefile.in
echo c - xmedcon/scripts
mkdir -p xmedcon/scripts > /dev/null 2>&1
echo x - xmedcon/scripts/configure
sed 's/^X//' >xmedcon/scripts/configure << 'END-of-xmedcon/scripts/configure'
X#!/bin/sh
X
Xif [ -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc ]; then
X	exit
Xfi
X
Xtempfile=`/usr/bin/mktemp -t checklist`
X
Xif [ "${BATCH}" ]; then
Xelse
X	/usr/bin/dialog --title "Configuration options: (X)Medcon" --clear \
X		--checklist "\n\
XPlease select desired options:" -1 -1 11 \
Xx11		"With X11" ON \
Xacr/nema	"With Acr/Nema 2.0" ON \
Xanalyze		"With Analyze (SPM)" ON \
Xconcorde	"With Concorde æPET" ON \
Xdicom		"With DICOM 3.0 (implies acr/nema)" ON \
Xdicom_ljpeg	"With DICOM 3.0 Lossless JPEG (implies acr/nema and dicom)" ON \
Xecat		"With ECAT 6.4" ON \
Xgif		"With GIF87a/89a" ON \
Xinterfile	"With InterFile 3.3" ON \
Xinw		"With INW (RUG)" ON \
Xpng		"With PNG" ON \
X2> $tempfile
X
X	retval=$?
X
X	if [ -s $tempfile ]; then
X		set `cat $tempfile`
X	fi
X	rm -f $tempfile
X
X	case $retval in
X		0)	if [ -z "$*" ]; then
X				echo "Nothing selected"
X			fi
X			;;
X		1)	echo "Cancel pressed."
X			exit 1
X			;;
X	esac
Xfi
X
X${MKDIR} ${WRKDIRPREFIX}${REALCURDIR}
Xecho "SCRIPT_RUN=yes" >${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X
Xwhile [ "$1" ]; do
X	case $1 in
X		\"x11\")
X			echo "WITH_X11=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			;;
X		\"acr/nema\")
X			echo "WITH_ACRNEMA=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			;;
X		\"analyze\")
X			echo "WITH_ANALYZE=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			;;
X		\"concorde\")
X			echo "WITH_CONCORDE=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			;;
X		\"dicom\")
X			echo "WITH_DICOM=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			;;
X		\"dicom_ljpeg\")
X			echo "WITH_ACRNEMA=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			echo "WITH_DICOM=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			echo "WITH_DICOM_LJPEG=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			;;
X		\"ecat\")
X			echo "WITH_ECAT=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			;;
X		\"gif\")
X			echo "WITH_GIF=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			;;
X		\"interfile\")
X			echo "WITH_INTERFILE=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			;;
X		\"inw\")
X			echo "WITH_INW=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			;;
X		\"png\")
X			echo "WITH_PNG=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			;;
X		*)
X			echo "Invalid option: $1"
X			rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			exit 1
X			;;
X	esac
X	shift
Xdone
END-of-xmedcon/scripts/configure
echo x - xmedcon/Makefile
sed 's/^X//' >xmedcon/Makefile << 'END-of-xmedcon/Makefile'
X# New ports collection makefile for:	xmedcon
X# Date created:		26 September 2002
X# Whom:			Paul Everlund
X#
X# $FreeBSD: ports/graphics/xmedcon/Makefile,v 1.1 2002/10/14 11:40:18 ijliao Exp $
X#
X
XPORTNAME=		xmedcon
XPORTVERSION=		0.8.8
XCATEGORIES=		converters graphics
XMASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	tdv94ped@cs.umu.se
X
XUSE_SUBMAKE=	yes
XUSE_LIBTOOL=	yes
XCONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
X		LDFLAGS="-L${LOCALBASE}/lib"
XINSTALLS_SHLIB=	yes
X
XSCRIPTS_ENV=	WRKDIRPREFIX="${WRKDIRPREFIX}" \
X		MKDIR="${MKDIR}" \
X		REALCURDIR=${.CURDIR}
X
Xpre-fetch:
X	@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
X
X.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
X.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
X.endif
X
Xpost-clean:
X	@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
X
X.if defined(WITH_X11)
XUSE_X_PREFIX=	yes
XUSE_GNOMENG=	yes
XUSE_GNOME=	gtk12 gdkpixbuf
XPLIST_SUB=	X11=""
X.else
XCONFIGURE_ARGS=	--disable-gui
XPKGNAMESUFFIX=	-nox11
XPLIST_SUB=	X11="@comment "
X.endif
X
X.if !defined(WITH_ACRNEMA) && !defined(WITH_DICOM)
XCONFIGURE_ARGS+=	--disable-acr
X.endif
X
X.if !defined(WITH_GIF)
XCONFIGURE_ARGS+=	--disable-gif
X.endif
X
X.if !defined(WITH_INW)
XCONFIGURE_ARGS+=	--disable-inw
X.endif
X
X.if !defined(WITH_ANALYZE)
XCONFIGURE_ARGS+=	--disable-anlz
X.endif
X
X.if !defined(WITH_CONCORDE)
XCONFIGURE_ARGS+=	--disable-conc
X.endif
X
X.if !defined(WITH_ECAT)
XCONFIGURE_ARGS+=	--disable-ecat
X.endif
X
X.if !defined(WITH_INTERFILE)
XCONFIGURE_ARGS+=	--disable-intf
X.endif
X
X.if !defined(WITH_DICOM) && !defined(WITH_DICOM_LJPEG)
XCONFIGURE_ARGS+=	--disable-dicom
X.endif
X
X.if !defined(WITH_DICOM_LJPEG)
XCONFIGURE_ARGS+=	--disable-ljpg
X.endif
X
X.if !defined(WITH_PNG)
XCONFIGURE_ARGS+=	--disable-png
X.else
XLIB_DEPENDS+=	png.5:${PORTSDIR}/graphics/png
X.endif
X
XCONFIGURE_ARGS+=	--includedir=${PREFIX}/include/xmedcon
X
XMAN1=	medcon.1 xmedcon-config.1
X.if defined(WITH_X11)
XMAN1+=	xmedcon.1
X.endif
X
XMAN3=	medcon.3
X
XMAN4=	m-acr.4 m-anlz.4 m-ecat.4 m-gif.4 m-intf.4 m-inw.4
X
X.include <bsd.port.mk>
END-of-xmedcon/Makefile
echo x - xmedcon/pkg-comment
sed 's/^X//' >xmedcon/pkg-comment << 'END-of-xmedcon/pkg-comment'
XA medical image conversion utility and library
END-of-xmedcon/pkg-comment
echo x - xmedcon/pkg-descr
sed 's/^X//' >xmedcon/pkg-descr << 'END-of-xmedcon/pkg-descr'
XThis project stands for Medical Image Conversion and is released under the
XGNU's (L)GPL license. It bundles the C sourcecode, a library, a flexible
Xcommand-line utility and a graphical front-end based on the amazing Gtk+
Xtoolkit.
X
XIts main purpose is image conversion, while preserving the most valuable
Xmedical study information. The currently supported formats are: Acr/Nema 2.0,
XAnalyze (SPM), Concorde/uPET, DICOM 3.0, Ecat/Matrix 6.4, InterFile 3.3
Xand PNG or animated Gif87a/89a towards desktop applications.
X
XWWW: http://xmedcon.sourceforge.net/
END-of-xmedcon/pkg-descr
echo x - xmedcon/pkg-plist
sed 's/^X//' >xmedcon/pkg-plist << 'END-of-xmedcon/pkg-plist'
Xbin/medcon
Xbin/xmedcon-config
X%%X11%%bin/xmedcon
X%%X11%%etc/xmedcon.png
X%%X11%%etc/xmedconrc
X%%X11%%etc/xmedconrc.linux
Xinclude/xmedcon/m-depend.h
Xinclude/xmedcon/m-config.h
Xinclude/xmedcon/m-acr.h
Xinclude/xmedcon/m-algori.h
Xinclude/xmedcon/m-anlz.h
Xinclude/xmedcon/m-color.h
Xinclude/xmedcon/m-conc.h
Xinclude/xmedcon/m-debug.h
Xinclude/xmedcon/m-defs.h
Xinclude/xmedcon/m-dicm.h
Xinclude/xmedcon/m-ecat64.h
Xinclude/xmedcon/m-error.h
Xinclude/xmedcon/m-fancy.h
Xinclude/xmedcon/m-files.h
Xinclude/xmedcon/m-getopt.h
Xinclude/xmedcon/m-gif.h
Xinclude/xmedcon/m-global.h
Xinclude/xmedcon/m-intf.h
Xinclude/xmedcon/m-inw.h
Xinclude/xmedcon/m-matrix.h
Xinclude/xmedcon/m-pixels.h
Xinclude/xmedcon/m-png.h
Xinclude/xmedcon/m-qmedian.h
Xinclude/xmedcon/m-raw.h
Xinclude/xmedcon/m-rslice.h
Xinclude/xmedcon/m-sigfpe.h
Xinclude/xmedcon/m-split.h
Xinclude/xmedcon/m-stack.h
Xinclude/xmedcon/m-structs.h
Xinclude/xmedcon/m-transf.h
Xinclude/xmedcon/m-vifi.h
Xinclude/xmedcon/m-xdummy.h
Xinclude/xmedcon/m-xtract.h
Xinclude/xmedcon/medcon.h
X@dirrm include/xmedcon
Xlib/libmdc.a
Xlib/libmdc.la
Xlib/libmdc.so
Xlib/libmdc.so.2
Xshare/aclocal/xmedcon.m4
END-of-xmedcon/pkg-plist
exit
--- xmedcon.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212091553.gB9Frm29081117>