source: trunk/dports/www/elinks-devel/Portfile @ 83385

Last change on this file since 83385 was 83385, checked in by dports@…, 8 years ago

standardize some license formatting issues:

  • use - to indicate version, not v, e.g. GPL-2 not GPLv2
  • use lists for multiple options, e.g. {Artistic GPL}
  • perl license is {Artistic GPL}
  • Python license is PSF
  • call the NCSA/UIUC license NCSA
  • libpng/zlib have the same license; call it zlib
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.6 KB
Line 
1# $Id: Portfile 83385 2011-08-31 01:52:26Z dports@macports.org $
2
3PortSystem          1.0
4
5name                elinks-devel
6conflicts           elinks
7version             0.12pre5
8revision            1
9categories          www
10maintainers         nomaintainer
11platforms           darwin
12
13description         Full-Featured Text WWW Browser
14long_description    ELinks is an advanced and well-established feature-rich \
15                    text mode web (HTTP/FTP/..) browser.
16license             GPL-2
17homepage            http://elinks.or.cz/
18
19livecheck.regex     {unstable version is (.*),}
20livecheck.type      regex
21livecheck.url       ${homepage}
22
23depends_build       port:pkgconfig port:gmake
24depends_lib \
25    path:include/gc.h:boehmgc \
26    port:bzip2 \
27    port:expat \
28    port:gettext \
29    port:libiconv \
30    port:libidn \
31    port:openssl \
32    port:spidermonkey \
33    port:tre \
34    port:zlib
35
36distname            elinks-${version}
37master_sites        ${homepage}download/
38
39checksums           rmd160 517f8ef0e1978a204496631a63495656fbf51f19
40
41patchfiles          patch-Makefile.lib.diff patch-configure.diff
42
43post-patch {
44    if {[variant_isset universal]} {
45        reinplace "s|@ARCHS@|${configure.universal_ldflags}|" ${worksrcpath}/Makefile.lib
46    } else {
47        reinplace "s|@ARCHS@|-arch ${build_arch}|" ${worksrcpath}/Makefile.lib
48    }
49}
50
51configure.args \
52    --disable-256-colors \
53    --disable-88-colors \
54    --disable-debug \
55    --disable-fsp \
56    --disable-smb \
57    --disable-true-color \
58    --enable-bittorrent \
59    --enable-cgi \
60    --enable-exmode \
61    --enable-finger \
62    --enable-gopher \
63    --enable-html-highlight \
64    --enable-nntp \
65    --with-gc \
66    --with-idn \
67    --with-libiconv \
68    --with-openssl \
69    --with-spidermonkey=${prefix} \
70    --with-tre \
71    --without-gnutls \
72    --without-gpm \
73    --without-gssapi \
74    --without-guile \
75    --without-lua \
76    --without-lzma \
77    --without-perl \
78    --without-python \
79    --without-ruby \
80    --without-see \
81    --without-x \
82    --without-xterm
83
84use_parallel_build  no
85
86# elinks-0.12pre5/src/ecmascript/Makefile needs GNU Make 3.81 or later
87# due to the "else" followed by a conditional.
88build.cmd           gmake
89
90if {${configure.compiler} == "llvm-gcc-4.2"} {
91   configure.compiler clang
92}
93
94variant colors description {Enable support for 88/256 colors and True color} {
95    configure.args-append \
96        --enable-256-colors \
97        --enable-88-colors \
98        --enable-true-color
99    configure.args-delete \
100        --disable-256-colors \
101        --disable-88-colors \
102        --disable-true-color
103}
104
105variant debug description {Enable debug mode} {
106    configure.args-append --enable-debug
107    configure.args-delete --disable-debug
108}
109
110variant fsp description {Enable support for FSP (File Service Protocol)} {
111    depends_build-append port:fsplib
112
113    configure.args-append --enable-fsp
114    configure.args-delete --disable-fsp
115}
116
117variant gnutls description {Use GnuTLS in lieu of OpenSSL} {
118    depends_lib-append port:gnutls port:libtasn1
119    depends_lib-delete port:openssl
120
121    configure.args-append --with-gnutls --without-openssl
122    configure.args-delete --without-gnutls --with-openssl
123}
124
125variant guile description {Enable support for Guile scripting} {
126    depends_lib-append port:guile
127
128    configure.args-append --with-guile
129    configure.args-delete --without-guile
130}
131
132variant lua description {Enable support for Lua scripting} {
133    depends_lib-append port:lua50
134
135    configure.args-append --with-lua=${prefix}
136    configure.args-delete --without-lua
137}
138
139variant perl description {Enable support for Perl scripting} {
140    depends_lib-append path:bin/perl:perl5
141
142    patchfiles-append patch-src-scripting-perl-hooks.h.diff
143
144    configure.args-append --with-perl
145    configure.args-delete --without-perl
146}
147
148variant python description {Enable support for Python scripting} {
149    depends_lib-append port:python27
150
151    configure.args-append --with-python
152    configure.args-delete --without-python
153    configure.python ${prefix}/bin/python2.7
154}
155
156variant ruby description {Enable support for Ruby scripting} {
157    depends_lib-append port:ruby
158
159    configure.args-append --with-ruby
160    configure.args-delete --without-ruby
161}
162
163variant samba description {Enable support for Samba} {
164    depends_lib-append port:samba3
165
166    configure.args-append --enable-smb
167    configure.args-delete --disable-smb
168    configure.ldflags-append "-L${prefix}/lib/samba3"
169}
170
171variant see description {Use SEE in lieu of SpiderMonkey} {
172    depends_lib-append port:see
173    depends_lib-delete port:spidermonkey
174
175    configure.args-append --enable-see
176    configure.args-delete --with-spidermonkey=${prefix}
177}
178
179default_variants    +colors
Note: See TracBrowser for help on using the repository browser.