source: trunk/dports/textproc/openjade/Portfile @ 119131

Last change on this file since 119131 was 119131, checked in by pixilla@…, 6 years ago

textproc/openjade:

  • Use new PortGroup xmlcatalog. See #41708
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 119131 2014-04-17 22:40:03Z pixilla@macports.org $
3
4PortSystem 1.0
5PortGroup xmlcatalog 1.0
6
7name            openjade
8version         1.3.2
9revision        8
10categories      textproc
11license         MIT
12maintainers     fourpalms.org:lockhart openmaintainer
13description     James Clark's implementation of DSSSL
14long_description \
15    OpenJade is an implementation of ISO/IEC 10179:1996 \
16    standard DSSSL language.
17homepage        http://openjade.sourceforge.net/
18platforms       darwin freebsd
19master_sites    sourceforge
20
21checksums       md5 7df692e3186109cc00db6825b777201e
22
23patchfiles      clang.patch \
24                patch-GroveApp.h \
25                patch-GroveBuilder.cxx \
26                patch-Node.h \
27                openjade-getoptperl.patch \
28                delete_la_files.patch
29
30depends_lib     port:opensp
31depends_run     port:xmlcatmgr
32
33set openjade.catalog ${prefix}/share/sgml/catalog
34set openjade.rootcatalog ${prefix}/share/sgml/openjade/catalog
35
36sgml.catalog ${openjade.rootcatalog}
37# Add the root catalog to the openjade catalog
38sgml.addtocatalog "${openjade.catalog}" "${sgml.rootcatalog}"
39
40configure.args --enable-http --enable-html --enable-mif \
41               --disable-dependency-tracking \
42               --enable-default-catalog=${openjade.catalog} \
43               --datadir=${prefix}/share/sgml/openjade \
44               --mandir=${prefix}/share/man
45
46# Fix build failure on Tiger due to use of -isystem
47compiler.blacklist    gcc-4.0 gcc-3.3
48
49# TODO: Simplify once MacPorts 2.3 is released
50set cxx_stdlibflags {}
51if {[info exists configure.cxx_stdlib] && ${configure.cxx_stdlib} ne {} && [string match *clang* ${configure.cxx}]} {
52    set cxx_stdlibflags "-stdlib=${configure.cxx_stdlib}"
53}
54
55configure.env-append      LIBS="-L${prefix}/lib"
56configure.cxxflags-append "-isystem ${prefix}/include -fno-rtti"
57configure.ldflags-delete  "-L${prefix}/lib"
58
59post-configure  {
60    reinplace "s|^#pragma implementation||g" ${worksrcpath}/grove/Node.cxx
61    reinplace "s|^#pragma implementation||g" ${worksrcpath}/msggen.pl
62    reinplace "s|^#pragma implementation||g" ${worksrcpath}/spgrove/GroveApp.cxx
63    reinplace "s|^#pragma implementation||g" ${worksrcpath}/style/MessageModule.cxx
64    reinplace "s|^#pragma interface||g" ${worksrcpath}/generic/EventGenerator.h
65    reinplace "s|^#pragma interface||g" ${worksrcpath}/generic/ParserEventGeneratorKit.h
66    reinplace "s|^#pragma interface||g" ${worksrcpath}/generic/SGMLApplication.h
67    reinplace "s|^#pragma interface||g" ${worksrcpath}/grove/Node.h
68    reinplace "s|^#pragma interface||g" ${worksrcpath}/msggen.pl
69    reinplace "s|^#pragma interface||g" ${worksrcpath}/spgrove/GroveApp.h
70    reinplace "s|^CXX=.*$|CXX='${configure.cxx} [get_canonical_archflags] ${cxx_stdlibflags}'|g" ${worksrcpath}/libtool
71    reinplace "s|^CC=.*$|CC='${configure.cc} [get_canonical_archflags]'|g" ${worksrcpath}/libtool
72}
73
74destroot.target install install-man
75
76post-destroot {
77    system "install -d -m 755 ${destroot}${prefix}/share/sgml/openjade"
78    system "install -m 644 ${worksrcpath}/dsssl/* ${destroot}${prefix}/share/sgml/openjade"
79}
Note: See TracBrowser for help on using the repository browser.