The project stands for Medical Image Conversion.
Released under the GPL licence, it comes with the full C-source code of the library, a flexible command-line utility and a neat graphical front-end using the Gtk+ toolkit. The supported formats are: Acr/Nema 2.0, Analyze (SPM), DICOM 3.0, Ecat/Matrix 6.4, InterFile3.3 and Gif87a/89a. The program also allows to read unsupported files without compression, to print pixel values or to extract/reorder specified images. It is possible to retrieve the raw binary/ascii image arrays or to write annimated GIFs for desktop applications. The library could be used as a framework for your own image formats. From: Tom Knienieder <tom@knienieder.com>
This commit is contained in:
parent
9e3a05c162
commit
eb03298fc4
27
graphics/xmedcon/Makefile
Normal file
27
graphics/xmedcon/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2000/12/26 12:35:05 reinhard Exp $
|
||||
|
||||
DISTNAME= xmedcon-0.5.2
|
||||
CATEGORIES= graphics
|
||||
NEED_VERSION= 1.346
|
||||
|
||||
MASTER_SITES= http://download.sourceforge.net/xmedcon/
|
||||
|
||||
HOMEPAGE= http://xmedcon.sourceforge.net
|
||||
|
||||
MAINTAINER= Tom Knienieder <tom@knienieder.com>
|
||||
|
||||
LIB_DEPENDS= gdk_pixbuf::graphics/gdk-pixbuf \
|
||||
gtk.1.2::x11/gtk+
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS+= --enable-static
|
||||
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
.include <bsd.port.mk>
|
3
graphics/xmedcon/files/md5
Normal file
3
graphics/xmedcon/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (xmedcon-0.5.2.tar.gz) = ba7fb47089715c345a8ff43fdb19c6a6
|
||||
RMD160 (xmedcon-0.5.2.tar.gz) = 0e8aada2450348ddeb7086686038263746013c06
|
||||
SHA1 (xmedcon-0.5.2.tar.gz) = 3a1934610b454dc4a529348358832cc54688c1d7
|
225
graphics/xmedcon/patches/patch-configure
Normal file
225
graphics/xmedcon/patches/patch-configure
Normal file
@ -0,0 +1,225 @@
|
||||
--- configure.orig Mon Dec 25 19:19:34 2000
|
||||
+++ configure Mon Dec 25 19:22:21 2000
|
||||
@@ -555,206 +555,22 @@ MEDCON_LIBVERS="(X)${MEDCON_PRGR} ${MEDC
|
||||
|
||||
|
||||
|
||||
-echo "BEGIN USER INPUT:"
|
||||
-echo $ac_n "Check long long type enabled? ""$ac_c"
|
||||
-if eval "test \"`echo '$''{'mdc_cv_lnglngcheck'+set}'`\" = set"; then
|
||||
- echo $ac_n "(cached) $ac_c" 1>&6
|
||||
-else
|
||||
- mdc_cv_lnglngcheck=`
|
||||
-read answ
|
||||
-if test x$answ = xn -o x$answ = xno -o x$answ = xN -o x$answ = xNO;
|
||||
-then
|
||||
- echo "no"
|
||||
-else
|
||||
- echo "yes"
|
||||
-fi
|
||||
-`
|
||||
-fi
|
||||
-
|
||||
-echo "$ac_t""${mdc_cv_lnglngcheck}" 1>&6
|
||||
-echo""
|
||||
-
|
||||
-echo $ac_n "MedCon with X-support enabled? ""$ac_c"
|
||||
-if eval "test \"`echo '$''{'mdc_cv_xsupport'+set}'`\" = set"; then
|
||||
- echo $ac_n "(cached) $ac_c" 1>&6
|
||||
-else
|
||||
- mdc_cv_xsupport=`
|
||||
-read answ
|
||||
-if test x$answ = xn -o x$answ = xno -o x$answ = xN -o x$answ = xNO;
|
||||
-then
|
||||
- echo "no"
|
||||
-else
|
||||
- echo "yes"
|
||||
-fi
|
||||
-`
|
||||
-fi
|
||||
-
|
||||
-echo "$ac_t""${mdc_cv_xsupport}" 1>&6
|
||||
-echo ""
|
||||
-
|
||||
-echo $ac_n "Format Acr/Nema 2.0 enabled? ""$ac_c"
|
||||
-if eval "test \"`echo '$''{'mdc_cv_include_acr'+set}'`\" = set"; then
|
||||
- echo $ac_n "(cached) $ac_c" 1>&6
|
||||
-else
|
||||
- mdc_cv_include_acr=`
|
||||
-read answ
|
||||
-if test x$answ = xn -o x$answ = xno -o x$answ = xN -o x$answ = xNO;
|
||||
-then
|
||||
- echo "no"
|
||||
-else
|
||||
- echo "yes"
|
||||
-fi
|
||||
-`
|
||||
-fi
|
||||
-
|
||||
-if test x$mdc_cv_include_acr = xyes; then
|
||||
- ENABLE_ACR=1
|
||||
-else
|
||||
- ENABLE_ACR=0
|
||||
-fi
|
||||
-echo "$ac_t""${mdc_cv_include_acr}" 1>&6
|
||||
-
|
||||
-echo $ac_n "Format Gif87a/89a enabled? ""$ac_c"
|
||||
-if eval "test \"`echo '$''{'mdc_cv_include_gif'+set}'`\" = set"; then
|
||||
- echo $ac_n "(cached) $ac_c" 1>&6
|
||||
-else
|
||||
- mdc_cv_include_gif=`
|
||||
-read answ
|
||||
-if test x$answ = xn -o x$answ = xno -o x$answ = xN -o x$answ = xNO;
|
||||
-then
|
||||
- echo "no"
|
||||
-else
|
||||
- echo "yes"
|
||||
-fi
|
||||
-`
|
||||
-fi
|
||||
-
|
||||
-if test x$mdc_cv_include_gif = xyes; then
|
||||
- ENABLE_GIF=1
|
||||
-else
|
||||
- ENABLE_GIF=0
|
||||
-fi
|
||||
-echo "$ac_t""${mdc_cv_include_gif}" 1>&6
|
||||
-
|
||||
-echo $ac_n "Format INW (RUG) enabled? ""$ac_c"
|
||||
-if eval "test \"`echo '$''{'mdc_cv_include_inw'+set}'`\" = set"; then
|
||||
- echo $ac_n "(cached) $ac_c" 1>&6
|
||||
-else
|
||||
- mdc_cv_include_inw=`
|
||||
-read answ
|
||||
-if test x$answ = xn -o x$answ = xno -o x$answ = xN -o x$answ = xNO;
|
||||
-then
|
||||
- echo "no"
|
||||
-else
|
||||
- echo "yes"
|
||||
-fi
|
||||
-`
|
||||
-fi
|
||||
-
|
||||
-if test x$mdc_cv_include_inw = xyes; then
|
||||
- ENABLE_INW=1
|
||||
-else
|
||||
- ENABLE_INW=0
|
||||
-fi
|
||||
-echo "$ac_t""${mdc_cv_include_inw}" 1>&6
|
||||
-
|
||||
-echo $ac_n "Format Analyze (SPM) enabled? ""$ac_c"
|
||||
-if eval "test \"`echo '$''{'mdc_cv_include_anlz'+set}'`\" = set"; then
|
||||
- echo $ac_n "(cached) $ac_c" 1>&6
|
||||
-else
|
||||
- mdc_cv_include_anlz=`
|
||||
-read answ
|
||||
-if test x$answ = xn -o x$answ = xno -o x$answ = xN -o x$answ = xNO;
|
||||
-then
|
||||
- echo "no"
|
||||
-else
|
||||
- echo "yes"
|
||||
-fi
|
||||
-`
|
||||
-fi
|
||||
-
|
||||
-if test x$mdc_cv_include_anlz = xyes; then
|
||||
- ENABLE_ANLZ=1
|
||||
-else
|
||||
- ENABLE_ANLZ=0
|
||||
-fi
|
||||
-echo "$ac_t""${mdc_cv_include_anlz}" 1>&6
|
||||
-
|
||||
-echo $ac_n "Format Matrix/Ecat 6.4 enabled? ""$ac_c"
|
||||
-if eval "test \"`echo '$''{'mdc_cv_include_ecat'+set}'`\" = set"; then
|
||||
- echo $ac_n "(cached) $ac_c" 1>&6
|
||||
-else
|
||||
- mdc_cv_include_ecat=`
|
||||
-read answ
|
||||
-if test x$answ = xn -o x$answ = xno -o x$answ = xN -o x$answ = xNO;
|
||||
-then
|
||||
- echo "no"
|
||||
-else
|
||||
- echo "yes"
|
||||
-fi
|
||||
-`
|
||||
-fi
|
||||
-
|
||||
-if test x$mdc_cv_include_ecat = xyes; then
|
||||
- ENABLE_ECAT=1
|
||||
-else
|
||||
- ENABLE_ECAT=0
|
||||
-fi
|
||||
-echo "$ac_t""${mdc_cv_include_ecat}" 1>&6
|
||||
-echo $ac_n "Format InterFile 3.3 enabled? ""$ac_c"
|
||||
-if eval "test \"`echo '$''{'mdc_cv_include_intf'+set}'`\" = set"; then
|
||||
- echo $ac_n "(cached) $ac_c" 1>&6
|
||||
-else
|
||||
- mdc_cv_include_intf=`
|
||||
-read answ
|
||||
-if test x$answ = xn -o x$answ = xno -o x$answ = xN -o x$answ = xNO;
|
||||
-then
|
||||
- echo "no"
|
||||
-else
|
||||
- echo "yes"
|
||||
-fi
|
||||
-`
|
||||
-fi
|
||||
-
|
||||
-if test x$mdc_cv_include_intf = xyes; then
|
||||
- ENABLE_INTF=1
|
||||
-else
|
||||
- ENABLE_INTF=0
|
||||
-fi
|
||||
-echo "$ac_t""${mdc_cv_include_intf}" 1>&6
|
||||
-
|
||||
-echo $ac_n "Format DICOM 3.0 enabled? ""$ac_c"
|
||||
-if eval "test \"`echo '$''{'mdc_cv_include_dicm'+set}'`\" = set"; then
|
||||
- echo $ac_n "(cached) $ac_c" 1>&6
|
||||
-else
|
||||
- mdc_cv_include_dicm=`
|
||||
-read answ
|
||||
-if test x$answ = xn -o x$answ = xno -o x$answ = xN -o x$answ = xNO;
|
||||
-then
|
||||
- echo "no"
|
||||
-else
|
||||
- echo "yes"
|
||||
-fi
|
||||
-`
|
||||
-fi
|
||||
-
|
||||
-echo "$ac_t""${mdc_cv_include_dicm}" 1>&6
|
||||
-echo ""
|
||||
-if test x$mdc_cv_include_dicm = xyes; then
|
||||
- ENABLE_DICM=1
|
||||
- if test x$mdc_cv_include_acr != xyes; then
|
||||
- echo ""
|
||||
- echo " Oeps. DICOM needs Acr/Nema to be enabled."
|
||||
- echo " Therefore rerun configure to do so ..."
|
||||
- echo ""
|
||||
- exit 1
|
||||
- fi
|
||||
-else
|
||||
- ENABLE_DICM=0
|
||||
-fi
|
||||
-
|
||||
-echo ""
|
||||
-echo "BEGIN CONFIGURATION:"
|
||||
+mdc_cv_lnglngcheck="yes"
|
||||
+mdc_cv_xsupport="yes"
|
||||
+mdc_cv_include_acr="yes"
|
||||
+ENABLE_ACR=1
|
||||
+mdc_cv_include_gif="yes"
|
||||
+ENABLE_GIF=1
|
||||
+mdc_cv_include_inw="yes"
|
||||
+ENABLE_INW=1
|
||||
+mdc_cv_include_anlz="yes"
|
||||
+ENABLE_ANLZ=1
|
||||
+mdc_cv_include_ecat="yes"
|
||||
+ENABLE_ECAT=1
|
||||
+mdc_cv_include_intf="yes"
|
||||
+ENABLE_INTF=1
|
||||
+mdc_cv_include_dicm="yes"
|
||||
+ENABLE_DICM=1
|
||||
|
||||
ac_aux_dir=
|
||||
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
10
graphics/xmedcon/patches/patch-medcon_h
Normal file
10
graphics/xmedcon/patches/patch-medcon_h
Normal file
@ -0,0 +1,10 @@
|
||||
--- source/medcon.h.orig Mon Dec 25 19:46:50 2000
|
||||
+++ source/medcon.h Mon Dec 25 19:47:00 2000
|
||||
@@ -44,7 +44,6 @@ extern "C" {
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <math.h>
|
||||
-#include <malloc.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifndef _WIN32
|
1
graphics/xmedcon/pkg/COMMENT
Normal file
1
graphics/xmedcon/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
medical image conversion
|
16
graphics/xmedcon/pkg/DESCR
Normal file
16
graphics/xmedcon/pkg/DESCR
Normal file
@ -0,0 +1,16 @@
|
||||
The project stands for Medical Image Conversion.
|
||||
Released under the GPL licence, it comes with the full
|
||||
C-source code of the library, a flexible command-line utility and a
|
||||
neat graphical front-end using the Gtk+ toolkit. The supported
|
||||
formats are:
|
||||
|
||||
Acr/Nema 2.0, Analyze (SPM), DICOM 3.0, Ecat/Matrix 6.4,
|
||||
InterFile3.3 and Gif87a/89a.
|
||||
|
||||
The program also allows to read unsupported files without
|
||||
compression, to print pixel values or to extract/reorder specified
|
||||
images. It is possible to retrieve the raw binary/ascii image arrays or
|
||||
to write annimated GIFs for desktop applications. The library could be
|
||||
used as a framework for your own image formats.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
42
graphics/xmedcon/pkg/PLIST
Normal file
42
graphics/xmedcon/pkg/PLIST
Normal file
@ -0,0 +1,42 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2000/12/26 12:35:05 reinhard Exp $
|
||||
bin/medcon
|
||||
bin/xmedcon
|
||||
include/depend.h
|
||||
include/dicom.h
|
||||
include/m-acr.h
|
||||
include/m-algori.h
|
||||
include/m-anlz.h
|
||||
include/m-color.h
|
||||
include/m-config.h
|
||||
include/m-debug.h
|
||||
include/m-defs.h
|
||||
include/m-dicm.h
|
||||
include/m-ecat64.h
|
||||
include/m-error.h
|
||||
include/m-fancy.h
|
||||
include/m-files.h
|
||||
include/m-getopt.h
|
||||
include/m-gif.h
|
||||
include/m-global.h
|
||||
include/m-intf.h
|
||||
include/m-inw.h
|
||||
include/m-matrix.h
|
||||
include/m-pixels.h
|
||||
include/m-raw.h
|
||||
include/m-sigfpe.h
|
||||
include/m-vifi.h
|
||||
include/m-xdummy.h
|
||||
include/m-xtract.h
|
||||
include/medcon.h
|
||||
lib/libmdc.a
|
||||
lib/libmdc.la
|
||||
lib/libmdc.so.0.0
|
||||
man/man1/medcon.1
|
||||
man/man1/xmedcon.1
|
||||
man/man3/medcon.3
|
||||
man/man4/m-acr.4
|
||||
man/man4/m-anlz.4
|
||||
man/man4/m-ecat.4
|
||||
man/man4/m-gif.4
|
||||
man/man4/m-intf.4
|
||||
man/man4/m-inw.4
|
41
graphics/xmedcon/pkg/PLIST.nonshared
Normal file
41
graphics/xmedcon/pkg/PLIST.nonshared
Normal file
@ -0,0 +1,41 @@
|
||||
@comment $OpenBSD: PLIST.nonshared,v 1.1.1.1 2000/12/26 12:35:05 reinhard Exp $
|
||||
bin/medcon
|
||||
bin/xmedcon
|
||||
include/depend.h
|
||||
include/dicom.h
|
||||
include/m-acr.h
|
||||
include/m-algori.h
|
||||
include/m-anlz.h
|
||||
include/m-color.h
|
||||
include/m-config.h
|
||||
include/m-debug.h
|
||||
include/m-defs.h
|
||||
include/m-dicm.h
|
||||
include/m-ecat64.h
|
||||
include/m-error.h
|
||||
include/m-fancy.h
|
||||
include/m-files.h
|
||||
include/m-getopt.h
|
||||
include/m-gif.h
|
||||
include/m-global.h
|
||||
include/m-intf.h
|
||||
include/m-inw.h
|
||||
include/m-matrix.h
|
||||
include/m-pixels.h
|
||||
include/m-raw.h
|
||||
include/m-sigfpe.h
|
||||
include/m-vifi.h
|
||||
include/m-xdummy.h
|
||||
include/m-xtract.h
|
||||
include/medcon.h
|
||||
lib/libmdc.a
|
||||
lib/libmdc.la
|
||||
man/man1/medcon.1
|
||||
man/man1/xmedcon.1
|
||||
man/man3/medcon.3
|
||||
man/man4/m-acr.4
|
||||
man/man4/m-anlz.4
|
||||
man/man4/m-ecat.4
|
||||
man/man4/m-gif.4
|
||||
man/man4/m-intf.4
|
||||
man/man4/m-inw.4
|
Loading…
Reference in New Issue
Block a user