source: trunk/dports/aqua/abiword2aqua/Portfile @ 10146

Last change on this file since 10146 was 10146, checked in by olegb, 15 years ago

hack to stop abiword2aqua from mounting diskimage, as reported in
bug#2518 by toby@.

  • Property svn:eol-style set to native
File size: 2.7 KB
Line 
1# $Id: Portfile,v 1.8 2005/01/01 14:28:11 olegb Exp $
2PortSystem 1.0
3name            abiword2aqua
4version         2.2.2
5description     A word processor with aqua support.
6long_description        A word processor with aqua support.
7maintainers     olegb@opendarwin.org
8categories      aqua editors
9platforms       darwin
10homepage        http://www.abisource.com/
11master_sites    sourceforge:abiword
12checksums       md5 b6d950f627557c3a9dd8f6616e93adc8
13distname        AbiWord-${version}-MacOSX-src
14patchfiles      patch-build_all.sh
15#this port needs DP versions of some basic stuff
16depends_build   bin:convert:ImageMagick lib:XXX:zlib lib:XXX:libiconv \
17                lib:XXX:gettext lib:XXX:glib2 lib:libwpd-1.7:libwpd
18build.env       CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
19                CFLAGS="-no-cpp-precomp"
20use_configure   no
21build.cmd       ./build_all.sh
22use_bzip2       yes
23build.target    {}
24pre-configure   {
25        reinplace "s|convert|${prefix}/bin/convert|g" \
26        ${worksrcpath}/abi/src/wp/ap/xp/ToolbarIcons/Makefile
27        file copy -force ${worksrcpath}/../../files/Info.plist ${worksrcpath}/abipbx/
28        reinplace "s|/sw/lib|${prefix}/lib|g" \
29        ${worksrcpath}/abipbx/abipbx.pbproj/project.pbxproj
30        reinplace "s|/sw/include|${prefix}/include|g" \
31        ${worksrcpath}/abipbx/abipbx.pbproj/project.pbxproj
32        reinplace "s|/sw/lib|${prefix}/lib|g" \
33        ${worksrcpath}/abipbx/abipbx2.pbproj/project.pbxproj
34        reinplace "s|/sw/include|${prefix}/include|g" \
35        ${worksrcpath}/abipbx/abipbx2.pbproj/project.pbxproj
36        reinplace "s|/sw/lib|${prefix}/lib|g" \
37        ${worksrcpath}/abi/ac-helpers/abi-detect-platform.m4
38        reinplace "s|/sw/include|${prefix}/include|g" \
39        ${worksrcpath}/abipbx/finishlibs.sh
40        reinplace "s|/sw/lib|${prefix}/lib|g" \
41        ${worksrcpath}/abipbx/preparelibs.sh
42        reinplace "s|libintl.1.dylib|libintl.3.dylib|g" \
43        ${worksrcpath}/abipbx/preparelibs.sh
44        reinplace "s|libintl.1.dylib|libintl.3.dylib|g" \
45        ${worksrcpath}/abipbx/abipbx2.pbproj/project.pbxproj
46        reinplace "s|sw/|${prefix}/|g" \
47        ${worksrcpath}/wvpbx/wvpbx2.pbproj/project.pbxproj
48        reinplace "s|sw/|${prefix}/|g" \
49        ${worksrcpath}/wv/INSTALL
50        reinplace "s|sw/|${prefix}/|g" \
51        ${worksrcpath}/wvpbx/preparelibs.sh
52        reinplace "s|sw/|${prefix}/|g" \
53        ${worksrcpath}/abipbx/finishlibs.sh
54        reinplace "s|libintl.1|libintl.3|g" \
55        ${worksrcpath}/wvpbx/preparelibs.sh
56        reinplace "s|libintl.1|libintl.3|g" \
57        ${worksrcpath}/wvpbx/wvpbx2.pbproj/project.pbxproj
58        reinplace "s|sw/|${prefix}/|g" \
59        ${worksrcpath}/enchantpbx/preparelibs.sh
60        reinplace "s|libintl.1|libintl.3|g" \
61        ${worksrcpath}/enchantpbx/preparelibs.sh
62        reinplace "s|sw/|${prefix}/|g" \
63        ${worksrcpath}/enchantpbx/enchantpbx.xcode/project.pbxproj
64
65        system "cd ${worksrcpath} && touch README-MacOSX.pdf"
66}
67post-destroot {
68        file mkdir ${destroot}/Applications/DarwinPorts
69        file copy -force ${worksrcpath}/BUILD/AbiWord.app ${destroot}/Applications/DarwinPorts/
70}
Note: See TracBrowser for help on using the repository browser.