source: trunk/dports/textproc/htmldoc/Portfile

Last change on this file was 139229, checked in by jeremyhu@…, 2 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 139229 2015-08-08 03:10:35Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            htmldoc
6version         1.8.27
7revision        8
8categories      textproc
9license         {GPL-2 OpenSSLException}
10maintainers     nomaintainer
11description     Converts HTML files to PDF or PostScript
12homepage        http://www.htmldoc.org/
13platforms       darwin
14
15long_description htmldoc can convert HTML files to PDF or PostScript, \
16                 generate a table-of-contents for books, and generate \
17                 indexed HTML files.  It also generates files on-the-fly \
18                 for web applications or for batch jobs.
19
20master_sites    ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/htmldoc/${version}/ \
21                http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/htmldoc/${version}/ \
22                ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/htmldoc/${version}/ \
23                ftp://ftp3.easysw.com/pub/htmldoc/${version}/ \
24                ftp://ftp.easysw.com/pub/htmldoc/${version}/
25
26checksums       md5 35589e7b8fe9c54e11be87cd5aec4dcc \
27                sha1 472908e0aafed1cedfbacd8ed3168734aebdec4b \
28                rmd160 9605a5894675439f5fae405fb060972e19f33c7e
29
30distname        ${name}-${version}-source
31worksrcdir      ${name}-${version}
32use_bzip2       yes
33
34depends_lib     port:jpeg port:libpng port:zlib
35
36patchfiles      patch-libpng-1.5.diff
37
38configure.cxxflags -I${prefix}/include
39
40configure.args  --without-gui --disable-localjpeg --disable-localpng \
41                --disable-localzlib --disable-ssl
42
43post-build {
44        # The build and install don't notice when essential files don't get built,
45        # so we must exit for it when it fails. #36341
46        foreach f {htmldoc/htmldoc} {
47                if {![file exists ${worksrcpath}/${f}]} {
48                        return -code error "${f} did not get built"
49                }
50        }
51}
52
53destroot.destdir prefix=${destroot}${prefix} exec_prefix=${destroot}${prefix} \
54                 bindir=${destroot}${prefix}/bin mandir=${destroot}${prefix}/share/man
55
56variant ssl conflicts gnutls cdsassl {
57        depends_lib-append      path:lib/libssl.dylib:openssl
58        configure.args-delete   --disable-ssl
59        configure.args-append   --enable-openssl --disable-gnutls --disable-cdsassl
60}
61
62variant gnutls conflicts ssl cdsassl {
63        depends_lib-append      port:gnutls
64        configure.args-delete   --disable-ssl
65        configure.args-append   --disable-openssl --enable-gnutls --disable-cdsassl
66}
67
68variant cdsassl conflicts ssl gnutls {
69        configure.args-delete   --disable-ssl
70        configure.args-append   --disable-openssl --disable-gnutls --enable-cdsassl
71}
Note: See TracBrowser for help on using the repository browser.