71 lines
1.4 KiB
Makefile
71 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.24 2010/10/24 21:40:09 ajacoutot Exp $
|
|
|
|
COMMENT= full-featured text WWW browser
|
|
DISTNAME= elinks-0.11.7
|
|
REVISION= 4
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://elinks.cz/download/
|
|
|
|
HOMEPAGE= http://elinks.cz/
|
|
|
|
MAINTAINER= Edd Barrett <edd@openbsd.org>
|
|
|
|
# GPL, v2 only
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include \
|
|
-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS+= --with-bzlib \
|
|
--disable-xbel \
|
|
--disable-backtrace \
|
|
--enable-gopher \
|
|
--enable-256-colors \
|
|
--with-libiconv=${LOCALBASE}
|
|
|
|
# don't hide compiler command lines
|
|
MAKE_ENV= V=true
|
|
LIB_DEPENDS+= ::archivers/bzip2 \
|
|
::devel/libidn
|
|
|
|
USE_GMAKE= Yes
|
|
USE_GROFF = Yes
|
|
|
|
RUN_DEPENDS= ::devel/gettext
|
|
WANTLIB= bz2 crypto c idn ssl z
|
|
MODULES= converters/libiconv
|
|
|
|
FLAVORS= lua no_x11 js
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mlua}
|
|
BROKEN= has this ever worked?
|
|
CONFIGURE_ARGS+= --with-lua
|
|
LIB_DEPENDS+= ::lang/lua
|
|
WANTLIB+= m lua.>=5.1
|
|
.else
|
|
CONFIGURE_ARGS+= --without-lua
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
CONFIGURE_ARGS+= --without-x
|
|
.else
|
|
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
|
|
CONFIGURE_ARGS+= --without-spidermonkey
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|