Skip to content

Commit

Permalink
www/edbrowse: Update to 3.8.5
Browse files Browse the repository at this point in the history
ChangeLog: https://github.com/CMB/edbrowse/blob/master/CHANGES

PR:		266805
Reported by:	asiciliano@FreeBSD.org
  • Loading branch information
alfonsosiciliano authored and Fernando Apesteguía committed Oct 4, 2022
1 parent de4374c commit 869944c
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 11 deletions.
18 changes: 10 additions & 8 deletions www/edbrowse/Makefile
@@ -1,7 +1,6 @@
PORTNAME= edbrowse
DISTVERSIONPREFIX= v
DISTVERSION= 3.7.7
PORTREVISION= 1
DISTVERSION= 3.8.5
CATEGORIES= www editors

MAINTAINER= alfix86@gmail.com
Expand All @@ -10,15 +9,18 @@ WWW= https://edbrowse.org/

LICENSE= GPLv2

LIB_DEPENDS= libpcre.so:devel/pcre \
libcurl.so:ftp/curl \
libtidy5.so:www/tidy-html5 \
libduktape.so:lang/duktape-lib
BUILD_DEPENDS= ${LOCALBASE}/include/quickjs/quickjs.h:lang/quickjs \
${LOCALBASE}/lib/quickjs/libquickjs.a:lang/quickjs
LIB_DEPENDS= libcurl.so:ftp/curl \
libodbc.so:databases/unixODBC \
libpcre2-8.so:devel/pcre2

USES= cmake:insource compiler:c11 perl5 readline
USES= compiler:c11 gmake perl5 pkgconfig readline
USE_PERL5= build
USE_GITHUB= yes

MAKEFILE= makefile

GH_ACCOUNT= CMB

PLIST_FILES= bin/${PORTNAME} \
Expand All @@ -30,7 +32,7 @@ OPTIONS_DEFINE= DOCS

do-install:
${INSTALL_MAN} ${WRKSRC}/doc/man-edbrowse-freebsd.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}.1
${INSTALL_PROGRAM} ${WRKSRC}/edbrowse ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/edbrowse ${STAGEDIR}${PREFIX}/bin

post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
Expand Down
6 changes: 3 additions & 3 deletions www/edbrowse/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1604765984
SHA256 (CMB-edbrowse-v3.7.7_GH0.tar.gz) = bc015decc022d90f482a7f1028e9a56aa84f17406879f9aa1060e1dc175ed00f
SIZE (CMB-edbrowse-v3.7.7_GH0.tar.gz) = 835830
TIMESTAMP = 1664835405
SHA256 (CMB-edbrowse-v3.8.5_GH0.tar.gz) = 4fb6ce7962560552b370c55467dc65f6d751de06ba373ac7c4678625daed37b4
SIZE (CMB-edbrowse-v3.8.5_GH0.tar.gz) = 928505
11 changes: 11 additions & 0 deletions www/edbrowse/files/patch-makefile
@@ -0,0 +1,11 @@
--- makefile.orig 2022-10-04 00:20:51 UTC
+++ makefile
@@ -2,7 +2,7 @@ all :
# This only works if you are making the default target.

all :
- cd src ; make
+ cd src && $(MAKE)

clean :
cd src ; make clean
20 changes: 20 additions & 0 deletions www/edbrowse/files/patch-src_makefile
@@ -0,0 +1,20 @@
--- src/makefile.orig 2022-10-03 21:56:00 UTC
+++ src/makefile
@@ -1,7 +1,7 @@ PERL ?= perl
# compiler and flags
CC ?= cc
PERL ?= perl
-QUICKJS_DIR ?= ../../quickjs
+QUICKJS_DIR ?= /usr/local/include/quickjs
CFLAGS += -Wall -Wno-unused -D_FILE_OFFSET_BITS=64
ifeq ($(shell uname),Linux)
PLATFORM_CFLAGS = -DEDBROWSE_ON_LINUX
@@ -34,7 +34,7 @@ LDFLAGS = $(STRIP) $(LINKER_LIBS) -lpthread -lm
LDFLAGS = $(STRIP) $(LINKER_LIBS) -lpthread -lm

# LDFLAGS for quickjs loading.
-QUICKJS_LDFLAGS = $(QUICKJS_DIR)/libquickjs.a -ldl
+QUICKJS_LDFLAGS = /usr/local/lib/quickjs/libquickjs.a -ldl
ifeq ($(shell uname),Linux)
QUICKJS_LDFLAGS += -latomic
endif

0 comments on commit 869944c

Please sign in to comment.