aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xmedcon/Makefile
blob: 59612d250d264b2ff09f0ff429d2596405291cf4 (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
# New ports collection makefile for:    xmedcon
# Date created:     26 September 2002
# Whom:         Paul Everlund
#
# $FreeBSD$
#

PORTNAME=       xmedcon
PORTVERSION=        0.8.11
CATEGORIES=     graphics
MASTER_SITES=       ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= tdv94ped@cs.umu.se
COMMENT=    A medical image conversion utility and library

USE_SUBMAKE=    yes
USE_LIBTOOL=    yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes

SCRIPTS_ENV=    WRKDIRPREFIX="${WRKDIRPREFIX}" \
        MKDIR="${MKDIR}" \
        REALCURDIR=${.CURDIR}

pre-fetch:
    @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure

.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif

post-clean:
    @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc

.if !defined(WITH_X11)
CONFIGURE_ARGS= --disable-gui
PLIST_SUB=  X11="@comment "
.else
USE_X_PREFIX=   yes
USE_GNOME=  gtk12 gdkpixbuf
PLIST_SUB=  X11=""
.endif

.if !defined(WITH_GLIB)
CONFIGURE_ARGS+=    --disable-glib
.else
USE_GNOME+= glib12
.endif

.if !defined(WITH_ACRNEMA) && !defined(WITH_DICOM)
CONFIGURE_ARGS+=    --disable-acr
.endif

.if !defined(WITH_GIF)
CONFIGURE_ARGS+=    --disable-gif
.endif

.if !defined(WITH_INW)
CONFIGURE_ARGS+=    --disable-inw
.endif

.if !defined(WITH_ANALYZE)
CONFIGURE_ARGS+=    --disable-anlz
.endif

.if !defined(WITH_CONCORDE)
CONFIGURE_ARGS+=    --disable-conc
.endif

.if !defined(WITH_ECAT)
CONFIGURE_ARGS+=    --disable-ecat
.endif

.if !defined(WITH_INTERFILE)
CONFIGURE_ARGS+=    --disable-intf
.endif

.if !defined(WITH_DICOM) && !defined(WITH_DICOM_LJPEG)
CONFIGURE_ARGS+=    --disable-dicom
.endif

.if !defined(WITH_DICOM_LJPEG)
CONFIGURE_ARGS+=    --disable-ljpg
.endif

.if !defined(WITH_PNG)
CONFIGURE_ARGS+=    --disable-png
.else
LIB_DEPENDS+=   png.5:${PORTSDIR}/graphics/png
.endif

CONFIGURE_ARGS+=    --includedir=${PREFIX}/include/xmedcon

MAN1=   medcon.1 xmedcon-config.1
.if defined(WITH_X11)
MAN1+=  xmedcon.1
.endif

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.mk>