source: trunk/dports/x11/chmsee/Portfile

Last change on this file was 146517, checked in by raimue@…, 19 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            chmsee
6version         1.0.0
7revision        3
8description     Viewer for CHM files.
9long_description ChmSee is an HTML Help viewer for Unix/Linux. \
10                It is based on CHMLIB and use Gtk2+ as frontend \
11                toolkit. Because of using gecko as HTML rendering \
12                engine, ChmSee can support rich features of modern \
13                HTML page, such as CSS and JavaScript.
14maintainers     nomaintainer
15categories      x11
16license         GPL-2+
17platforms       darwin
18homepage        http://chmsee.gro.clinux.org/
19master_sites    http://gro.clinux.org/frs/download.php/2040/
20checksums       md5 65fddfe20f4a1537e539998201a0ccfd
21depends_build   port:intltool
22depends_lib     port:gtk2 \
23                port:libglade2 \
24                port:chmlib \
25                path:lib/libssl.dylib:openssl \
26                port:firefox-x11
27configure.args  --with-openssl=${prefix}
28configure.cflags-append -I${prefix}/include/openssl
29configure.ldflags-append -lssl -lcrypto
30
31post-extract {
32    reinplace "s|defined(__linux__)|defined(__APPLE__)|" ${worksrcpath}/src/chmfile.c
33   
34    #Changing fixed fonts doesn't work, therefore always use the original fonts
35    reinplace "s|use_document_fonts\", 0|use_document_fonts\", 1|" \
36        ${worksrcpath}/src/default-prefs-common.js
37}
38
39post-destroot {
40        # In order to call gecko, chmsee must be installed in the same directory as FireFox.
41        # Move it and put a symlink in the bin directory
42        if { [catch {set ff [registry_active "firefox-x11"]} result]} {
43                ui_error "FireFox is not active: $result"
44        } else {
45                set ffver [lindex $ff 0 1]
46                xinstall -d ${destroot}${prefix}/lib/firefox-${ffver}
47                move ${destroot}${prefix}/bin/chmsee ${destroot}${prefix}/lib/firefox-${ffver}
48                ln -s ${prefix}/lib/firefox-${ffver}/chmsee ${destroot}${prefix}/bin
49        }
50}
Note: See TracBrowser for help on using the repository browser.