aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/amide/Makefile
blob: f4af44699ac7c7a25492094b2fd000733665a77f (plain) (blame)
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
# $FreeBSD$

PORTNAME=   amide
PORTVERSION=    1.0.5
PORTREVISION=   12
CATEGORIES= graphics
MASTER_SITES=   SF

MAINTAINER= madpilot@FreeBSD.org
COMMENT=    Medical Imaging Data Examiner

LICENSE=    GPLv2

DEPRECATED= GNOME 2 application
EXPIRATION_DATE=    2018-12-10

BUILD_DEPENDS=  gm4:devel/m4

GNU_CONFIGURE=  yes
USE_CSTD=   gnu89
MAKE_JOBS_UNSAFE=   yes
USES=       gettext gmake pkgconfig tar:tgz
USE_GNOME=  gtk20 intltool libgnomecanvas libgnomeui libxml2 gnomedocutils
INSTALLS_OMF=   yes

OPTIONS_DEFINE= CODEC DCMTK GSL NLS 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

OPTIONS_SUB=            yes
DCMTK_CONFIGURE_ON=     --enable-libdcmdata
DCMTK_CONFIGURE_OFF=        --enable-libdcmdata=no
DCMTK_LIB_DEPENDS=      libdcmdata.so:devel/dcmtk
FAME_CONFIGURE_ENABLE=      libfame
FAME_LIB_DEPENDS=       libfame.so:multimedia/libfame
FFMPEG_CONFIGURE_ENABLE=    ffmpeg
FFMPEG_LIB_DEPENDS=     libavcodec.so:multimedia/ffmpeg
GSL_CONFIGURE_ENABLE=       libgsl
GSL_LIB_DEPENDS=        libgsl.so:math/gsl
VOLPACK_CONFIGURE_ENABLE=   libvolpack
VOLPACK_BUILD_DEPENDS=      ${LOCALBASE}/lib/libvolpack.a:graphics/volpack
XMEDCON_CONFIGURE_ENABLE=   libmdc
XMEDCON_LIB_DEPENDS=        libmdc.so:graphics/xmedcon
NLS_CONFIGURE_ENABLE=       nls

post-patch:
    @${TOUCH} ${WRKSRC}/aclocal.m4 ${WRKSRC}/Makefile.in \
        ${WRKSRC}/amide_config.h.in
    @${REINPLACE_CMD} \
        -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
        ${WRKSRC}/configure

.include <bsd.port.mk>