2009-10-14 07:01:28 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2009/10/14 11:01:28 sthen 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
|
2009-10-14 07:01:28 -04:00
|
|
|
PKGNAME= ${DISTNAME}p3
|
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 \
|
|
|
|
--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
|
2006-06-23 08:32:33 -04:00
|
|
|
LIB_DEPENDS+= bz2::archivers/bzip2 \
|
|
|
|
idn::devel/libidn
|
2009-10-13 14:24:01 -04:00
|
|
|
|
2005-07-22 00:21:30 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
RUN_DEPENDS= ::devel/gettext
|
2009-10-14 07:01:28 -04:00
|
|
|
WANTLIB= crypto c z ssl
|
2006-01-29 10:41:00 -05:00
|
|
|
MODULES= converters/libiconv
|
2005-07-22 00:21:30 -04:00
|
|
|
|
2009-10-13 14:24:01 -04:00
|
|
|
FLAVORS= lua no_x11 js
|
2005-07-22 00:21:30 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.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
|
2006-10-21 13:56:48 -04:00
|
|
|
LIB_DEPENDS+= lua.>=5.1::lang/lua
|
2005-07-22 00:21:30 -04:00
|
|
|
WANTLIB+= m
|
|
|
|
.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
|
2005-07-22 00:21:30 -04:00
|
|
|
USE_X11= Yes
|
2009-08-26 15:30:19 -04:00
|
|
|
WANTLIB+= X11
|
2005-07-22 00:21:30 -04:00
|
|
|
.endif
|
|
|
|
|
2009-10-13 14:24:01 -04:00
|
|
|
.if ${FLAVOR:L:Mjs}
|
|
|
|
CONFIGURE_ARGS+= --with-spidermonkey
|
|
|
|
LIB_DEPENDS+= js.>=2.0::lang/spidermonkey
|
2009-10-14 07:01:28 -04:00
|
|
|
WANTLIB+= pthread
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include/js -pthread
|
2009-10-13 14:24:01 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-spidermonkey
|
|
|
|
.endif
|
|
|
|
|
2005-07-22 00:21:30 -04:00
|
|
|
.include <bsd.port.mk>
|