source: trunk/dports/graphics/xsane/Portfile @ 24096

Last change on this file since 24096 was 22753, checked in by takanori@…, 13 years ago
  • Version bump to xsane 0.991.

(This version can be used as a gimp2 plug-in.)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 22753 2007-03-13 14:13:47Z takanori@macports.org $
2
3PortSystem 1.0
4name            xsane
5version         0.991
6categories      graphics x11
7maintainers     hama@hamazone.de
8description     X11 frontend for SANE
9homepage        http://www.xsane.org/
10platforms       darwin
11
12long_description This is an X11 frontend for the Scanner Access Now Easy \
13                 Project.
14
15master_sites    ftp://ftp.sane-project.org/pub/sane/xsane/
16
17checksums       md5 cded872f2e7041f4a0f2dc4f0bbc5a77
18
19depends_lib     port:gettext \
20                port:gimp2 \
21                port:glib2 \
22                port:gtk2 \
23                port:jpeg \
24                port:libiconv \
25                port:libpng \
26                port:sane-backends \
27                port:tiff \
28                port:zlib
29
30configure.env   LDFLAGS="-L${prefix}/lib" \
31                CPPFLAGS="-I${prefix}/include -no-cpp-precomp"
32
33#configure.args  --mandir=${prefix}/share/man
34
35destroot.destdir        prefix=${destroot}${prefix}
36post-destroot {
37    delete ${destroot}${prefix}/share/man
38    file rename ${destroot}${prefix}/man ${destroot}${prefix}/share/man
39
40    system "strip ${destroot}${prefix}/bin/xsane"
41
42    if {![variant_isset disable_gimp2]} {
43        file mkdir ${destroot}${prefix}/lib/gimp/2.0/plug-ins
44        system "ln -sf ${prefix}/bin/xsane ${destroot}${prefix}/lib/gimp/2.0/plug-ins"
45    }
46}
47
48variant disable_gimp2 {
49    depends_lib-delete      port:gimp2
50    configure.args-append   --disable-gimp
51}
Note: See TracBrowser for help on using the repository browser.