1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/graphics/amide/Makefile
Guido Falsi f3b4dec123 - Use new options framework "SINGLE" feature.
- Pet portlint.

PR:		ports/168521
Submitted by:	Baptiste Daroussin <bapt@FreeBSD.org>
Approved by:	crees, tabthorpe (mentors, implicit)
2012-06-06 11:34:58 +00:00

102 lines
2.2 KiB
Makefile

# New ports collection makefile for: amide
# Date created: 8 Feb 2011
# Whom: Guido Falsi <mad@madpilot.net>
#
# $FreeBSD$
#
PORTNAME= amide
PORTVERSION= 1.0.2
PORTREVISION= 1
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
USE_GMAKE= yes
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
USE_GETTEXT= yes
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 <bsd.port.options.mk>
.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 <bsd.port.mk>