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