blob: b1b6e45bc2c4bd3d139d3f2d1c36ca69cb71a120 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# New ports collection makefile for: amide
# Date created: 8 Feb 2011
# Whom: Guido Falsi <mad@madpilot.net>
#
# $FreeBSD$
#
PORTNAME= amide
PORTVERSION= 1.0.2
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= DCMTK FAME FFMPEG GSL VOLPACK XMEDCON
OPTIONS_DEFAULT= DCMTK FFMPEG GSL VOLPACK XMEDCON
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
.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}
. if${PORT_OPTIONS:MFFMPEG}
IGNORE= libfame and ffmpeg support are mutually exclusive, please check options
. endif
LIB_DEPENDS+= fame:${PORTSDIR}/multimedia/libfame
CONFIGURE_ARGS+= --enable-libfame
.else
CONFIGURE_ARGS+= --disable-libfame
.endif
.if ${PORT_OPTIONS:MFFMPEG}
. if${PORT_OPTIONS:MFAME}
IGNORE= libfame and ffmpeg support are mutually exclusive, please check options.
. endif
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>
|