mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Update to 1.0.2
- Move to new options framework - Fix typo in make variable - Add support for fame and volpack Approved by: crees (mentor)
This commit is contained in:
parent
69c7797781
commit
96ca81d959
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=297713
4 changed files with 115 additions and 73 deletions
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= amide
|
PORTNAME= amide
|
||||||
PORTVERSION= 1.0.1
|
PORTVERSION= 1.0.2
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= SF
|
MASTER_SITES= SF
|
||||||
EXTRACT_SUFX= .tgz
|
EXTRACT_SUFX= .tgz
|
||||||
|
@ -27,46 +27,77 @@ INSTALLS_OMF= yes
|
||||||
|
|
||||||
MAN1= amide.1
|
MAN1= amide.1
|
||||||
|
|
||||||
OPTIONS= XMEDCON "Use xmedcon" on \
|
OPTIONS_DEFINE= DCMTK FAME FFMPEG GSL VOLPACK XMEDCON
|
||||||
DCMTK "Use dcmtk" on \
|
OPTIONS_DEFAULT= DCMTK FFMPEG GSL VOLPACK XMEDCON
|
||||||
FFMPEG "Use ffmpeg" on \
|
|
||||||
GSL "Use gsl" on
|
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
DCMTK_DESC= "Use dcmtk"
|
||||||
|
FAME_DESC= "Use libfame (mutually exclusive with ffmpeg)"
|
||||||
|
FFMPEG_DESC= "Use ffmpeg (mutually exclusive with libfame)"
|
||||||
|
GSL_DESC= "Use gsl"
|
||||||
|
VOLPACK_DESC= "Use volpack"
|
||||||
|
XMEDCON_DESC= "Use xmedcon"
|
||||||
|
|
||||||
.if !defined(WITHOUT_XMEDCON)
|
.include <bsd.port.options.mk>
|
||||||
LIB_DEPENDS+= mdc.2:${PORTSDIR}/graphics/xmedcon
|
|
||||||
CONFIGUE_ARGS+= --enable-libmdc
|
.if ${PORT_OPTIONS:MDCMTK}
|
||||||
|
LIB_DEPENDS+= dcmdata:${PORTSDIR}/devel/dcmtk
|
||||||
|
CONFIGURE_ARGS+= --enable-libdcmdata
|
||||||
.else
|
.else
|
||||||
CONFIGUE_ARGS+= --disable-libmdc
|
CONFIGURE_ARGS+= --disable-libdcmdata
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(WITHOUT_DCMTK)
|
.if ${PORT_OPTIONS:MFAME}
|
||||||
LIB_DEPENDS+= dcmdata.3:${PORTSDIR}/devel/dcmtk
|
. if${PORT_OPTIONS:MFFMPEG}
|
||||||
CONFIGUE_ARGS+= --enable-libdcmdata
|
IGNORE= libfame and ffmpeg support are mutually exclusive, please check options.
|
||||||
|
. endif
|
||||||
|
LIB_DEPENDS+= fame:${PORTSDIR}/multimedia/libfame
|
||||||
|
CONFIGURE_ARGS+= --enable-libfame
|
||||||
.else
|
.else
|
||||||
CONFIGUE_ARGS+= --disable-libdcmdata
|
CONFIGURE_ARGS+= --disable-libfame
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(WITHOUT_FFMPEG)
|
.if ${PORT_OPTIONS:MFFMPEG}
|
||||||
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
. if${PORT_OPTIONS:MFAME}
|
||||||
CONFIGUE_ARGS+= --enable-ffmpeg
|
IGNORE= libfame and ffmpeg support are mutually exclusive, please check options.
|
||||||
|
. endif
|
||||||
|
LIB_DEPENDS+= avcodec:${PORTSDIR}/multimedia/ffmpeg
|
||||||
|
CONFIGURE_ARGS+= --enable-ffmpeg
|
||||||
.else
|
.else
|
||||||
CONFIGUE_ARGS+= --disable-ffmpeg
|
CONFIGURE_ARGS+= --disable-ffmpeg
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(WITHOUT_GSL)
|
.if ${PORT_OPTIONS:MGSL}
|
||||||
LIB_DEPENDS+= gsl.16:${PORTSDIR}/math/gsl
|
LIB_DEPENDS+= gsl:${PORTSDIR}/math/gsl
|
||||||
CONFIGUE_ARGS+= --enable-libgsl
|
CONFIGURE_ARGS+= --enable-libgsl
|
||||||
.else
|
.else
|
||||||
CONFIGUE_ARGS+= --disable-libgsl
|
CONFIGURE_ARGS+= --disable-libgsl
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITHOUT_NLS)
|
.if ${PORT_OPTIONS:MVOLPACK}
|
||||||
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libvolpack.a:${PORTSDIR}/graphics/volpack
|
||||||
|
CONFIGURE_ARGS+= --enable-libvolpack
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --disable-libvolpack
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if ${PORT_OPTIONS:MXMEDCON}
|
||||||
|
LIB_DEPENDS+= mdc:${PORTSDIR}/graphics/xmedcon
|
||||||
|
CONFIGURE_ARGS+= --enable-libmdc
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --disable-libmdc
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if ${PORT_OPTIONS:MNLS}
|
||||||
|
PLIST_SUB+= NLS=''
|
||||||
|
.else
|
||||||
CONFIGURE_ARGS+= --disable-nls
|
CONFIGURE_ARGS+= --disable-nls
|
||||||
PLIST_SUB+= NLS='@comment '
|
PLIST_SUB+= NLS='@comment '
|
||||||
.else
|
|
||||||
PLIST_SUB+= NLS=''
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
post-patch:
|
||||||
|
@${TOUCH} ${WRKSRC}/aclocal.m4 ${WRKSRC}/Makefile.in \
|
||||||
|
${WRKSRC}/amide_config.h.in
|
||||||
|
@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
||||||
|
${WRKSRC}/configure
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
SHA256 (amide-1.0.1.tgz) = 029392ebf88c58e8ce724583f86d2a63f5730cce47c32163d908998a7a850a2d
|
SHA256 (amide-1.0.2.tgz) = 8fe9618efd9e397ab5742d7f3508425005d022bf2dddb7d84ce4961efb413dc7
|
||||||
SIZE (amide-1.0.1.tgz) = 1543896
|
SIZE (amide-1.0.2.tgz) = 1380625
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- configure.orig 2011-01-20 03:24:42.000000000 +0100
|
--- configure.orig 2012-04-14 20:02:59.000000000 +0200
|
||||||
+++ configure 2011-05-10 15:10:45.000000000 +0200
|
+++ configure 2012-05-29 22:31:25.785277676 +0200
|
||||||
@@ -15399,13 +15399,13 @@
|
@@ -16046,7 +16046,7 @@
|
||||||
DATADIRNAME=share
|
DATADIRNAME=share
|
||||||
else
|
else
|
||||||
CATOBJEXT=.mo
|
CATOBJEXT=.mo
|
||||||
|
@ -9,6 +9,8 @@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
@@ -16056,7 +16056,7 @@
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
CATOBJEXT=.mo
|
CATOBJEXT=.mo
|
||||||
- DATADIRNAME=lib
|
- DATADIRNAME=lib
|
||||||
|
@ -16,8 +18,8 @@
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
@@ -16063,12 +16063,12 @@
|
@@ -16723,12 +16723,12 @@
|
||||||
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
|
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
|
||||||
DATADIRNAME=share
|
DATADIRNAME=share
|
||||||
else
|
else
|
||||||
- DATADIRNAME=lib
|
- DATADIRNAME=lib
|
||||||
|
@ -31,3 +33,51 @@
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
@@ -16793,9 +16793,9 @@
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
-OPTIMIZATION_LEVEL="-O3"
|
||||||
|
-echo "setting optimization level to $OPTIMIZATION_LEVEL"
|
||||||
|
-CFLAGS="$CFLAGS $OPTIMIZATION_LEVEL"
|
||||||
|
+#OPTIMIZATION_LEVEL="-O3"
|
||||||
|
+#echo "setting optimization level to $OPTIMIZATION_LEVEL"
|
||||||
|
+#CFLAGS="$CFLAGS $OPTIMIZATION_LEVEL"
|
||||||
|
|
||||||
|
if test $CC = "gcc"; then
|
||||||
|
echo -n "checking version of gcc... "
|
||||||
|
@@ -17443,8 +17443,8 @@
|
||||||
|
THREAD_LIBS=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
-AMIDE_LIBDCMDATA_LIBS="-L/usr/local/dicom/lib -L/usr/lib64/dcmtk -L/usr/lib/dcmtk -ldcmdata -loflog -lofstd -lz $THREAD_LIBS"
|
||||||
|
-AMIDE_LIBDCMDATA_CFLAGS="-I/usr/local/dicom/include"
|
||||||
|
+AMIDE_LIBDCMDATA_LIBS="-L%%LOCALBASE%%/lib -L/usr/local/dicom/lib -L/usr/lib64/dcmtk -L/usr/lib/dcmtk -ldcmdata -loflog -lofstd -lz $THREAD_LIBS"
|
||||||
|
+AMIDE_LIBDCMDATA_CFLAGS="-I%%LOCALBASE%%/include -I/usr/local/dicom/include"
|
||||||
|
saved_libs="${LIBS}"
|
||||||
|
LIBS="${LIBS} ${AMIDE_LIBDCMDATA_LIBS}"
|
||||||
|
saved_cxxflags="${CXXFLAGS}"
|
||||||
|
@@ -17982,6 +17982,7 @@
|
||||||
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
|
ac_save_LIBS="$LIBS"
|
||||||
|
CFLAGS="$CFLAGS $LIBFAME_CFLAGS"
|
||||||
|
+ CXXFLAGS="$CFLAGS $LIBFAME_CFLAGS"
|
||||||
|
LIBS="$LIBFAME_LIBS $LIBS"
|
||||||
|
rm -f conf.libfametest
|
||||||
|
if test "$cross_compiling" = yes; then :
|
||||||
|
@@ -17993,6 +17994,7 @@
|
||||||
|
#include <fame.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
@@ -21896,7 +21898,3 @@
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
||||||
|
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
||||||
|
fi
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-echo "Moving SPEC file to base directory"
|
||||||
|
-mv etc/amide.spec ./
|
||||||
|
|
|
@ -7,51 +7,12 @@ share/gnome/help/amide/C/legal.xml
|
||||||
share/gnome/help/amide/es/amide.xml
|
share/gnome/help/amide/es/amide.xml
|
||||||
share/gnome/help/amide/es/figures/amide_main_window.png
|
share/gnome/help/amide/es/figures/amide_main_window.png
|
||||||
share/gnome/help/amide/es/figures/study_tree.png
|
share/gnome/help/amide/es/figures/study_tree.png
|
||||||
share/gnome/help/amide/es/legal.xml
|
|
||||||
share/gtk-doc/html/amitk/AmitkWidgets.html
|
|
||||||
share/gtk-doc/html/amitk/SpaceObjects.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkCanvas.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkColorTableMenu.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkDataSet.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkFiducialMark.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkLineProfile.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkObject.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkObjectDialog.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkProgressDialog.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkRawData.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkRoi.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkSpace.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkSpaceEdit.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkStudy.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkThresholdsDialog.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkTreeView.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-AmitkVolume.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-amitk-canvas-object.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-amitk-color-table.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-amitk-common.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-amitk-filter.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-amitk-point.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-amitk-type.html
|
|
||||||
share/gtk-doc/html/amitk/amitk-theory.html
|
|
||||||
share/gtk-doc/html/amitk/amitk.devhelp
|
|
||||||
share/gtk-doc/html/amitk/amitk.devhelp2
|
|
||||||
share/gtk-doc/html/amitk/amitk_base.html
|
|
||||||
share/gtk-doc/html/amitk/amitk_intro.html
|
|
||||||
share/gtk-doc/html/amitk/amitk_objects.html
|
|
||||||
share/gtk-doc/html/amitk/ch01.html
|
|
||||||
share/gtk-doc/html/amitk/home.png
|
|
||||||
share/gtk-doc/html/amitk/index.html
|
|
||||||
share/gtk-doc/html/amitk/index.sgml
|
|
||||||
share/gtk-doc/html/amitk/left.png
|
|
||||||
share/gtk-doc/html/amitk/right.png
|
|
||||||
share/gtk-doc/html/amitk/style.css
|
|
||||||
share/gtk-doc/html/amitk/up.png
|
|
||||||
%%NLS%%share/locale/zh_CN/LC_MESSAGES/amide.mo
|
%%NLS%%share/locale/zh_CN/LC_MESSAGES/amide.mo
|
||||||
|
%%NLS%%share/locale/zh_TW/LC_MESSAGES/amide.mo
|
||||||
share/omf/amide/amide-C.omf
|
share/omf/amide/amide-C.omf
|
||||||
share/omf/amide/amide-es.omf
|
share/omf/amide/amide-es.omf
|
||||||
share/pixmaps/amide_logo.png
|
share/pixmaps/amide_logo.png
|
||||||
share/pixmaps/amide_file_logo.png
|
share/pixmaps/amide_file_logo.png
|
||||||
@dirrm share/gtk-doc/html/amitk
|
|
||||||
@dirrm share/gnome/help/amide/es/figures
|
@dirrm share/gnome/help/amide/es/figures
|
||||||
@dirrm share/gnome/help/amide/es
|
@dirrm share/gnome/help/amide/es
|
||||||
@dirrm share/gnome/help/amide/C/figures
|
@dirrm share/gnome/help/amide/C/figures
|
||||||
|
|
Loading…
Add table
Reference in a new issue