diff options
author | sat <sat@FreeBSD.org> | 2007-08-18 08:45:59 +0800 |
---|---|---|
committer | sat <sat@FreeBSD.org> | 2007-08-18 08:45:59 +0800 |
commit | 0dbc4ea089ddc383a3990a933c92a457de5d6189 (patch) | |
tree | 19f382ee3afc82d25476761bdbefef890df23ff9 /www/netsurf | |
parent | 189bb7d553347057be8544d686c5bb7a4688808f (diff) | |
download | freebsd-ports-gnome-0dbc4ea089ddc383a3990a933c92a457de5d6189.tar.gz freebsd-ports-gnome-0dbc4ea089ddc383a3990a933c92a457de5d6189.tar.zst freebsd-ports-gnome-0dbc4ea089ddc383a3990a933c92a457de5d6189.zip |
Add port www/netsurf:
NetSurf is a lightweight cross-platform Web browser. It supports the
HTML 4 and CSS standards and provides a small, fast, and comprehensive
Web browsing solution. NetSurf was originally written for RISC OS.
WWW: http://www.netsurf-browser.org/
Diffstat (limited to 'www/netsurf')
-rw-r--r-- | www/netsurf/Makefile | 53 | ||||
-rw-r--r-- | www/netsurf/distinfo | 3 | ||||
-rw-r--r-- | www/netsurf/files/patch-utils__config.h | 10 | ||||
-rw-r--r-- | www/netsurf/pkg-descr | 5 | ||||
-rw-r--r-- | www/netsurf/pkg-plist | 32 |
5 files changed, 103 insertions, 0 deletions
diff --git a/www/netsurf/Makefile b/www/netsurf/Makefile new file mode 100644 index 000000000000..62c9be8d8f83 --- /dev/null +++ b/www/netsurf/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: netsurf +# Date created: 17 August 2007 +# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= netsurf +PORTVERSION= 1.1 +DISTVERSIONSUFFIX= -src +CATEGORIES= www +MASTER_SITES= http://www.netsurf-browser.org/download/ CENKES + +MAINTAINER= infofarmer@FreeBSD.org +COMMENT= A lightweight web browser + +BUILD_DEPENDS= lemon:${PORTSDIR}/devel/lemon \ + re2c:${PORTSDIR}/devel/re2c +LIB_DEPENDS= mng.1:${PORTSDIR}/graphics/libmng \ + curl.4:${PORTSDIR}/ftp/curl + +USE_GMAKE= yes +USE_GNOME= libglade2 libxml2 +MAKEFILE= makefile +ALL_TARGET= gtk +CFLAGS+= -fgnu89-inline +WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} +MAKE_ARGS= CC="${CC}" SYSTEM_CC="${CC}" WARNFLAGS= + +post-extract: + @cd ${WRKSRC}/gtk/&&${CP} -RL res resderef + @cd ${WRKSRC}/&&${MV} ChangeLog ReadMe Docs/ + +post-patch: + @${REINPLACE_CMD} -e 's| @| |;s|-O |$${CFLAGS}|'\ + ${WRKSRC}/makefile + +pre-build: + @${LN} -sf ${LOCALBASE}/share/lemon/lempar.c ${WRKSRC}/css/ + @${ECHO_CMD} '#!/bin/sh' > ${WRKSRC}/${PORTNAME} + @${ECHO_CMD} 'export NETSURFRES=${DATADIR}/;exec ${PREFIX}/libexec/${PORTNAME}'\ + >> ${WRKSRC}/${PORTNAME} + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/nsgtk ${PREFIX}/libexec/${PORTNAME} + @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ + @cd ${WRKSRC}/gtk/resderef/&&${COPYTREE_SHARE} . ${DATADIR}/ +.ifndef NOPORTDOCS + @${INSTALL} -d ${DOCSDIR}/ + @cd ${WRKSRC}/Docs/&&${INSTALL_DATA} * ${DOCSDIR}/ +.endif + +.include <bsd.port.mk> diff --git a/www/netsurf/distinfo b/www/netsurf/distinfo new file mode 100644 index 000000000000..1419dc505d2c --- /dev/null +++ b/www/netsurf/distinfo @@ -0,0 +1,3 @@ +MD5 (netsurf-1.1-src.tar.gz) = 833981afd97b1921df34d3702cc90469 +SHA256 (netsurf-1.1-src.tar.gz) = 9646498ab2a6e68ed8c22e8a6a8e9c6a88f5ce54b075df03d99fc9bed7a43414 +SIZE (netsurf-1.1-src.tar.gz) = 987786 diff --git a/www/netsurf/files/patch-utils__config.h b/www/netsurf/files/patch-utils__config.h new file mode 100644 index 000000000000..37ab5d10d01e --- /dev/null +++ b/www/netsurf/files/patch-utils__config.h @@ -0,0 +1,10 @@ +--- ./utils/config.h.orig 2007-08-17 16:06:48.000000000 +0400 ++++ ./utils/config.h 2007-08-17 16:06:57.000000000 +0400 +@@ -18,6 +18,7 @@ + + #ifndef _NETSURF_UTILS_CONFIG_H_ + #define _NETSURF_UTILS_CONFIG_H_ ++#include <sys/types.h> + + /* Try to detect which features the target OS supports */ + diff --git a/www/netsurf/pkg-descr b/www/netsurf/pkg-descr new file mode 100644 index 000000000000..8744d83abc03 --- /dev/null +++ b/www/netsurf/pkg-descr @@ -0,0 +1,5 @@ +NetSurf is a lightweight cross-platform Web browser. It supports the +HTML 4 and CSS standards and provides a small, fast, and comprehensive +Web browsing solution. NetSurf was originally written for RISC OS. + +WWW: http://www.netsurf-browser.org/ diff --git a/www/netsurf/pkg-plist b/www/netsurf/pkg-plist new file mode 100644 index 000000000000..6260c10c3dc9 --- /dev/null +++ b/www/netsurf/pkg-plist @@ -0,0 +1,32 @@ +bin/netsurf +libexec/netsurf +%%PORTDOCS%%%%DOCSDIR%%/00-overview +%%PORTDOCS%%%%DOCSDIR%%/01-content +%%PORTDOCS%%%%DOCSDIR%%/02-layout +%%PORTDOCS%%%%DOCSDIR%%/03-css +%%PORTDOCS%%%%DOCSDIR%%/04-errors +%%PORTDOCS%%%%DOCSDIR%%/05-memory +%%PORTDOCS%%%%DOCSDIR%%/06-frames +%%PORTDOCS%%%%DOCSDIR%%/BUILDING-GTK +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/Doxyfile +%%PORTDOCS%%%%DOCSDIR%%/ReadMe +%%PORTDOCS%%%%DOCSDIR%%/TODO-CSS +%%PORTDOCS%%%%DOCSDIR%%/TODO-HTML +%%DATADIR%%/adblock.css +%%DATADIR%%/ca-bundle.txt +%%DATADIR%%/default.css +%%DATADIR%%/docs/about.html +%%DATADIR%%/docs/intro_en.html +%%DATADIR%%/docs/libcurl +%%DATADIR%%/docs/libmng +%%DATADIR%%/docs/libxml2 +%%DATADIR%%/docs/openssl +%%DATADIR%%/messages +%%DATADIR%%/netsurf-logo.png +%%DATADIR%%/netsurf.glade +%%DATADIR%%/netsurf.xpm +%%DATADIR%%/throbber.gif +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%DATADIR%%/docs +@dirrm %%DATADIR%% |