Ticket #8657: openjadePortfile

File openjadePortfile, 2.0 KB (added by philipolson@…, 18 years ago)

patch to fix this openjade darwin port bug

Line 
1# $Id: Portfile,v 1.15 2006/01/25 09:01:46 olegb Exp $
2
3PortSystem 1.0
4name            openjade
5version         1.3.2
6revision        1
7categories      textproc
8maintainers     kevin@opendarwin.org
9description     James Clark's implementation of DSSSL
10homepage        http://openjade.sourceforge.net/
11platforms       darwin freebsd
12
13long_description OpenJade is an implementation of ISO/IEC 10179:1996 \
14                 standard DSSSL language.
15
16master_sites     sourceforge
17
18checksums       md5 7df692e3186109cc00db6825b777201e
19
20patchfiles      patch-Makefile.lib.in patch-Makefile.prog.in patch-ltmain.sh \
21                patch-configure
22
23depends_lib     lib:libosp.3:opensp
24depends_run     bin:mkcatalog:mkcatalog
25
26configure.args  --enable-http --enable-html --enable-mif \
27                --disable-dependency-tracking \
28                --enable-default-catalog=${prefix}/share/sgml/catalog \
29                --datadir=${prefix}/share/sgml/openjade
30
31configure.env   LDFLAGS="-L${prefix}/lib" LIBS="-L${prefix}/lib" CC=gcc CXX=g++ \
32                CXXFLAGS="-I${prefix}/include -fno-rtti"
33                #CXXFLAGS="-I${prefix}/include -no-cpp-precomp -fno-common -fno-rtti"
34
35post-configure  { reinplace "s|^#pragma implementation||g" ${worksrcpath}/grove/Node.cxx
36                  reinplace "s|^#pragma implementation||g" ${worksrcpath}/msggen.pl
37                  reinplace "s|^#pragma implementation||g" ${worksrcpath}/spgrove/GroveApp.cxx
38                  reinplace "s|^#pragma implementation||g" ${worksrcpath}/style/MessageModule.cxx
39                  reinplace "s|^#pragma interface||g" ${worksrcpath}/generic/EventGenerator.h
40                  reinplace "s|^#pragma interface||g" ${worksrcpath}/generic/ParserEventGeneratorKit.h
41                  reinplace "s|^#pragma interface||g" ${worksrcpath}/generic/SGMLApplication.h
42                  reinplace "s|^#pragma interface||g" ${worksrcpath}/grove/Node.h
43                  reinplace "s|^#pragma interface||g" ${worksrcpath}/msggen.pl
44                  reinplace "s|^#pragma interface||g" ${worksrcpath}/spgrove/GroveApp.h
45                  reinplace "s|CXX=|CXX=g++|g" ${worksrcpath}/libtool
46}
47
48destroot.target install install-man
49
50post-destroot   { system "install -d -m 755 ${destroot}${prefix}/share/sgml/openjade"
51                  system "install -m 644 ${worksrcpath}/dsssl/* ${destroot}${prefix}/share/sgml/openjade" }