# $FreeBSD$ PORTNAME= amide PORTVERSION= 1.0.4 CATEGORIES= graphics MASTER_SITES= SF EXTRACT_SUFX= .tgz MAINTAINER= madpilot@FreeBSD.org COMMENT= Medical Imaging Data Examiner LICENSE= GPLv2 BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 GNU_CONFIGURE= yes USE_CSTD= gnu89 MAKE_JOBS_UNSAFE= yes USES= gettext gmake USE_GNOME= gtk20 libgnomecanvas libgnomeui libxml2 INSTALLS_OMF= yes MAN1= amide.1 OPTIONS_DEFINE= CODEC DCMTK GSL VOLPACK XMEDCON OPTIONS_SINGLE= CODEC OPTIONS_SINGLE_CODEC= FFMPEG FAME OPTIONS_DEFAULT= CODEC DCMTK FFMPEG GSL VOLPACK XMEDCON CODEC_DESC= Enable codec support. Choose one of FAME or FFMPEG DCMTK_DESC= Use dcmtk FAME_DESC= Use libfame FFMPEG_DESC= Use ffmpeg GSL_DESC= Use gsl VOLPACK_DESC= Use volpack XMEDCON_DESC= Use xmedcon .include .if ${PORT_OPTIONS:MDCMTK} LIB_DEPENDS+= dcmdata:${PORTSDIR}/devel/dcmtk CONFIGURE_ARGS+= --enable-libdcmdata .else CONFIGURE_ARGS+= --disable-libdcmdata .endif .if ${PORT_OPTIONS:MFAME} LIB_DEPENDS+= fame:${PORTSDIR}/multimedia/libfame CONFIGURE_ARGS+= --enable-libfame .else CONFIGURE_ARGS+= --disable-libfame .endif .if ${PORT_OPTIONS:MFFMPEG} LIB_DEPENDS+= avcodec:${PORTSDIR}/multimedia/ffmpeg CONFIGURE_ARGS+= --enable-ffmpeg .else CONFIGURE_ARGS+= --disable-ffmpeg .endif .if ${PORT_OPTIONS:MGSL} LIB_DEPENDS+= gsl:${PORTSDIR}/math/gsl CONFIGURE_ARGS+= --enable-libgsl .else CONFIGURE_ARGS+= --disable-libgsl .endif .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 PLIST_SUB+= NLS='@comment ' .endif post-patch: @${TOUCH} ${WRKSRC}/aclocal.m4 ${WRKSRC}/Makefile.in \ ${WRKSRC}/amide_config.h.in @${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' \ ${WRKSRC}/configure .include