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

Last change on this file since 20906 was 20906, checked in by rhwood@…, 14 years ago

Upgrade to 2.4.5[BR]Change installation directory to /Applications/MacPorts when installing +use_binary (the default) variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 20906 2006-12-09 11:52:54Z rhwood@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     macports-dev@lists.macosforge.org
8categories      editors textproc aqua
9platforms       darwin
10homepage        http://www.abisource.com/
11master_sites    http://www.abisource.org/downloads/abiword/${version}/source
12checksums       md5 e018669a154164d31c768f773a1c95b4 \
13                sha1 bca02a8beb490246f785518fc82c6c557a77a88d \
14                rmd160 f0de27f97135f8fff9b4400b05d74a27eee348cd
15distname        abiword-${version}
16use_bzip2       yes
17worksrcdir      ${distname}/abi
18default_variants        +use_binary
19
20depends_lib     \
21        port:zlib \
22        port:libpng \
23        port:fribidi \
24        port:fontconfig \
25        port:imagemagick
26
27patchfiles configure.patch \
28        abi-detect-platform.m4.patch
29
30configure.env \
31        CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
32        LDFLAGS="-L${prefix}/lib" \
33        CFLAGS="-no-cpp-precomp"
34
35configure.args  \
36        --enable-Cocoa \
37        --mandir=${prefix}/share/man \
38        --with-zlib=${prefix} \
39        --with-libpng=${prefix} \
40        --with-popt=${prefix} \
41        --without-epath \
42        --disable-gnome \
43        --with-darwinports
44
45build.target {}
46
47variant use_binary conflicts use_source {
48        distname AbiWord-${version}-10.2
49        extract.suffix .dmg.gz
50        master_sites    http://www.abisource.org/downloads/abiword/${version}/MacOSX
51        checksums       md5 13d249d7f0181a5c44e7342b302b19ae
52        use_bzip2       no
53        extract.post_args > ${workpath}/${distname}.dmg
54        post-extract {
55                file mkdir /tmp/${name}-${version}
56                system "hdiutil attach ${workpath}/${distname}.dmg -private -nobrowse -mountpoint /tmp/${name}-${version}"
57        }
58        patch {}
59        configure {}
60        build {}
61        destroot {
62                file mkdir ${destroot}/Applications/MacPorts
63                file copy /tmp/${name}-${version}/AbiWord.app ${destroot}/Applications/MacPorts
64        }
65        post-destroot {
66                system "hdiutil detach /tmp/${name}-${version}"
67                file delete -force /tmp/${name}-${version}
68        }
69}
70
71variant use_source {
72}
Note: See TracBrowser for help on using the repository browser.