blob: 3e9bf07c35a80ea2afee65ff977ca900bcc05163 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
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"
LICENSE="BSD"
KEYWORDS="~x86"
SLOT="0"
IUSE="doc png ssl tcpd tiff xml zlib"
RDEPEND="
virtual/jpeg
png? ( media-libs/libpng )
ssl? ( dev-libs/openssl )
tcpd? ( sys-apps/tcp-wrappers )
tiff? ( media-libs/tiff )
xml? ( dev-libs/libxml2:2 )
zlib? ( sys-libs/zlib )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
src_prepare() {
epatch "${PN}_3.5.4-3.diff"
}
src_configure() {
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)
}
src_compile() {
# Don't compile without ARCH="" ?!
emake ARCH="" || die "emake failed"
if use doc; then
emake html
fi
}
src_install() {
if use doc; then
emake DESTDIR="${D}" install-all \
install-doc \
|| die "emake install failed"
else
# Note : install-all = install install-lib install-html
emake DESTDIR="${D}" install \
install-lib \
|| die "emake install failed"
fi
dodoc FAQ HISTORY *.txt
if use doc; then
dohtml "${PN}"/html/*
fi
}
|