source: trunk/dports/editors/abiword/Portfile @ 36964

Last change on this file since 36964 was 36964, checked in by jmr@…, 11 years ago

abiword: fix case of ImageMagick dependency (#15366)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 36964 2008-05-21 12:08:44Z jmr@macports.org $
2PortSystem 1.0
3name            abiword
4version         2.4.5
5description     A word processor with gnome support.
6long_description        A word processor with gnome support.
7maintainers     nomaintainer
8categories      editors textproc aqua
9platforms       darwin
10homepage        http://www.abisource.com/
11master_sites    http://www.abisource.org/downloads/abiword/${version}/source \
12                http://www.nl.abisource.org/downloads/abiword/${version}/source
13checksums       md5 e018669a154164d31c768f773a1c95b4 \
14                sha1 bca02a8beb490246f785518fc82c6c557a77a88d \
15                rmd160 f0de27f97135f8fff9b4400b05d74a27eee348cd
16distname        abiword-${version}
17use_bzip2       yes
18worksrcdir      ${distname}/abi
19default_variants        +use_binary
20
21build.target {}
22
23pre-fetch {
24        if {! [variant_isset use_binary] && ! [variant_isset use_source]} {
25                return -code 1 "Please select either use_binary or use_source variant"
26        }
27}
28
29variant use_binary conflicts use_source {
30        distname AbiWord-${version}-10.2
31        extract.suffix .dmg.gz
32        master_sites    http://www.abisource.org/downloads/abiword/${version}/MacOSX \
33                        http://www.nl.abisource.org/downloads/abiword/${version}/MacOSX \
34                        http://os.cqu.edu.au/macosx/office/abiword
35        checksums       md5 13d249d7f0181a5c44e7342b302b19ae
36        use_bzip2       no
37        extract.post_args > ${workpath}/${distname}.dmg
38        post-extract {
39                file mkdir /tmp/${name}-${version}
40                system "hdiutil attach ${workpath}/${distname}.dmg -private -nobrowse -mountpoint /tmp/${name}-${version}"
41        }
42        patch {}
43        use_configure   no
44        build {}
45        destroot {
46                file mkdir ${destroot}/Applications/MacPorts
47                file copy /tmp/${name}-${version}/AbiWord.app ${destroot}/Applications/MacPorts
48        }
49        post-destroot {
50                system "hdiutil detach /tmp/${name}-${version}"
51                file delete -force /tmp/${name}-${version}
52        }
53}
54
55variant use_source {
56        depends_lib     \
57                port:zlib \
58                port:libpng \
59                port:fribidi \
60                port:fontconfig \
61                port:ImageMagick
62
63        patchfiles      \
64                configure.patch \
65                abi-detect-platform.m4.patch
66
67        configure.cflags-append -no-cpp-precomp
68
69        configure.args  \
70                --enable-Cocoa \
71                --mandir=${prefix}/share/man \
72                --with-zlib=${prefix} \
73                --with-libpng=${prefix} \
74                --with-popt=${prefix} \
75                --without-epath \
76                --disable-gnome
77}
Note: See TracBrowser for help on using the repository browser.