summaryrefslogtreecommitdiffstats
path: root/sci-libs/dcmtk/.svn/text-base/dcmtk-3.5.4-r3.ebuild.svn-base
blob: 496e750f6d3a85bfaf857c40cc62f0009c04229d (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Libraries and applications implementing large parts the DICOM standard"
HOMEPAGE="http://dicom.offis.de/dcmtk.php.en"
DEB_PV=3 # Debian patch dcmtk_3.5.4-3.diff
SRC_URI="
ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk354/${P}.tar.gz
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}-${DEB_PV}.diff.gz
"

# ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk354/COPYRIGHT
LICENSE="BSD"
KEYWORDS="~x86"
SLOT="0"
IUSE="png ssl tcpd tiff xml zlib doc"

RDEPEND="
media-libs/jpeg
png? ( media-libs/libpng )
ssl? ( dev-libs/openssl )
tcpd? ( sys-apps/tcp-wrappers )
tiff? ( media-libs/tiff )
xml? ( dev-libs/libxml2 )
zlib? ( sys-libs/zlib )
"
DEPEND="
doc? ( app-doc/doxygen )
${RDEPEND}
"

src_unpack() {

	unpack ${A}
	epatch "${PN}_3.5.4-3.diff"

}

src_compile() {

	econf \
		--sysconfdir=/etc/dcmtk \
		--with-private-tags \
		$(use_with tiff libtiff) \
		$(use_with zlib) \
		$(use_with png libpng) \
		$(use_with xml libxml) \
		$(use_with tcpd libwrap) \
		$(use_with ssl openssl) \
		|| die "econf failed"
	# Don't know why, but compile only with make not with emake ?!
	make ARCH="" || die "make failed"
	if use doc; then
		emake html
	fi

}

src_install() {

	emake DESTDIR="${D}" install \
			install-lib \
			|| die "emake install failed"
	if use doc; then
		emake DESTDIR="${D}" install-html \
			install-doc \
			|| die "emake install doc failed"
	fi
	dodoc COPYRIGHT FAQ HISTORY *.txt
	if use doc; then
		dohtml "${PN}"/html/*
	fi

}