blob: aa13ad66681cd30b9f9b19f3a7c27e7775442551 (
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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
|
# Created by: Paul Everlund
# $FreeBSD$
PORTNAME= xmedcon
PORTVERSION= 0.13.0
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/XMedCon-Source/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Medical image conversion utility and library
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
OPTIONS_DEFINE= X11 GLIB ACR_NEMA ANALYZE CONCORDE DICOM DICOM_LJPEG ECAT GIF INTERFILE INW PNG
OPTIONS_DEFAULT=X11 GLIB ACR_NEMA ANALYZE CONCORDE DICOM DICOM_LJPEG ECAT GIF INTERFILE INW PNG
GLIB_DESC= With Glib
ACR_NEMA_DESC= With Acr/Nema 2.0
ANALYZE_DESC= With Analyze (SPM)
CONCORDE_DESC= With Concorde __ET
DICOM_DESC= With DICOM 3.0
DICOM_LJPEG_DESC= With DICOM 3.0 Lossless JPEG
ECAT_DESC= With CTI ECAT 6/7
INTERFILE_DESC= With InterFile 3.3
INW_DESC= With INW (RUG)
USE_BZIP2= yes
USE_AUTOTOOLS= libtool
CONFIGURE_ARGS= --includedir=${PREFIX}/include/xmedcon \
--enable-llcheck
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN1= medcon.1 xmedcon-config.1
MAN3= medcon.3
MAN4= m-acr.4 m-anlz.4 m-ecat.4 m-gif.4 m-intf.4 m-inw.4
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MX11}
USE_GNOME+= gtk20
PLIST_SUB+= X11=""
MAN1+= xmedcon.1
DESKTOP_ENTRIES="XMedCon" "" "${PREFIX}/etc/xmedcon.png" "${PORTNAME}" "" ""
.else
CONFIGURE_ARGS+= --disable-gui
PLIST_SUB+= X11="@comment "
.endif
.if ${PORT_OPTIONS:MGLIB}
USE_GNOME+= glib20
.else
CONFIGURE_ARGS+= --disable-glib
.endif
.if empty(PORT_OPTIONS:MACR_NEMA) || empty(PORT_OPTIONS:MDICOM)
CONFIGURE_ARGS+= --disable-acr
.endif
.if empty(PORT_OPTIONS:MGIF)
CONFIGURE_ARGS+= --disable-gif
.endif
.if empty(PORT_OPTIONS:MINW)
CONFIGURE_ARGS+= --disable-inw
.endif
.if empty(PORT_OPTIONS:MANALYZE)
CONFIGURE_ARGS+= --disable-anlz
.endif
.if empty(PORT_OPTIONS:MCONCORDE)
CONFIGURE_ARGS+= --disable-conc
.endif
.if empty(PORT_OPTIONS:MECAT)
CONFIGURE_ARGS+= --disable-ecat
.endif
.if empty(PORT_OPTIONS:MINTERFILE)
CONFIGURE_ARGS+= --disable-intf
.endif
.if empty(PORT_OPTIONS:MDICOM) || empty(PORT_OPTIONS:MDICOM_LJPEG)
CONFIGURE_ARGS+= --disable-dicom
.endif
.if empty(PORT_OPTIONS:MDICOM_LJPEG)
CONFIGURE_ARGS+= --disable-ljpg
.endif
.if ${PORT_OPTIONS:MPNG}
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
.else
CONFIGURE_ARGS+= --disable-png
.endif
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS/s|etc||g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e '/^configheadersdir/s|=.*$$|= $$(includedir)|g' \
${WRKSRC}/source/Makefile.in
@${REINPLACE_CMD} -e '/xmedcon.1/d' \
${WRKSRC}/man/Makefile.in
post-install:
.if ${PORT_OPTIONS:MX11}
.for file in xmedcon.png xmedconrc xmedconrc.linux
${INSTALL_DATA} ${WRKSRC}/etc/${file} ${PREFIX}/etc
.endfor
${INSTALL_MAN} ${WRKSRC}/man/xmedcon.1 ${MANPREFIX}/man/man1
.endif
.include <bsd.port.mk>
|