source: trunk/dports/graphics/xsane/Portfile

Last change on this file was 144973, checked in by eborisch@…, 18 months ago

xsane: opportunistically links to lcms; add to depends_lib.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 144973 2016-01-23 02:26:00Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            xsane
7version         0.998
8revision        3
9license         GPL-2
10categories      graphics x11
11maintainers     puffin.lb.shuttle.de:michael.klein openmaintainer
12description     X11 frontend for SANE
13homepage        http://www.xsane.org/
14platforms       darwin
15
16long_description This is an X11 frontend for the Scanner Access Now Easy \
17                 Project.
18
19master_sites    ${homepage}download/ \
20                ftp://ftp2.sane-project.org/pub/sane/xsane/ \
21                ftp://ftp3.sane-project.org/pub/sane/xsane/ \
22                ftp://sunsite.uio.no/pub/sane/xsane/
23
24checksums       md5     936f1cc76b37caa8f285e1e15ac7e0aa \
25                sha1    59e238b310979f71a8e15b692eab3c5b2ce6fc32 \
26                rmd160  aecf63ac3f15b878d01b697ac3ca95de34d18323
27
28depends_build   port:pkgconfig
29depends_lib     lib:libgimp-2.0:gimp2 \
30                port:jpeg \
31                port:gtk2 \
32                port:libpng \
33                port:sane-backends \
34                port:lcms
35
36patchfiles      patch-sane-options-handling-fix.diff \
37                patch-gtk_adjustment_new.diff \
38                patch-src__xsane-save.c-libpng15-compat.diff
39
40# gimp2 is not universal (#29165)
41
42if {![variant_isset disable_gimp]} {
43    universal_variant no
44}
45
46destroot.destdir        prefix=${destroot}${prefix}
47post-destroot {
48    delete ${destroot}${prefix}/share/man
49    file rename ${destroot}${prefix}/man ${destroot}${prefix}/share/man
50
51    system "strip ${destroot}${prefix}/bin/xsane"
52
53    if {![variant_isset disable_gimp]} {
54        xinstall -d ${destroot}${prefix}/lib/gimp/2.0/plug-ins
55        ln -sf ${prefix}/bin/xsane ${destroot}${prefix}/lib/gimp/2.0/plug-ins
56    }
57}
58
59variant disable_gimp description {Disable building of GIMP plugin} {
60    depends_lib-delete      lib:libgimp-2.0:gimp2
61    configure.args-append   --disable-gimp
62}
63
64livecheck.type  regex
65livecheck.url   ftp://ftp2.sane-project.org/pub/sane/xsane/
66livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.