Import netsurf-2.5, a very lightweight web browser for RISC OS and UNIX-like

platforms. It doesn't do javascript, but who cares about web2.0 anyway ?
Sub-projects are :
- hubbub : HTML parser
- libcss : CSS parser and selection engine
- libnsbmp : BMP/ICO decoding library
- libnsgif : GIF decoding library
- libparserutils : utility library for parser building
- libwapcaplet : string internment library

Currently SIGBUS'es on sparc64 in libcss, being worked on with upstream.

Loosely based on a submission from Anthony J Bentley, reworked by myself.
This commit is contained in:
landry 2010-06-29 20:11:13 +00:00
parent 45fe5b3eb4
commit 7b2f43f902
44 changed files with 781 additions and 0 deletions

11
www/netsurf/Makefile Normal file
View File

@ -0,0 +1,11 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
SUBDIR += browser
SUBDIR += hubbub
SUBDIR += libcss
SUBDIR += libnsbmp
SUBDIR += libnsgif
SUBDIR += libparserutils
SUBDIR += libwapcaplet
.include <bsd.port.subdir.mk>

29
www/netsurf/Makefile.inc Normal file
View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile.inc,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
CATEGORIES += www/netsurf
# child ports MUST define NETSURF_{PROJECT,VERSION}
PKGNAME ?= ${DISTNAME:S/-src//}
DISTNAME ?= ${NETSURF_PROJECT}-${NETSURF_VERSION}-src
HOMEPAGE ?= http://www.netsurf-browser.org/projects/${NETSURF_PROJECT}/
MASTER_SITES ?= http://www.netsurf-browser.org/projects/releases/
# MIT for libs / GPLv2 for netsurf
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
DESTDIRNAME = ${DESTDIR}
WRKDIST ?= ${WRKDIR}/${DISTNAME:S/-src//}
REGRESS_TARGET =test
USE_GMAKE = Yes
# not used for browser
.for _l _v in ${SHARED_LIBS}
MAKE_FLAGS += COMPONENT_TYPE=lib-shared \
LIB${_l}_VERSION=${_v}
.endfor

View File

@ -0,0 +1,40 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
COMMENT = lightweight web browser
NETSURF_PROJECT = netsurf
NETSURF_VERSION = 2.5
CATEGORIES= www
HOMEPAGE= http://www.netsurf-browser.org/
MASTER_SITES = ${HOMEPAGE}downloads/releases/
LIB_DEPENDS = hubbub::www/netsurf/hubbub \
css::www/netsurf/libcss \
nsgif::www/netsurf/libnsgif \
nsbmp::www/netsurf/libnsbmp \
mng::graphics/libmng \
gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
glade-2.0::devel/libglade2 \
rsvg-2::x11/gnome/librsvg \
curl::net/curl
WANTLIB += atk-1.0 cairo gio-2.0 glib-2.0 glitz gmodule-2.0 gobject-2.0
WANTLIB += gthread-2.0 iconv intl jpeg lcms pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 parserutils png wapcaplet xml2
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender c crypto expat fontconfig
WANTLIB += freetype m pixman-1 pthread pthread-stubs ssl xcb
WANTLIB += xcb-render xcb-render-util z
WRKDIST = ${WRKDIR}/netsurf
do-configure:
@echo "NETSURF_USE_HARU_PDF := NO\n" \
"NETSURF_USE_LIBICONV_PLUG := NO\n" \
"NETSURF_USE_RSVG := YES\n" \
"NETSURF_USE_NSSVG := NO\n" \
"NETSURF_USE_ROSPRITE := NO" > ${WRKSRC}/Makefile.config
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (netsurf-2.5-src.tar.gz) = eTj0xZ7PYkGzZEK3Cs2SAw==
RMD160 (netsurf-2.5-src.tar.gz) = YnZS3t1QAe5p/HgDnPJ47C2kzpc=
SHA1 (netsurf-2.5-src.tar.gz) = 6aZREl3LdBOU2XLpd5DRM+Gyzo0=
SHA256 (netsurf-2.5-src.tar.gz) = CwNi4jWvLw2NW4yd2kt5Pbbt8znE+PVG+o1FbRwxSU8=
SIZE (netsurf-2.5-src.tar.gz) = 1684294

View File

@ -0,0 +1,79 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
--- Makefile.orig Mon Apr 19 22:56:28 2010
+++ Makefile Fri Jun 25 19:04:35 2010
@@ -102,8 +102,8 @@ ifneq ($(TARGET),riscos)
endif
endif
-Q=@
-VQ=@
+Q=
+VQ=
PERL=perl
MKDIR=mkdir
TOUCH=touch
@@ -424,7 +424,7 @@ endif
# ----------------------------------------------------------------------------
ifeq ($(TARGET),gtk)
- LDFLAGS += $(shell $(PKG_CONFIG) --libs libxml-2.0 libcurl libhubbub openssl)
+ LDFLAGS += $(shell $(PKG_CONFIG) --libs libxml-2.0 libcurl libhubbub)
LDFLAGS += $(shell $(PKG_CONFIG) --libs libcss)
# define additional CFLAGS and LDFLAGS requirements for pkg-configed libs here
@@ -452,7 +452,7 @@ ifeq ($(TARGET),gtk)
-DGTK_RESPATH=\"$(NETSURF_GTK_RESOURCES)\" \
$(WARNFLAGS) -I. -g \
$(shell $(PKG_CONFIG) --cflags libglade-2.0 gtk+-2.0) \
- $(shell $(PKG_CONFIG) --cflags libhubbub libcurl openssl) \
+ $(shell $(PKG_CONFIG) --cflags libhubbub libcurl) \
$(shell xml2-config --cflags)
GTKLDFLAGS := $(shell $(PKG_CONFIG) --cflags --libs libglade-2.0 gtk+-2.0 gthread-2.0 gmodule-2.0 lcms)
@@ -799,26 +799,26 @@ clean: $(CLEANS)
install-gtk: nsgtk
mkdir -p $(DESTDIR)$(NETSURF_GTK_RESOURCES)throbber
mkdir -p $(DESTDIR)$(NETSURF_GTK_BIN)
- @cp -v nsgtk $(DESTDIR)$(NETSURF_GTK_BIN)netsurf
- @cp -vRL gtk/res/adblock.css $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/arrow_down_8x32.png $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/blankpage $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/ca-bundle.txt $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/default.css $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/default.ico $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/favicon.png $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/gtkdefault.css $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/license $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/languages $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/netsurf.xpm $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/netsurf-16x16.xpm $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/quirks.css $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/themelist $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/throbber/*.png $(DESTDIR)$(NETSURF_GTK_RESOURCES)/throbber
- @cp -vRL gtk/res/toolbarIndices $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/Aliases $(DESTDIR)$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/docs $(DESTDIR)/$(NETSURF_GTK_RESOURCES)
- @cp -vRL gtk/res/SearchEngines $(DESTDIR)$(NETSURF_GTK_RESOURCES)SearchEngines
+ @cp nsgtk $(DESTDIR)$(NETSURF_GTK_BIN)netsurf
+ @cp -RL gtk/res/adblock.css $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/arrow_down_8x32.png $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/blankpage $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/ca-bundle.txt $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/default.css $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/default.ico $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/favicon.png $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/gtkdefault.css $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/license $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/languages $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/netsurf.xpm $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/netsurf-16x16.xpm $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/quirks.css $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/themelist $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/throbber/*.png $(DESTDIR)$(NETSURF_GTK_RESOURCES)/throbber
+ @cp -RL gtk/res/toolbarIndices $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/Aliases $(DESTDIR)$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/docs $(DESTDIR)/$(NETSURF_GTK_RESOURCES)
+ @cp -RL gtk/res/SearchEngines $(DESTDIR)$(NETSURF_GTK_RESOURCES)SearchEngines
gzip -9v < gtk/res/downloads.glade > $(DESTDIR)$(NETSURF_GTK_RESOURCES)downloads.glade
gzip -9v < gtk/res/history.glade > $(DESTDIR)$(NETSURF_GTK_RESOURCES)history.glade
gzip -9v < gtk/res/login.glade > $(DESTDIR)$(NETSURF_GTK_RESOURCES)login.glade

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile_defaults,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
--- Makefile.defaults.orig Tue Jun 1 16:17:21 2010
+++ Makefile.defaults Tue Jun 1 16:18:02 2010
@@ -82,7 +82,7 @@ NETSURF_USE_LIBICONV_PLUG := YES
CFLAGS :=
# Default installation/execution prefix
-PREFIX := /usr/local
+PREFIX ?= /usr/local
# ----------------------------------------------------------------------------
# RISC OS-specific options

View File

@ -0,0 +1,2 @@
Netsurf is a lightweight, standards-compliant web browser originally
designed for mobile devices.

View File

@ -0,0 +1,48 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
@bin bin/netsurf
share/netsurf/
share/netsurf/Aliases
share/netsurf/SearchEngines
share/netsurf/adblock.css
share/netsurf/arrow_down_8x32.png
share/netsurf/blankpage
share/netsurf/ca-bundle.txt
share/netsurf/default.css
share/netsurf/default.ico
share/netsurf/docs/
share/netsurf/docs/about/
share/netsurf/docs/about/index_en,faf
share/netsurf/docs/about/libcurl,b60
share/netsurf/docs/about/libmng,b60
share/netsurf/docs/about/libxml2,b60
share/netsurf/docs/about/openssl,695
share/netsurf/downloads.glade
share/netsurf/favicon.png
share/netsurf/gtkdefault.css
share/netsurf/history.glade
share/netsurf/languages
share/netsurf/license
share/netsurf/login.glade
share/netsurf/messages
share/netsurf/netsurf-16x16.xpm
share/netsurf/netsurf.glade
share/netsurf/netsurf.xpm
share/netsurf/options.glade
share/netsurf/password.glade
share/netsurf/quirks.css
share/netsurf/source.glade
share/netsurf/ssl.glade
share/netsurf/themelist
share/netsurf/throbber/
share/netsurf/throbber/throbber0.png
share/netsurf/throbber/throbber1.png
share/netsurf/throbber/throbber2.png
share/netsurf/throbber/throbber3.png
share/netsurf/throbber/throbber4.png
share/netsurf/throbber/throbber5.png
share/netsurf/throbber/throbber6.png
share/netsurf/throbber/throbber7.png
share/netsurf/throbber/throbber8.png
share/netsurf/toolbar.glade
share/netsurf/toolbarIndices
share/netsurf/warning.glade

View File

@ -0,0 +1,17 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
COMMENT = HTML parser
NETSURF_PROJECT = hubbub
NETSURF_VERSION = 0.0.2
CATEGORIES = www
SHARED_LIBS = hubbub 0.0 #0.0.2
LIB_DEPENDS = parserutils::www/netsurf/libparserutils
# regress broken - needs an old version of json-c
# REGRESS_DEPENDS = ::devel/json-c
NO_REGRESS = Yes
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (hubbub-0.0.2-src.tar.gz) = 29xrsTpxznI4TX7liRoDgg==
RMD160 (hubbub-0.0.2-src.tar.gz) = mhsqYQhclwICgc31cZ4uKIUtJRw=
SHA1 (hubbub-0.0.2-src.tar.gz) = j3w2ZleL3TBvunZ91t0sAxBXzg0=
SHA256 (hubbub-0.0.2-src.tar.gz) = /RlbkegO8uofVY+UvVu134kiixrz6bfFwQOfZdUGqh0=
SIZE (hubbub-0.0.2-src.tar.gz) = 817514

View File

@ -0,0 +1,58 @@
$OpenBSD: patch-build_makefiles_Makefile_top,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
--- build/makefiles/Makefile.top.orig Fri Jun 25 18:53:05 2010
+++ build/makefiles/Makefile.top Fri Jun 25 18:54:01 2010
@@ -94,8 +94,8 @@ endif
# Makefile variables
##############################################################################
-Q ?= @
-VQ ?= @
+Q ?=
+VQ ?=
##############################################################################
# Exported variables (also OUTPUT, further down)
@@ -188,8 +188,8 @@ endif
ifeq ($(findstring lib,$(COMPONENT_TYPE)),lib)
ifeq ($(findstring lib-shared,$(COMPONENT_TYPE)),lib-shared)
SHAREDLIBNAME := lib$(COMPONENT)$(LIBEXT)
- SONAME := $(SHAREDLIBNAME).$(major-version)
- OUTPUT := $(BUILDDIR)/$(SHAREDLIBNAME).$(COMPONENT_VERSION)
+ SONAME := $(SHAREDLIBNAME).$(LIBhubbub_VERSION)
+ OUTPUT := $(BUILDDIR)/$(SHAREDLIBNAME).$(LIBhubbub_VERSION)
else
OUTPUT := $(BUILDDIR)/lib$(COMPONENT)$(LIBEXT)
endif
@@ -204,14 +204,6 @@ endif
.PHONY: all test coverage profile docs clean distclean install uninstall \
__default __precov __partial_clean __postshared
-ifeq ($(COMPONENT_TYPE),lib-shared)
- POST_TARGETS := __postshared $(POST_TARGETS)
-
-__postshared:
- $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SONAME)
- $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SHAREDLIBNAME)
-endif
-
# Default target
all: $(PRE_TARGETS) $(OUTPUT) $(POST_TARGETS)
@@ -272,7 +264,7 @@ __required = $(if $(REQUIRED_PKGS), \
# Install a pkg-config control file ($1) to the specified location ($2)
define install_pkgconfig
$(Q)$(SED) \
- -e 's#PREFIX#$(PREFIX)#' \
+ -e 's#PREFIX#$(TRUEPREFIX)#' \
-e 's#MAJOR#$(major-version)#' \
-e 's#MINOR#$(minor-version)#' \
-e 's#PATCH#$(patch-version)#' \
@@ -287,8 +279,6 @@ endef
# TODO: Is this scheme portable?
define install_shared_lib
$(INSTALL) $(INSTALLFLAGS) -m 755 $1 $2/$(notdir $1)
- $(LN) $(LNFLAGS) -f -s $(notdir $1) $2/$(SONAME)
- $(LN) $(LNFLAGS) -f -s $(notdir $1) $2/$(SHAREDLIBNAME)
endef
# Install a file ($1) to the specified location ($2)

View File

@ -0,0 +1,2 @@
Hubbub is a flexible HTML parser. It aims to comply with the HTML5
specification.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
@lib lib/libhubbub.so.${LIBhubbub_VERSION}

View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
%%SHARED%%
include/hubbub/
include/hubbub/errors.h
include/hubbub/functypes.h
include/hubbub/hubbub.h
include/hubbub/parser.h
include/hubbub/tree.h
include/hubbub/types.h
lib/pkgconfig/
lib/pkgconfig/libhubbub.pc

View File

@ -0,0 +1,14 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
COMMENT = CSS parser and selection engine
NETSURF_PROJECT = libcss
NETSURF_VERSION = 0.0.1
CATEGORIES = www
SHARED_LIBS = css 0.0 #0.0.1
LIB_DEPENDS = parserutils::www/netsurf/libparserutils \
wapcaplet::www/netsurf/libwapcaplet
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (libcss-0.0.1-src.tar.gz) = yN16vnvIjE66jTAE7rDYqw==
RMD160 (libcss-0.0.1-src.tar.gz) = /uZmmA+iqUBuUOfTymZl+nSwsEU=
SHA1 (libcss-0.0.1-src.tar.gz) = tRtJi/JuLBKMCt0/H0f5XrveF2c=
SHA256 (libcss-0.0.1-src.tar.gz) = D/kMDjyiLFYuSeIExpaHmRS9EIKKlRSSRu+T0znLJew=
SIZE (libcss-0.0.1-src.tar.gz) = 436815

View File

@ -0,0 +1,58 @@
$OpenBSD: patch-build_makefiles_Makefile_top,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
--- build/makefiles/Makefile.top.orig Fri Jun 25 18:45:10 2010
+++ build/makefiles/Makefile.top Fri Jun 25 18:47:17 2010
@@ -94,8 +94,8 @@ endif
# Makefile variables
##############################################################################
-Q ?= @
-VQ ?= @
+Q ?=
+VQ ?=
##############################################################################
# Exported variables (also OUTPUT, further down)
@@ -188,8 +188,8 @@ endif
ifeq ($(findstring lib,$(COMPONENT_TYPE)),lib)
ifeq ($(findstring lib-shared,$(COMPONENT_TYPE)),lib-shared)
SHAREDLIBNAME := lib$(COMPONENT)$(LIBEXT)
- SONAME := $(SHAREDLIBNAME).$(major-version)
- OUTPUT := $(BUILDDIR)/$(SHAREDLIBNAME).$(COMPONENT_VERSION)
+ SONAME := $(SHAREDLIBNAME).$(LIBcss_VERSION)
+ OUTPUT := $(BUILDDIR)/$(SHAREDLIBNAME).$(LIBcss_VERSION)
else
OUTPUT := $(BUILDDIR)/lib$(COMPONENT)$(LIBEXT)
endif
@@ -204,14 +204,6 @@ endif
.PHONY: all test coverage profile docs clean distclean install uninstall \
__default __precov __partial_clean __postshared
-ifeq ($(COMPONENT_TYPE),lib-shared)
- POST_TARGETS := __postshared $(POST_TARGETS)
-
-__postshared:
- $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SONAME)
- $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SHAREDLIBNAME)
-endif
-
# Default target
all: $(PRE_TARGETS) $(OUTPUT) $(POST_TARGETS)
@@ -272,7 +264,7 @@ __required = $(if $(REQUIRED_PKGS), \
# Install a pkg-config control file ($1) to the specified location ($2)
define install_pkgconfig
$(Q)$(SED) \
- -e 's#PREFIX#$(PREFIX)#' \
+ -e 's#PREFIX#$(TRUEPREFIX)#' \
-e 's#MAJOR#$(major-version)#' \
-e 's#MINOR#$(minor-version)#' \
-e 's#PATCH#$(patch-version)#' \
@@ -287,8 +279,6 @@ endef
# TODO: Is this scheme portable?
define install_shared_lib
$(INSTALL) $(INSTALLFLAGS) -m 755 $1 $2/$(notdir $1)
- $(LN) $(LNFLAGS) -f -s $(notdir $1) $2/$(SONAME)
- $(LN) $(LNFLAGS) -f -s $(notdir $1) $2/$(SHAREDLIBNAME)
endef
# Install a file ($1) to the specified location ($2)

View File

@ -0,0 +1,2 @@
LibCSS is a CSS parser and selection engine. It aims to parse the forward
compatible CSS grammar.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
@lib lib/libcss.so.${LIBcss_VERSION}

View File

@ -0,0 +1,15 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
%%SHARED%%
include/libcss/
include/libcss/computed.h
include/libcss/errors.h
include/libcss/fpmath.h
include/libcss/functypes.h
include/libcss/hint.h
include/libcss/libcss.h
include/libcss/properties.h
include/libcss/select.h
include/libcss/stylesheet.h
include/libcss/types.h
lib/pkgconfig/
lib/pkgconfig/libcss.pc

View File

@ -0,0 +1,11 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
COMMENT = BMP/ICO decoding library
NETSURF_PROJECT = libnsbmp
NETSURF_VERSION = 0.0.2
CATEGORIES = graphics
SHARED_LIBS = nsbmp 0.0 #0.0.2
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (libnsbmp-0.0.2-src.tar.gz) = YZb1Ij90THxkk0IdIF5ZHA==
RMD160 (libnsbmp-0.0.2-src.tar.gz) = llNY9Yef1zjXqYtZOt1ynILcReA=
SHA1 (libnsbmp-0.0.2-src.tar.gz) = 55yZvR31NFz4kMmo5DQQpY0Y3AQ=
SHA256 (libnsbmp-0.0.2-src.tar.gz) = sYuSUrJ0aZN5yt/zmOQMcnkwyfz7a8+O09NG56k8cg4=
SIZE (libnsbmp-0.0.2-src.tar.gz) = 217781

View File

@ -0,0 +1,58 @@
$OpenBSD: patch-build_makefiles_Makefile_top,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
--- build/makefiles/Makefile.top.orig Fri Jun 25 18:29:19 2010
+++ build/makefiles/Makefile.top Fri Jun 25 18:31:05 2010
@@ -94,8 +94,8 @@ endif
# Makefile variables
##############################################################################
-Q ?= @
-VQ ?= @
+Q ?=
+VQ ?=
##############################################################################
# Exported variables (also OUTPUT, further down)
@@ -188,8 +188,8 @@ endif
ifeq ($(findstring lib,$(COMPONENT_TYPE)),lib)
ifeq ($(findstring lib-shared,$(COMPONENT_TYPE)),lib-shared)
SHAREDLIBNAME := lib$(COMPONENT)$(LIBEXT)
- SONAME := $(SHAREDLIBNAME).$(major-version)
- OUTPUT := $(BUILDDIR)/$(SHAREDLIBNAME).$(COMPONENT_VERSION)
+ SONAME := $(SHAREDLIBNAME).$(LIBnsbmp_VERSION)
+ OUTPUT := $(BUILDDIR)/$(SHAREDLIBNAME).$(LIBnsbmp_VERSION)
else
OUTPUT := $(BUILDDIR)/lib$(COMPONENT)$(LIBEXT)
endif
@@ -204,14 +204,6 @@ endif
.PHONY: all test coverage profile docs clean distclean install uninstall \
__default __precov __partial_clean __postshared
-ifeq ($(COMPONENT_TYPE),lib-shared)
- POST_TARGETS := __postshared $(POST_TARGETS)
-
-__postshared:
- $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SONAME)
- $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SHAREDLIBNAME)
-endif
-
# Default target
all: $(PRE_TARGETS) $(OUTPUT) $(POST_TARGETS)
@@ -272,7 +264,7 @@ __required = $(if $(REQUIRED_PKGS), \
# Install a pkg-config control file ($1) to the specified location ($2)
define install_pkgconfig
$(Q)$(SED) \
- -e 's#PREFIX#$(PREFIX)#' \
+ -e 's#PREFIX#$(TRUEPREFIX)#' \
-e 's#MAJOR#$(major-version)#' \
-e 's#MINOR#$(minor-version)#' \
-e 's#PATCH#$(patch-version)#' \
@@ -287,8 +279,6 @@ endef
# TODO: Is this scheme portable?
define install_shared_lib
$(INSTALL) $(INSTALLFLAGS) -m 755 $1 $2/$(notdir $1)
- $(LN) $(LNFLAGS) -f -s $(notdir $1) $2/$(SONAME)
- $(LN) $(LNFLAGS) -f -s $(notdir $1) $2/$(SHAREDLIBNAME)
endef
# Install a file ($1) to the specified location ($2)

View File

@ -0,0 +1,2 @@
Libnsbmp is a decoding library for BMP and ICO image file formats,
written in C. It was developed as part of the NetSurf project.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
@lib lib/libnsbmp.so.${LIBnsbmp_VERSION}

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
%%SHARED%%
include/libnsbmp.h
lib/pkgconfig/
lib/pkgconfig/libnsbmp.pc

View File

@ -0,0 +1,11 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
COMMENT = GIF decoding library
NETSURF_PROJECT = libnsgif
NETSURF_VERSION = 0.0.2
CATEGORIES = graphics
SHARED_LIBS = nsgif 0.0 #0.0.2
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (libnsgif-0.0.2-src.tar.gz) = CN1fw+ozB4T2weVcWCRHSQ==
RMD160 (libnsgif-0.0.2-src.tar.gz) = L15JroLfCFv3mQ9e5Vx6hXS0jtI=
SHA1 (libnsgif-0.0.2-src.tar.gz) = BGNOXGIJEUU1gs34lUDsFzBO95s=
SHA256 (libnsgif-0.0.2-src.tar.gz) = 3LaL5qSezDds+ig9Lx5+rgNcdfmcCTSsgJUeF3cFlhc=
SIZE (libnsgif-0.0.2-src.tar.gz) = 209951

View File

@ -0,0 +1,58 @@
$OpenBSD: patch-build_makefiles_Makefile_top,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
--- build/makefiles/Makefile.top.orig Fri Jun 25 18:35:10 2010
+++ build/makefiles/Makefile.top Fri Jun 25 18:36:41 2010
@@ -94,8 +94,8 @@ endif
# Makefile variables
##############################################################################
-Q ?= @
-VQ ?= @
+Q ?=
+VQ ?=
##############################################################################
# Exported variables (also OUTPUT, further down)
@@ -188,8 +188,8 @@ endif
ifeq ($(findstring lib,$(COMPONENT_TYPE)),lib)
ifeq ($(findstring lib-shared,$(COMPONENT_TYPE)),lib-shared)
SHAREDLIBNAME := lib$(COMPONENT)$(LIBEXT)
- SONAME := $(SHAREDLIBNAME).$(major-version)
- OUTPUT := $(BUILDDIR)/$(SHAREDLIBNAME).$(COMPONENT_VERSION)
+ SONAME := $(SHAREDLIBNAME).$(LIBnsgif_VERSION)
+ OUTPUT := $(BUILDDIR)/$(SHAREDLIBNAME).$(LIBnsgif_VERSION)
else
OUTPUT := $(BUILDDIR)/lib$(COMPONENT)$(LIBEXT)
endif
@@ -204,14 +204,6 @@ endif
.PHONY: all test coverage profile docs clean distclean install uninstall \
__default __precov __partial_clean __postshared
-ifeq ($(COMPONENT_TYPE),lib-shared)
- POST_TARGETS := __postshared $(POST_TARGETS)
-
-__postshared:
- $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SONAME)
- $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SHAREDLIBNAME)
-endif
-
# Default target
all: $(PRE_TARGETS) $(OUTPUT) $(POST_TARGETS)
@@ -272,7 +264,7 @@ __required = $(if $(REQUIRED_PKGS), \
# Install a pkg-config control file ($1) to the specified location ($2)
define install_pkgconfig
$(Q)$(SED) \
- -e 's#PREFIX#$(PREFIX)#' \
+ -e 's#PREFIX#$(TRUEPREFIX)#' \
-e 's#MAJOR#$(major-version)#' \
-e 's#MINOR#$(minor-version)#' \
-e 's#PATCH#$(patch-version)#' \
@@ -287,8 +279,6 @@ endef
# TODO: Is this scheme portable?
define install_shared_lib
$(INSTALL) $(INSTALLFLAGS) -m 755 $1 $2/$(notdir $1)
- $(LN) $(LNFLAGS) -f -s $(notdir $1) $2/$(SONAME)
- $(LN) $(LNFLAGS) -f -s $(notdir $1) $2/$(SHAREDLIBNAME)
endef
# Install a file ($1) to the specified location ($2)

View File

@ -0,0 +1,2 @@
Libnsgif is a decoding library for the GIF image file format,
written in C. It was developed as part of the NetSurf project.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
@lib lib/libnsgif.so.${LIBnsgif_VERSION}

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
%%SHARED%%
include/libnsgif.h
lib/pkgconfig/
lib/pkgconfig/libnsgif.pc

View File

@ -0,0 +1,15 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
COMMENT = utility library for parser building
NETSURF_PROJECT = libparserutils
NETSURF_VERSION = 0.0.2
CATEGORIES = devel
SHARED_LIBS = parserutils 0.0 #0.0.2
pre-build:
echo "CFLAGS += -DWITH_ICONV_FILTER" \
> ${WRKSRC}/build/Makefile.config.override
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (libparserutils-0.0.2-src.tar.gz) = Wy5N3uvkUcyAHM1ufaBvhw==
RMD160 (libparserutils-0.0.2-src.tar.gz) = 8nU3Dlzfnt+yiByIfHeq42fi+dQ=
SHA1 (libparserutils-0.0.2-src.tar.gz) = zyxty8rOXCJkXCbcYMHrTJyaFaA=
SHA256 (libparserutils-0.0.2-src.tar.gz) = dpvo2lyaAS0tlo/IFFZ8EGf+vz099eGPGuJSEyTc2SM=
SIZE (libparserutils-0.0.2-src.tar.gz) = 95884

View File

@ -0,0 +1,58 @@
$OpenBSD: patch-build_makefiles_Makefile_top,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
--- build/makefiles/Makefile.top.orig Wed Jan 6 02:41:30 2010
+++ build/makefiles/Makefile.top Wed Jun 23 22:48:17 2010
@@ -94,8 +94,8 @@ endif
# Makefile variables
##############################################################################
-Q ?= @
-VQ ?= @
+Q ?=
+VQ ?=
##############################################################################
# Exported variables (also OUTPUT, further down)
@@ -188,8 +188,8 @@ endif
ifeq ($(findstring lib,$(COMPONENT_TYPE)),lib)
ifeq ($(findstring lib-shared,$(COMPONENT_TYPE)),lib-shared)
SHAREDLIBNAME := lib$(COMPONENT)$(LIBEXT)
- SONAME := $(SHAREDLIBNAME).$(major-version)
- OUTPUT := $(BUILDDIR)/$(SHAREDLIBNAME).$(COMPONENT_VERSION)
+ SONAME := $(SHAREDLIBNAME).$(LIBparserutils_VERSION)
+ OUTPUT := $(BUILDDIR)/$(SHAREDLIBNAME).$(LIBparserutils_VERSION)
else
OUTPUT := $(BUILDDIR)/lib$(COMPONENT)$(LIBEXT)
endif
@@ -204,14 +204,6 @@ endif
.PHONY: all test coverage profile docs clean distclean install uninstall \
__default __precov __partial_clean __postshared
-ifeq ($(COMPONENT_TYPE),lib-shared)
- POST_TARGETS := __postshared $(POST_TARGETS)
-
-__postshared:
- $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SONAME)
- $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SHAREDLIBNAME)
-endif
-
# Default target
all: $(PRE_TARGETS) $(OUTPUT) $(POST_TARGETS)
@@ -272,7 +264,7 @@ __required = $(if $(REQUIRED_PKGS), \
# Install a pkg-config control file ($1) to the specified location ($2)
define install_pkgconfig
$(Q)$(SED) \
- -e 's#PREFIX#$(PREFIX)#' \
+ -e 's#PREFIX#$(TRUEPREFIX)#' \
-e 's#MAJOR#$(major-version)#' \
-e 's#MINOR#$(minor-version)#' \
-e 's#PATCH#$(patch-version)#' \
@@ -287,8 +279,6 @@ endef
# TODO: Is this scheme portable?
define install_shared_lib
$(INSTALL) $(INSTALLFLAGS) -m 755 $1 $2/$(notdir $1)
- $(LN) $(LNFLAGS) -f -s $(notdir $1) $2/$(SONAME)
- $(LN) $(LNFLAGS) -f -s $(notdir $1) $2/$(SHAREDLIBNAME)
endef
# Install a file ($1) to the specified location ($2)

View File

@ -0,0 +1,8 @@
LibParserUtils provides various pieces of functionality that are useful
when writing parsers. These are:
+ A number of character set convertors
+ Mapping of character set names to/from MIB enum values
+ UTF-8 and UTF-16 (host endian) support functions
+ Various simple data structures (resizeable buffer, stack, vector)
+ A UTF-8 input stream

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
@lib lib/libparserutils.so.${LIBparserutils_VERSION}

View File

@ -0,0 +1,20 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
%%SHARED%%
include/parserutils/
include/parserutils/charset/
include/parserutils/charset/codec.h
include/parserutils/charset/mibenum.h
include/parserutils/charset/utf16.h
include/parserutils/charset/utf8.h
include/parserutils/errors.h
include/parserutils/functypes.h
include/parserutils/input/
include/parserutils/input/inputstream.h
include/parserutils/parserutils.h
include/parserutils/types.h
include/parserutils/utils/
include/parserutils/utils/buffer.h
include/parserutils/utils/stack.h
include/parserutils/utils/vector.h
lib/pkgconfig/
lib/pkgconfig/libparserutils.pc

View File

@ -0,0 +1,14 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
COMMENT = string internment library
NETSURF_PROJECT = libwapcaplet
NETSURF_VERSION = 0.0.2
CATEGORIES= devel
SHARED_LIBS = wapcaplet 0.0 #0.0.2
NO_REGRESS = Yes #failing test on gcc3 archs
REGRESS_DEPENDS += ::devel/check
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (libwapcaplet-0.0.2-src.tar.gz) = xztf9fzlWBnMaY6MtIbV6w==
RMD160 (libwapcaplet-0.0.2-src.tar.gz) = NNWi5bmnMxkSkhE4vxXepFqUPJk=
SHA1 (libwapcaplet-0.0.2-src.tar.gz) = 2zqy1aEL8QcY1B9de86dJQRufUE=
SHA256 (libwapcaplet-0.0.2-src.tar.gz) = QkYhXO/2IKiC0XCz70q6oE/LQZASKmK26bPmYquICGk=
SIZE (libwapcaplet-0.0.2-src.tar.gz) = 18227

View File

@ -0,0 +1,58 @@
$OpenBSD: patch-build_makefiles_Makefile_top,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
--- build/makefiles/Makefile.top.orig Wed Jun 23 22:56:26 2010
+++ build/makefiles/Makefile.top Wed Jun 23 22:55:49 2010
@@ -94,8 +94,8 @@ endif
# Makefile variables
##############################################################################
-Q ?= @
-VQ ?= @
+Q ?=
+VQ ?=
##############################################################################
# Exported variables (also OUTPUT, further down)
@@ -188,8 +188,8 @@ endif
ifeq ($(findstring lib,$(COMPONENT_TYPE)),lib)
ifeq ($(findstring lib-shared,$(COMPONENT_TYPE)),lib-shared)
SHAREDLIBNAME := lib$(COMPONENT)$(LIBEXT)
- SONAME := $(SHAREDLIBNAME).$(major-version)
- OUTPUT := $(BUILDDIR)/$(SHAREDLIBNAME).$(COMPONENT_VERSION)
+ SONAME := $(SHAREDLIBNAME).$(LIBwapcaplet_VERSION)
+ OUTPUT := $(BUILDDIR)/$(SHAREDLIBNAME).$(LIBwapcaplet_VERSION)
else
OUTPUT := $(BUILDDIR)/lib$(COMPONENT)$(LIBEXT)
endif
@@ -204,14 +204,6 @@ endif
.PHONY: all test coverage profile docs clean distclean install uninstall \
__default __precov __partial_clean __postshared
-ifeq ($(COMPONENT_TYPE),lib-shared)
- POST_TARGETS := __postshared $(POST_TARGETS)
-
-__postshared:
- $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SONAME)
- $(Q)$(LN) $(LNFLAGS) -f -s $(notdir $(OUTPUT)) $(BUILDDIR)/$(SHAREDLIBNAME)
-endif
-
# Default target
all: $(PRE_TARGETS) $(OUTPUT) $(POST_TARGETS)
@@ -272,7 +264,7 @@ __required = $(if $(REQUIRED_PKGS), \
# Install a pkg-config control file ($1) to the specified location ($2)
define install_pkgconfig
$(Q)$(SED) \
- -e 's#PREFIX#$(PREFIX)#' \
+ -e 's#PREFIX#$(TRUEPREFIX)#' \
-e 's#MAJOR#$(major-version)#' \
-e 's#MINOR#$(minor-version)#' \
-e 's#PATCH#$(patch-version)#' \
@@ -287,8 +279,6 @@ endef
# TODO: Is this scheme portable?
define install_shared_lib
$(INSTALL) $(INSTALLFLAGS) -m 755 $1 $2/$(notdir $1)
- $(LN) $(LNFLAGS) -f -s $(notdir $1) $2/$(SONAME)
- $(LN) $(LNFLAGS) -f -s $(notdir $1) $2/$(SHAREDLIBNAME)
endef
# Install a file ($1) to the specified location ($2)

View File

@ -0,0 +1,5 @@
LibWapcaplet provides a reference counted string internment system
designed to store small strings and allow rapid comparison of them in
terms of equality. It supports a caseless comparison where it will
automatically intern a lowercased variant of the string and use that
for comparison if needed.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
@lib lib/libwapcaplet.so.${LIBwapcaplet_VERSION}

View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/06/29 20:11:13 landry Exp $
%%SHARED%%
include/libwapcaplet/
include/libwapcaplet/libwapcaplet.h
lib/pkgconfig/
lib/pkgconfig/libwapcaplet.pc