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

Last change on this file since 87969 was 87059, checked in by ryandesign@…, 8 years ago

elinks-devel: simplify getting archflags

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.5 KB
Line 
1# $Id: Portfile 87059 2011-11-08 23:23:06Z ryandesign@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
43variant universal {}
44
45post-patch {
46    reinplace "s|@ARCHS@|[get_canonical_archflags]|g" ${worksrcpath}/Makefile.lib
47}
48
49configure.args \
50    --disable-256-colors \
51    --disable-88-colors \
52    --disable-debug \
53    --disable-fsp \
54    --disable-smb \
55    --disable-true-color \
56    --enable-bittorrent \
57    --enable-cgi \
58    --enable-exmode \
59    --enable-finger \
60    --enable-gopher \
61    --enable-html-highlight \
62    --enable-nntp \
63    --with-gc \
64    --with-idn \
65    --with-libiconv \
66    --with-openssl \
67    --with-spidermonkey=${prefix} \
68    --with-tre \
69    --without-gnutls \
70    --without-gpm \
71    --without-gssapi \
72    --without-guile \
73    --without-lua \
74    --without-lzma \
75    --without-perl \
76    --without-python \
77    --without-ruby \
78    --without-see \
79    --without-x \
80    --without-xterm
81
82use_parallel_build  no
83
84# elinks-0.12pre5/src/ecmascript/Makefile needs GNU Make 3.81 or later
85# due to the "else" followed by a conditional.
86build.cmd           gmake
87
88if {${configure.compiler} == "llvm-gcc-4.2"} {
89   configure.compiler clang
90}
91
92variant colors description {Enable support for 88/256 colors and True color} {
93    configure.args-append \
94        --enable-256-colors \
95        --enable-88-colors \
96        --enable-true-color
97    configure.args-delete \
98        --disable-256-colors \
99        --disable-88-colors \
100        --disable-true-color
101}
102
103variant debug description {Enable debug mode} {
104    configure.args-append --enable-debug
105    configure.args-delete --disable-debug
106}
107
108variant fsp description {Enable support for FSP (File Service Protocol)} {
109    depends_build-append port:fsplib
110
111    configure.args-append --enable-fsp
112    configure.args-delete --disable-fsp
113}
114
115variant gnutls description {Use GnuTLS in lieu of OpenSSL} {
116    depends_lib-append port:gnutls port:libtasn1
117    depends_lib-delete port:openssl
118
119    configure.args-append --with-gnutls --without-openssl
120    configure.args-delete --without-gnutls --with-openssl
121}
122
123variant guile description {Enable support for Guile scripting} {
124    depends_lib-append port:guile
125
126    configure.args-append --with-guile
127    configure.args-delete --without-guile
128}
129
130variant lua description {Enable support for Lua scripting} {
131    depends_lib-append port:lua50
132
133    configure.args-append --with-lua=${prefix}
134    configure.args-delete --without-lua
135}
136
137variant perl description {Enable support for Perl scripting} {
138    depends_lib-append path:bin/perl:perl5
139
140    patchfiles-append patch-src-scripting-perl-hooks.h.diff
141
142    configure.args-append --with-perl
143    configure.args-delete --without-perl
144}
145
146variant python description {Enable support for Python scripting} {
147    depends_lib-append port:python27
148
149    configure.args-append --with-python
150    configure.args-delete --without-python
151    configure.python ${prefix}/bin/python2.7
152}
153
154variant ruby description {Enable support for Ruby scripting} {
155    depends_lib-append port:ruby
156
157    configure.args-append --with-ruby
158    configure.args-delete --without-ruby
159}
160
161variant samba description {Enable support for Samba} {
162    depends_lib-append port:samba3
163
164    configure.args-append --enable-smb
165    configure.args-delete --disable-smb
166    configure.ldflags-append "-L${prefix}/lib/samba3"
167}
168
169variant see description {Use SEE in lieu of SpiderMonkey} {
170    depends_lib-append port:see
171    depends_lib-delete port:spidermonkey
172
173    configure.args-append --enable-see
174    configure.args-delete --with-spidermonkey=${prefix}
175}
176
177default_variants    +colors
Note: See TracBrowser for help on using the repository browser.