Skip to content

Commit

Permalink
- only link with pthread for the -js flavor
Browse files Browse the repository at this point in the history
- list the js flavor in DESCR
- bump

ok edd@ (maintainer)
  • Loading branch information
sthen committed Oct 14, 2009
1 parent ee58749 commit 2186ddc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions www/elinks/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.19 2009/10/13 20:50:27 edd Exp $
# $OpenBSD: Makefile,v 1.20 2009/10/14 11:01:28 sthen Exp $

COMMENT= full-featured text WWW browser
DISTNAME= elinks-0.11.7
PKGNAME= ${DISTNAME}p2
PKGNAME= ${DISTNAME}p3
CATEGORIES= www
MASTER_SITES= http://elinks.cz/download/

Expand All @@ -18,8 +18,7 @@ PERMIT_DISTFILES_FTP= Yes

CONFIGURE_STYLE= gnu
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include \
-I${LOCALBASE}/include/js -L${LOCALBASE}/lib \
-pthread"
-L${LOCALBASE}/lib"

CONFIGURE_ARGS+= --with-bzlib \
--disable-xbel \
Expand All @@ -35,7 +34,7 @@ LIB_DEPENDS+= bz2::archivers/bzip2 \
USE_GMAKE= Yes

RUN_DEPENDS= ::devel/gettext
WANTLIB= crypto c z ssl pthread
WANTLIB= crypto c z ssl
MODULES= converters/libiconv

FLAVORS= lua no_x11 js
Expand All @@ -61,9 +60,10 @@ WANTLIB+= X11
.if ${FLAVOR:L:Mjs}
CONFIGURE_ARGS+= --with-spidermonkey
LIB_DEPENDS+= js.>=2.0::lang/spidermonkey
WANTLIB+= pthread
CFLAGS+= -I${LOCALBASE}/include/js -pthread
.else
CONFIGURE_ARGS+= --without-spidermonkey
.endif


.include <bsd.port.mk>
1 change: 1 addition & 0 deletions www/elinks/pkg/DESCR
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +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
lua - build with Lua support
no_x11 - build without X11 support

0 comments on commit 2186ddc

Please sign in to comment.