2016-09-13 19:15:03 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.36 2016/09/13 19:15:03 naddy Exp $
|
2005-07-22 04:21:30 +00:00
|
|
|
|
2007-09-15 20:38:20 +00:00
|
|
|
COMMENT= full-featured text WWW browser
|
2009-08-26 19:30:19 +00:00
|
|
|
DISTNAME= elinks-0.11.7
|
2015-06-29 14:01:23 +00:00
|
|
|
REVISION= 9
|
2005-07-22 04:21:30 +00:00
|
|
|
CATEGORIES= www
|
2006-01-29 15:41:00 +00:00
|
|
|
MASTER_SITES= http://elinks.cz/download/
|
2005-07-22 04:21:30 +00:00
|
|
|
|
2006-01-29 15:41:00 +00:00
|
|
|
HOMEPAGE= http://elinks.cz/
|
2005-07-22 04:21:30 +00:00
|
|
|
|
2009-10-11 14:06:20 +00:00
|
|
|
MAINTAINER= Edd Barrett <edd@openbsd.org>
|
2005-07-22 04:21:30 +00:00
|
|
|
|
2008-12-30 10:29:09 +00:00
|
|
|
# GPL, v2 only
|
2005-07-22 04:21:30 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2014-06-02 14:37:15 +00:00
|
|
|
CONFIGURE_STYLE= autoconf
|
|
|
|
AUTOCONF_VERSION= 2.61
|
2009-10-13 18:24:01 +00:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include \
|
2009-10-14 11:01:28 +00:00
|
|
|
-L${LOCALBASE}/lib"
|
2009-10-13 18:24:01 +00:00
|
|
|
|
2006-01-29 15:41:00 +00:00
|
|
|
CONFIGURE_ARGS+= --with-bzlib \
|
|
|
|
--disable-xbel \
|
2008-10-27 14:00:17 +00:00
|
|
|
--disable-backtrace \
|
2006-01-29 15:41:00 +00:00
|
|
|
--enable-gopher \
|
2010-06-13 11:42:31 +00:00
|
|
|
--enable-256-colors \
|
2006-01-29 15:41:00 +00:00
|
|
|
--with-libiconv=${LOCALBASE}
|
2009-10-13 18:24:01 +00:00
|
|
|
|
2008-08-21 01:12:35 +00:00
|
|
|
# don't hide compiler command lines
|
|
|
|
MAKE_ENV= V=true
|
2010-11-22 08:36:47 +00:00
|
|
|
LIB_DEPENDS+= archivers/bzip2 \
|
2016-09-13 19:15:03 +00:00
|
|
|
converters/libiconv \
|
2010-11-22 08:36:47 +00:00
|
|
|
devel/libidn
|
2009-10-13 18:24:01 +00:00
|
|
|
|
2005-07-22 04:21:30 +00:00
|
|
|
USE_GMAKE= Yes
|
2010-11-22 08:36:47 +00:00
|
|
|
USE_GROFF = Yes
|
2005-07-22 04:21:30 +00:00
|
|
|
|
2010-11-22 08:36:47 +00:00
|
|
|
RUN_DEPENDS= devel/gettext
|
2016-09-13 19:15:03 +00:00
|
|
|
WANTLIB= bz2 crypto c iconv idn ssl z
|
2005-07-22 04:21:30 +00:00
|
|
|
|
2015-06-29 06:17:36 +00:00
|
|
|
FLAVORS= lua no_x11 js
|
2011-04-03 12:04:24 +00:00
|
|
|
FLAVOR?=
|
2005-07-22 04:21:30 +00:00
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mlua}
|
2009-10-11 15:55:50 +00:00
|
|
|
BROKEN= has this ever worked?
|
2006-01-29 15:41:00 +00:00
|
|
|
CONFIGURE_ARGS+= --with-lua
|
2010-11-22 08:36:47 +00:00
|
|
|
LIB_DEPENDS+= lang/lua
|
|
|
|
WANTLIB+= m lua>=5.1
|
2005-07-22 04:21:30 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-lua
|
|
|
|
.endif
|
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mno_x11}
|
2005-07-22 04:21:30 +00:00
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
.else
|
2006-01-29 15:41:00 +00:00
|
|
|
CONFIGURE_ARGS+= --with-x
|
2009-08-26 19:30:19 +00:00
|
|
|
WANTLIB+= X11
|
2005-07-22 04:21:30 +00:00
|
|
|
.endif
|
|
|
|
|
2015-06-29 06:17:36 +00:00
|
|
|
.if ${FLAVOR:Mjs}
|
2011-04-10 17:26:34 +00:00
|
|
|
# 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.
|
2015-06-29 06:17:36 +00:00
|
|
|
BROKEN= disabled because of security concerns
|
|
|
|
CONFIGURE_ARGS+= --with-spidermonkey
|
|
|
|
LIB_DEPENDS+= lang/spidermonkey
|
|
|
|
WANTLIB+= pthread js>=2.0
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include/js -pthread
|
|
|
|
.else
|
2009-10-13 18:24:01 +00:00
|
|
|
CONFIGURE_ARGS+= --without-spidermonkey
|
2015-06-29 06:17:36 +00:00
|
|
|
.endif
|
2009-10-13 18:24:01 +00:00
|
|
|
|
2005-07-22 04:21:30 +00:00
|
|
|
.include <bsd.port.mk>
|