wok-next view dcmtk/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents 4c0950b913fd
children 757d032c55c7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="dcmtk"
4 VERSION="3.6.0"
5 CATEGORY="misc"
6 SHORT_DESC="The DICOM Toolkit"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://dicom.offis.de/dcmtk"
11 WGET_URL="ftp://dicom.offis.de/pub/dicom/offis/software/$PACKAGE/$PACKAGE${VERSION//./}/$TARBALL"
13 BUILD_DEPENDS="libxml2-dev tiff-dev libpng16-dev zlib-dev libwrap-dev"
14 SPLIT="dcmtk dcmtk-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure --prefix=/usr \
20 --sysconfdir=/etc/dcmtk \
21 --mandir=/usr/share/man \
22 $CONFIGURE_ARGS &&
23 make -j 1 &&
24 make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 case $PACKAGE in
31 dcmtk)
32 DEPENDS="libxml2 tiff libpng16 libwrap"
33 cp -a $install/* $fs/
34 ;;
35 dcmtk-dev)
36 CAT="development|development files"
37 MAINTAINER="pascal.bellard@slitaz.org"
38 DEPENDS="dcmtk"
39 mkdir -p $fs/usr/include/dcmtk $fs/usr/lib
40 cp -a $src/*/include/dcmtk/* $fs/usr/include/dcmtk
41 cp -a $src/*/*/*a $fs/usr/lib
42 ;;
43 esac
44 }