Skip to content

Commit

Permalink
Upstream recommends against enabling javascript support in
Browse files Browse the repository at this point in the history
this release due to security concerns. When this is port is
updated to 0.12.x it can be enabled again.

ok edd@ (MAINTAINER), landry@, sthen@, martynas@
  • Loading branch information
jasperla committed Apr 10, 2011
1 parent 76a737b commit 2fac9a2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
22 changes: 13 additions & 9 deletions www/elinks/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.26 2011/04/03 12:04:24 jasper Exp $
# $OpenBSD: Makefile,v 1.27 2011/04/10 17:26:34 jasper Exp $

COMMENT= full-featured text WWW browser
DISTNAME= elinks-0.11.7
Expand Down Expand Up @@ -39,7 +39,7 @@ RUN_DEPENDS= devel/gettext
WANTLIB= bz2 crypto c idn ssl z
MODULES= converters/libiconv

FLAVORS= lua no_x11 js
FLAVORS= lua no_x11 #js
FLAVOR?=

.if ${FLAVOR:L:Mlua}
Expand All @@ -58,13 +58,17 @@ CONFIGURE_ARGS+= --with-x
WANTLIB+= X11
.endif

.if ${FLAVOR:L:Mjs}
CONFIGURE_ARGS+= --with-spidermonkey
LIB_DEPENDS+= lang/spidermonkey
WANTLIB+= pthread js>=2.0
CFLAGS+= -I${LOCALBASE}/include/js -pthread
.else
# Upstream recommends against enabling javascript support in
# this release due to security concerns. When this is port is
# updated to 0.12.x it can be enabled again.
#
#.if ${FLAVOR:L:Mjs}
#CONFIGURE_ARGS+= --with-spidermonkey
#LIB_DEPENDS+= lang/spidermonkey
#WANTLIB+= pthread js>=2.0
#CFLAGS+= -I${LOCALBASE}/include/js -pthread
#.else
CONFIGURE_ARGS+= --without-spidermonkey
.endif
#.endif

.include <bsd.port.mk>
2 changes: 1 addition & 1 deletion www/elinks/pkg/DESCR
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ customizable and can be extended via Lua or Guile scripts. It is very
portable and runs on a variety of platforms.

Flavors:
js - build with JavaScript support
js - build with JavaScript support (temporarily disabled)
lua - build with Lua support
no_x11 - build without X11 support
6 changes: 5 additions & 1 deletion www/elinks/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@comment $OpenBSD: PLIST,v 1.3 2008/08/21 01:12:35 sthen Exp $
@comment $OpenBSD: PLIST,v 1.4 2011/04/10 17:26:34 jasper Exp $
@pkgpath www/elinks,js
@pkgpath www/elinks,lua,js
@pkgpath www/elinks,no_x11,js
@pkgpath www/elinks,lua,js,no_x11
@bin bin/elinks
@comment lib/charset.alias
@man man/man1/elinks.1
Expand Down

0 comments on commit 2fac9a2

Please sign in to comment.