aboutsummaryrefslogtreecommitdiff
path: root/www/netsurf
diff options
context:
space:
mode:
authorOlivier Duchateau <olivierd@FreeBSD.org>2016-11-21 14:11:19 +0000
committerOlivier Duchateau <olivierd@FreeBSD.org>2016-11-21 14:11:19 +0000
commit39c0f174f4217d7ade2cc9e525c18d51deabd969 (patch)
treed5c2ecdacafb9e38f7963c5015923c43272b0206 /www/netsurf
parent57ffef978c063f0db8f9b63782c2b8c9335dac44 (diff)
downloadports-39c0f174f4217d7ade2cc9e525c18d51deabd969.tar.gz
ports-39c0f174f4217d7ade2cc9e525c18d51deabd969.zip
Notes
Diffstat (limited to 'www/netsurf')
-rw-r--r--www/netsurf/Makefile40
-rw-r--r--www/netsurf/distinfo5
-rw-r--r--www/netsurf/files/patch-Makefile10
-rw-r--r--www/netsurf/files/patch-frontends_gtk_Makefile.defaults11
-rw-r--r--www/netsurf/files/patch-frontends_gtk_gui.c (renamed from www/netsurf/files/patch-gtk_gui.c)6
-rw-r--r--www/netsurf/files/patch-gtk_Makefile.defaults13
-rw-r--r--www/netsurf/files/patch-gtk_Makefile.target15
-rw-r--r--www/netsurf/pkg-plist30
8 files changed, 70 insertions, 60 deletions
diff --git a/www/netsurf/Makefile b/www/netsurf/Makefile
index 05599c4d3bfc..6fdd66dc5d8b 100644
--- a/www/netsurf/Makefile
+++ b/www/netsurf/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= netsurf
-PORTVERSION= 3.5
+PORTVERSION= 3.6
CATEGORIES= www
MASTER_SITES= http://download.netsurf-browser.org/netsurf/releases/source/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
@@ -23,17 +23,26 @@ LIB_DEPENDS= libcurl.so:ftp/curl \
libnsgif.so:graphics/libnsgif \
libnsbmp.so:graphics/libnsbmp \
libdom.so:www/libdom \
- libcss.so:textproc/libcss
+ libcss.so:textproc/libcss \
+ libparserutils.so:devel/libparserutils \
+ libwapcaplet.so:textproc/libwapcaplet \
+ libhubbub.so:www/libhubbub \
+ libexpat.so:textproc/expat2 \
+ libnspsl.so:dns/libnspsl
+RUN_DEPENDS= duk:lang/duktape \
+ ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
ALL_TARGET= #empty
-LDFLAGS+= -lssl -lcrypto -L${LOCALBASE}/lib ${ICONV_LIB}
+LDFLAGS+= -L${OPENSSLLIB} -lssl -lcrypto ${ICONV_LIB}
+CFLAGS+= -I${OPENSSLINC}
MAKE_ARGS= HOST_CC="${CC}" CC="${CC}" CCOPT="" HOST="${OPSYS}" \
+ TARGET="gtk3" \
WARNFLAGS="" Q="" OPTCFLAGS="${CFLAGS}"
MAKE_ENV+= COMPONENT_TYPE="lib-shared" \
FLEX="${LOCALBASE}/bin/flex"
-USES= bison desktop-file-utils gmake iconv jpeg \
- localbase perl5 pkgconfig shebangfix
-USE_GNOME= glib20 gtk20 librsvg2
+USES= bison desktop-file-utils gettext-runtime gmake iconv jpeg \
+ localbase pkgconfig shebangfix ssl
+USE_GNOME= glib20 gtk30 cairo librsvg2
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
@@ -49,13 +58,9 @@ post-patch:
@${REINPLACE_CMD} '/CFLAGS/d' \
${WRKSRC}//Makefile.defaults
@${REINPLACE_CMD} 's| -O2||' \
- ${WRKSRC}/gtk/Makefile.defaults
- @${REINPLACE_CMD} \
- -e '/OpenSSL/d' -e 's| -g||' \
- -e 's/-DG_DISABLE_DEPRECATED//' \
- ${WRKSRC}/gtk/Makefile.target
+ ${WRKSRC}/frontends/gtk/Makefile.defaults
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
- ${WRKSRC}/gtk/gui.c
+ ${WRKSRC}/frontends/gtk/gui.c
do-configure:
@${CP} ${FILESDIR}/Makefile.config ${WRKSRC}
@@ -68,4 +73,15 @@ do-configure:
${WRKSRC}/Makefile.config
.endif
+post-install:
+ cd ${STAGEDIR}${PREFIX}/bin && ${LN} -sf netsurf-gtk3 \
+ netsurf-gtk
+.for d in applications pixmaps
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/${d}
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/frontends/gtk/res/netsurf-gtk.desktop \
+ ${STAGEDIR}${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/frontends/gtk/res/netsurf.xpm \
+ ${STAGEDIR}${PREFIX}/share/pixmaps
+
.include <bsd.port.post.mk>
diff --git a/www/netsurf/distinfo b/www/netsurf/distinfo
index a109e0804fc1..be07f8ee2345 100644
--- a/www/netsurf/distinfo
+++ b/www/netsurf/distinfo
@@ -1,2 +1,3 @@
-SHA256 (netsurf-3.5-src.tar.gz) = 98f3a66d3ae24ab34becdab2ea690f8f20c0f49f86723f133ede6df57e451dcc
-SIZE (netsurf-3.5-src.tar.gz) = 4094532
+TIMESTAMP = 1479722228
+SHA256 (netsurf-3.6-src.tar.gz) = 59ae4b50eff9e2a00a0a9742ef546c7de17223139c485af9644f195340979a9c
+SIZE (netsurf-3.6-src.tar.gz) = 4129091
diff --git a/www/netsurf/files/patch-Makefile b/www/netsurf/files/patch-Makefile
new file mode 100644
index 000000000000..0a924cd51373
--- /dev/null
+++ b/www/netsurf/files/patch-Makefile
@@ -0,0 +1,10 @@
+--- Makefile.orig 2016-11-19 13:37:41 UTC
++++ Makefile
+@@ -555,7 +555,6 @@ ifeq ($(HOST),mint)
+ else
+ $(eval $(call pkg_config_find_and_add_enabled,CURL,libcurl,Curl))
+ endif
+-$(eval $(call pkg_config_find_and_add_enabled,OPENSSL,openssl,OpenSSL))
+
+ $(eval $(call pkg_config_find_and_add_enabled,PNG,libpng,PNG))
+ $(eval $(call pkg_config_find_and_add_enabled,BMP,libnsbmp,BMP))
diff --git a/www/netsurf/files/patch-frontends_gtk_Makefile.defaults b/www/netsurf/files/patch-frontends_gtk_Makefile.defaults
new file mode 100644
index 000000000000..0db9fd17a985
--- /dev/null
+++ b/www/netsurf/files/patch-frontends_gtk_Makefile.defaults
@@ -0,0 +1,11 @@
+--- frontends/gtk/Makefile.defaults.orig 2016-11-19 13:37:41 UTC
++++ frontends/gtk/Makefile.defaults
+@@ -4,7 +4,7 @@
+
+ # Where to search for NetSurf's resources after looking in ~/.netsurf and
+ # $NETSURFRES. It must have a trailing /
+-NETSURF_GTK_RES_PATH := $(PREFIX)/share/netsurf/:./frontends/gtk/res/
++NETSURF_GTK_RES_PATH := $(PREFIX)/share/netsurf/
+
+ # Where to install the netsurf binary
+ NETSURF_GTK_BIN := $(PREFIX)/bin/
diff --git a/www/netsurf/files/patch-gtk_gui.c b/www/netsurf/files/patch-frontends_gtk_gui.c
index 2b95803bc50c..f1d31d19927d 100644
--- a/www/netsurf/files/patch-gtk_gui.c
+++ b/www/netsurf/files/patch-frontends_gtk_gui.c
@@ -1,6 +1,6 @@
---- gtk/gui.c.orig 2016-04-06 10:39:35 UTC
-+++ gtk/gui.c
-@@ -199,7 +199,7 @@ static nserror set_defaults(struct nsopt
+--- frontends/gtk/gui.c.orig 2016-11-19 13:37:41 UTC
++++ frontends/gtk/gui.c
+@@ -198,7 +198,7 @@ static nserror set_defaults(struct nsopt
}
/* default path to certificates */
diff --git a/www/netsurf/files/patch-gtk_Makefile.defaults b/www/netsurf/files/patch-gtk_Makefile.defaults
deleted file mode 100644
index 9f3f883b4c85..000000000000
--- a/www/netsurf/files/patch-gtk_Makefile.defaults
+++ /dev/null
@@ -1,13 +0,0 @@
-Revert: Update gtk resource path setting to use makefile variable.
-
---- gtk/Makefile.defaults.orig 2016-04-06 10:39:35 UTC
-+++ gtk/Makefile.defaults
-@@ -4,7 +4,7 @@
-
- # Where to search for NetSurf's resources after looking in ~/.netsurf and
- # $NETSURFRES. It must have a trailing /
--NETSURF_GTK_RESOURCES := $(PREFIX)/share/netsurf/:./gtk/res/
-+NETSURF_GTK_RESOURCES := $(PREFIX)/share/netsurf/
-
- # Where to install the netsurf binary
- NETSURF_GTK_BIN := $(PREFIX)/bin/
diff --git a/www/netsurf/files/patch-gtk_Makefile.target b/www/netsurf/files/patch-gtk_Makefile.target
deleted file mode 100644
index cc4cbf4d9bc9..000000000000
--- a/www/netsurf/files/patch-gtk_Makefile.target
+++ /dev/null
@@ -1,15 +0,0 @@
---- gtk/Makefile.target.orig 2016-02-16 13:30:38 UTC
-+++ gtk/Makefile.target
-@@ -210,7 +210,11 @@ GTK_TRANSLATIONS_HTML := de en fr it ja
-
- install-gtk:
- $(Q)mkdir -p $(DESTDIR)$(NETSURF_GTK_BIN)
-- $(Q)install nsgtk $(DESTDIR)$(NETSURF_GTK_BIN)netsurf
-+ $(Q)install nsgtk $(DESTDIR)$(NETSURF_GTK_BIN)netsurf-gtk
-+ $(Q)mkdir -p $(DESTDIR)$(PREFIX)/share/applications
-+ $(Q)install -m 0644 gtk/res/*.desktop $(DESTDIR)$(PREFIX)/share/applications/netsurf.desktop
-+ $(Q)mkdir -p $(DESTDIR)$(PREFIX)/share/pixmaps
-+ $(Q)install -m 0644 gtk/res/netsurf.xpm $(DESTDIR)$(PREFIX)/share/pixmaps
- $(Q)mkdir -p $(DESTDIR)$(NETSURF_GTK_RESOURCES)icons
- $(Q)install -m 0644 gtk/res/icons/*.png $(DESTDIR)$(NETSURF_GTK_RESOURCES)/icons
- $(Q)mkdir -p $(DESTDIR)$(NETSURF_GTK_RESOURCES)throbber
diff --git a/www/netsurf/pkg-plist b/www/netsurf/pkg-plist
index 62bd9d983fff..3c925ff2399b 100644
--- a/www/netsurf/pkg-plist
+++ b/www/netsurf/pkg-plist
@@ -1,17 +1,18 @@
bin/netsurf-gtk
-share/applications/netsurf.desktop
+bin/netsurf-gtk3
+share/applications/netsurf-gtk.desktop
%%DATADIR%%/Messages
%%DATADIR%%/SearchEngines
%%DATADIR%%/adblock.css
%%DATADIR%%/arrow_down_8x32.png
%%DATADIR%%/ca-bundle.txt
-%%DATADIR%%/cookies.gtk2.ui
+%%DATADIR%%/cookies.gtk3.ui
%%DATADIR%%/credits.html
%%DATADIR%%/de/Messages
%%DATADIR%%/de/welcome.html
%%DATADIR%%/default.css
%%DATADIR%%/default.ico
-%%DATADIR%%/downloads.gtk2.ui
+%%DATADIR%%/downloads.gtk3.ui
%%DATADIR%%/en/Messages
%%DATADIR%%/en/credits.html
%%DATADIR%%/en/licence.html
@@ -19,8 +20,8 @@ share/applications/netsurf.desktop
%%DATADIR%%/en/welcome.html
%%DATADIR%%/favicon.png
%%DATADIR%%/fr/Messages
-%%DATADIR%%/history.gtk2.ui
-%%DATADIR%%/hotlist.gtk2.ui
+%%DATADIR%%/history.gtk3.ui
+%%DATADIR%%/hotlist.gtk3.ui
%%DATADIR%%/icons/arrow-l.png
%%DATADIR%%/icons/content.png
%%DATADIR%%/icons/directory.png
@@ -36,21 +37,21 @@ share/applications/netsurf.desktop
%%DATADIR%%/ja/welcome.html
%%DATADIR%%/languages
%%DATADIR%%/licence.html
-%%DATADIR%%/login.gtk2.ui
+%%DATADIR%%/login.gtk3.ui
%%DATADIR%%/maps.html
%%DATADIR%%/netsurf-16x16.xpm
-%%DATADIR%%/netsurf.gtk2.ui
+%%DATADIR%%/netsurf.gtk3.ui
%%DATADIR%%/netsurf.png
%%DATADIR%%/netsurf.xpm
%%DATADIR%%/nl/Messages
%%DATADIR%%/nl/credits.html
%%DATADIR%%/nl/licence.html
%%DATADIR%%/nl/welcome.html
-%%DATADIR%%/options.gtk2.ui
-%%DATADIR%%/password.gtk2.ui
+%%DATADIR%%/options.gtk3.ui
+%%DATADIR%%/password.gtk3.ui
%%DATADIR%%/quirks.css
-%%DATADIR%%/ssl.gtk2.ui
-%%DATADIR%%/tabcontents.gtk2.ui
+%%DATADIR%%/ssl.gtk3.ui
+%%DATADIR%%/tabcontents.gtk3.ui
%%DATADIR%%/throbber/throbber0.png
%%DATADIR%%/throbber/throbber1.png
%%DATADIR%%/throbber/throbber2.png
@@ -60,9 +61,8 @@ share/applications/netsurf.desktop
%%DATADIR%%/throbber/throbber6.png
%%DATADIR%%/throbber/throbber7.png
%%DATADIR%%/throbber/throbber8.png
-%%DATADIR%%/toolbar.gtk2.ui
-%%DATADIR%%/toolbarIndices
-%%DATADIR%%/viewdata.gtk2.ui
-%%DATADIR%%/warning.gtk2.ui
+%%DATADIR%%/toolbar.gtk3.ui
+%%DATADIR%%/viewdata.gtk3.ui
+%%DATADIR%%/warning.gtk3.ui
%%DATADIR%%/welcome.html
share/pixmaps/netsurf.xpm