source: trunk/dports/editors/abiword/Portfile

Last change on this file was 140774, checked in by dstrubbe@…, 2 years ago

abiword: add license. http://abisource.com/information/license/

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 140774 2015-10-02 15:31:37Z ryandesign@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.
7license         GPL-3
8maintainers     nomaintainer
9categories      editors textproc aqua
10platforms       darwin
11homepage        http://www.abisource.com/
12master_sites    http://www.abisource.org/downloads/abiword/${version}/source \
13                http://www.nl.abisource.org/downloads/abiword/${version}/source
14checksums       md5 e018669a154164d31c768f773a1c95b4 \
15                sha1 bca02a8beb490246f785518fc82c6c557a77a88d \
16                rmd160 f0de27f97135f8fff9b4400b05d74a27eee348cd
17distname        abiword-${version}
18use_bzip2       yes
19
20if {![variant_isset use_source]} {
21    default_variants    +use_binary
22}
23
24pre-fetch {
25        if {! [variant_isset use_binary] && ! [variant_isset use_source]} {
26                return -code 1 "Please select either use_binary or use_source variant"
27        }
28}
29
30variant use_binary conflicts use_source {
31        distname AbiWord-${version}-10.2
32        extract.suffix .dmg.gz
33        master_sites    http://www.abisource.org/downloads/abiword/${version}/MacOSX \
34                        http://www.nl.abisource.org/downloads/abiword/${version}/MacOSX \
35                        http://os.cqu.edu.au/macosx/office/abiword
36        checksums       md5 13d249d7f0181a5c44e7342b302b19ae
37        use_bzip2       no
38        extract.post_args > ${workpath}/${distname}.dmg
39        post-extract {
40                file mkdir /tmp/${name}-${version}
41                system "hdiutil attach ${workpath}/${distname}.dmg -private -nobrowse -mountpoint /tmp/${name}-${version}"
42        }
43        patch {}
44        use_configure   no
45        build {}
46        destroot {
47                file mkdir ${destroot}${applications_dir}
48                file copy /tmp/${name}-${version}/AbiWord.app ${destroot}${applications_dir}
49        }
50        post-destroot {
51                system "hdiutil detach /tmp/${name}-${version}"
52                file delete -force /tmp/${name}-${version}
53        }
54}
55
56variant use_source {
57        depends_build   \
58                port:pkgconfig
59
60        depends_lib     \
61                port:zlib \
62                port:libpng \
63                port:fribidi \
64                port:fontconfig \
65                port:ImageMagick
66
67        patchfiles      \
68                configure.patch \
69                abi-detect-platform.m4.patch \
70                patch-wv-magick-png.c.diff
71
72        configure.dir   ${worksrcpath}/abi
73
74        build.dir       ${configure.dir}
75        build.target
76
77        configure.cppflags -I. -I${prefix}/include
78
79        configure.args  \
80                --enable-Cocoa \
81                --mandir=${prefix}/share/man \
82                --with-zlib=${prefix} \
83                --with-libpng=${prefix} \
84                --with-popt=${prefix} \
85                --without-epath \
86                --disable-gnome
87}
Note: See TracBrowser for help on using the repository browser.