From 7b2f43f9024147b682b002a58226389b910af0c1 Mon Sep 17 00:00:00 2001 From: landry Date: Tue, 29 Jun 2010 20:11:13 +0000 Subject: [PATCH] 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. --- www/netsurf/Makefile | 11 +++ www/netsurf/Makefile.inc | 29 +++++++ www/netsurf/browser/Makefile | 40 ++++++++++ www/netsurf/browser/distinfo | 5 ++ www/netsurf/browser/patches/patch-Makefile | 79 +++++++++++++++++++ .../browser/patches/patch-Makefile_defaults | 12 +++ www/netsurf/browser/pkg/DESCR | 2 + www/netsurf/browser/pkg/PLIST | 48 +++++++++++ www/netsurf/hubbub/Makefile | 17 ++++ www/netsurf/hubbub/distinfo | 5 ++ .../patch-build_makefiles_Makefile_top | 58 ++++++++++++++ www/netsurf/hubbub/pkg/DESCR | 2 + www/netsurf/hubbub/pkg/PFRAG.shared | 2 + www/netsurf/hubbub/pkg/PLIST | 11 +++ www/netsurf/libcss/Makefile | 14 ++++ www/netsurf/libcss/distinfo | 5 ++ .../patch-build_makefiles_Makefile_top | 58 ++++++++++++++ www/netsurf/libcss/pkg/DESCR | 2 + www/netsurf/libcss/pkg/PFRAG.shared | 2 + www/netsurf/libcss/pkg/PLIST | 15 ++++ www/netsurf/libnsbmp/Makefile | 11 +++ www/netsurf/libnsbmp/distinfo | 5 ++ .../patch-build_makefiles_Makefile_top | 58 ++++++++++++++ www/netsurf/libnsbmp/pkg/DESCR | 2 + www/netsurf/libnsbmp/pkg/PFRAG.shared | 2 + www/netsurf/libnsbmp/pkg/PLIST | 5 ++ www/netsurf/libnsgif/Makefile | 11 +++ www/netsurf/libnsgif/distinfo | 5 ++ .../patch-build_makefiles_Makefile_top | 58 ++++++++++++++ www/netsurf/libnsgif/pkg/DESCR | 2 + www/netsurf/libnsgif/pkg/PFRAG.shared | 2 + www/netsurf/libnsgif/pkg/PLIST | 5 ++ www/netsurf/libparserutils/Makefile | 15 ++++ www/netsurf/libparserutils/distinfo | 5 ++ .../patch-build_makefiles_Makefile_top | 58 ++++++++++++++ www/netsurf/libparserutils/pkg/DESCR | 8 ++ www/netsurf/libparserutils/pkg/PFRAG.shared | 2 + www/netsurf/libparserutils/pkg/PLIST | 20 +++++ www/netsurf/libwapcaplet/Makefile | 14 ++++ www/netsurf/libwapcaplet/distinfo | 5 ++ .../patch-build_makefiles_Makefile_top | 58 ++++++++++++++ www/netsurf/libwapcaplet/pkg/DESCR | 5 ++ www/netsurf/libwapcaplet/pkg/PFRAG.shared | 2 + www/netsurf/libwapcaplet/pkg/PLIST | 6 ++ 44 files changed, 781 insertions(+) create mode 100644 www/netsurf/Makefile create mode 100644 www/netsurf/Makefile.inc create mode 100644 www/netsurf/browser/Makefile create mode 100644 www/netsurf/browser/distinfo create mode 100644 www/netsurf/browser/patches/patch-Makefile create mode 100644 www/netsurf/browser/patches/patch-Makefile_defaults create mode 100644 www/netsurf/browser/pkg/DESCR create mode 100644 www/netsurf/browser/pkg/PLIST create mode 100644 www/netsurf/hubbub/Makefile create mode 100644 www/netsurf/hubbub/distinfo create mode 100644 www/netsurf/hubbub/patches/patch-build_makefiles_Makefile_top create mode 100644 www/netsurf/hubbub/pkg/DESCR create mode 100644 www/netsurf/hubbub/pkg/PFRAG.shared create mode 100644 www/netsurf/hubbub/pkg/PLIST create mode 100644 www/netsurf/libcss/Makefile create mode 100644 www/netsurf/libcss/distinfo create mode 100644 www/netsurf/libcss/patches/patch-build_makefiles_Makefile_top create mode 100644 www/netsurf/libcss/pkg/DESCR create mode 100644 www/netsurf/libcss/pkg/PFRAG.shared create mode 100644 www/netsurf/libcss/pkg/PLIST create mode 100644 www/netsurf/libnsbmp/Makefile create mode 100644 www/netsurf/libnsbmp/distinfo create mode 100644 www/netsurf/libnsbmp/patches/patch-build_makefiles_Makefile_top create mode 100644 www/netsurf/libnsbmp/pkg/DESCR create mode 100644 www/netsurf/libnsbmp/pkg/PFRAG.shared create mode 100644 www/netsurf/libnsbmp/pkg/PLIST create mode 100644 www/netsurf/libnsgif/Makefile create mode 100644 www/netsurf/libnsgif/distinfo create mode 100644 www/netsurf/libnsgif/patches/patch-build_makefiles_Makefile_top create mode 100644 www/netsurf/libnsgif/pkg/DESCR create mode 100644 www/netsurf/libnsgif/pkg/PFRAG.shared create mode 100644 www/netsurf/libnsgif/pkg/PLIST create mode 100644 www/netsurf/libparserutils/Makefile create mode 100644 www/netsurf/libparserutils/distinfo create mode 100644 www/netsurf/libparserutils/patches/patch-build_makefiles_Makefile_top create mode 100644 www/netsurf/libparserutils/pkg/DESCR create mode 100644 www/netsurf/libparserutils/pkg/PFRAG.shared create mode 100644 www/netsurf/libparserutils/pkg/PLIST create mode 100644 www/netsurf/libwapcaplet/Makefile create mode 100644 www/netsurf/libwapcaplet/distinfo create mode 100644 www/netsurf/libwapcaplet/patches/patch-build_makefiles_Makefile_top create mode 100644 www/netsurf/libwapcaplet/pkg/DESCR create mode 100644 www/netsurf/libwapcaplet/pkg/PFRAG.shared create mode 100644 www/netsurf/libwapcaplet/pkg/PLIST diff --git a/www/netsurf/Makefile b/www/netsurf/Makefile new file mode 100644 index 00000000000..3a5b739a46b --- /dev/null +++ b/www/netsurf/Makefile @@ -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 diff --git a/www/netsurf/Makefile.inc b/www/netsurf/Makefile.inc new file mode 100644 index 00000000000..04018be57fd --- /dev/null +++ b/www/netsurf/Makefile.inc @@ -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 diff --git a/www/netsurf/browser/Makefile b/www/netsurf/browser/Makefile new file mode 100644 index 00000000000..31957878e9c --- /dev/null +++ b/www/netsurf/browser/Makefile @@ -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 diff --git a/www/netsurf/browser/distinfo b/www/netsurf/browser/distinfo new file mode 100644 index 00000000000..c7baac1b786 --- /dev/null +++ b/www/netsurf/browser/distinfo @@ -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 diff --git a/www/netsurf/browser/patches/patch-Makefile b/www/netsurf/browser/patches/patch-Makefile new file mode 100644 index 00000000000..9d2419380be --- /dev/null +++ b/www/netsurf/browser/patches/patch-Makefile @@ -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 diff --git a/www/netsurf/browser/patches/patch-Makefile_defaults b/www/netsurf/browser/patches/patch-Makefile_defaults new file mode 100644 index 00000000000..9ffd1fbe63f --- /dev/null +++ b/www/netsurf/browser/patches/patch-Makefile_defaults @@ -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 diff --git a/www/netsurf/browser/pkg/DESCR b/www/netsurf/browser/pkg/DESCR new file mode 100644 index 00000000000..ef595bf810e --- /dev/null +++ b/www/netsurf/browser/pkg/DESCR @@ -0,0 +1,2 @@ +Netsurf is a lightweight, standards-compliant web browser originally +designed for mobile devices. diff --git a/www/netsurf/browser/pkg/PLIST b/www/netsurf/browser/pkg/PLIST new file mode 100644 index 00000000000..ed15bc3be8c --- /dev/null +++ b/www/netsurf/browser/pkg/PLIST @@ -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 diff --git a/www/netsurf/hubbub/Makefile b/www/netsurf/hubbub/Makefile new file mode 100644 index 00000000000..76a8c61e803 --- /dev/null +++ b/www/netsurf/hubbub/Makefile @@ -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 diff --git a/www/netsurf/hubbub/distinfo b/www/netsurf/hubbub/distinfo new file mode 100644 index 00000000000..80ffb75237a --- /dev/null +++ b/www/netsurf/hubbub/distinfo @@ -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 diff --git a/www/netsurf/hubbub/patches/patch-build_makefiles_Makefile_top b/www/netsurf/hubbub/patches/patch-build_makefiles_Makefile_top new file mode 100644 index 00000000000..0079c261dbc --- /dev/null +++ b/www/netsurf/hubbub/patches/patch-build_makefiles_Makefile_top @@ -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) diff --git a/www/netsurf/hubbub/pkg/DESCR b/www/netsurf/hubbub/pkg/DESCR new file mode 100644 index 00000000000..a6c630ed594 --- /dev/null +++ b/www/netsurf/hubbub/pkg/DESCR @@ -0,0 +1,2 @@ +Hubbub is a flexible HTML parser. It aims to comply with the HTML5 +specification. diff --git a/www/netsurf/hubbub/pkg/PFRAG.shared b/www/netsurf/hubbub/pkg/PFRAG.shared new file mode 100644 index 00000000000..b3e54baa587 --- /dev/null +++ b/www/netsurf/hubbub/pkg/PFRAG.shared @@ -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} diff --git a/www/netsurf/hubbub/pkg/PLIST b/www/netsurf/hubbub/pkg/PLIST new file mode 100644 index 00000000000..24d25ae9278 --- /dev/null +++ b/www/netsurf/hubbub/pkg/PLIST @@ -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 diff --git a/www/netsurf/libcss/Makefile b/www/netsurf/libcss/Makefile new file mode 100644 index 00000000000..1dd5ab77299 --- /dev/null +++ b/www/netsurf/libcss/Makefile @@ -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 diff --git a/www/netsurf/libcss/distinfo b/www/netsurf/libcss/distinfo new file mode 100644 index 00000000000..18baf78913a --- /dev/null +++ b/www/netsurf/libcss/distinfo @@ -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 diff --git a/www/netsurf/libcss/patches/patch-build_makefiles_Makefile_top b/www/netsurf/libcss/patches/patch-build_makefiles_Makefile_top new file mode 100644 index 00000000000..47d72d2bb74 --- /dev/null +++ b/www/netsurf/libcss/patches/patch-build_makefiles_Makefile_top @@ -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) diff --git a/www/netsurf/libcss/pkg/DESCR b/www/netsurf/libcss/pkg/DESCR new file mode 100644 index 00000000000..4c7cf015611 --- /dev/null +++ b/www/netsurf/libcss/pkg/DESCR @@ -0,0 +1,2 @@ +LibCSS is a CSS parser and selection engine. It aims to parse the forward +compatible CSS grammar. diff --git a/www/netsurf/libcss/pkg/PFRAG.shared b/www/netsurf/libcss/pkg/PFRAG.shared new file mode 100644 index 00000000000..3de438984e3 --- /dev/null +++ b/www/netsurf/libcss/pkg/PFRAG.shared @@ -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} diff --git a/www/netsurf/libcss/pkg/PLIST b/www/netsurf/libcss/pkg/PLIST new file mode 100644 index 00000000000..f75979f91ad --- /dev/null +++ b/www/netsurf/libcss/pkg/PLIST @@ -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 diff --git a/www/netsurf/libnsbmp/Makefile b/www/netsurf/libnsbmp/Makefile new file mode 100644 index 00000000000..12ca5a5b67f --- /dev/null +++ b/www/netsurf/libnsbmp/Makefile @@ -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 diff --git a/www/netsurf/libnsbmp/distinfo b/www/netsurf/libnsbmp/distinfo new file mode 100644 index 00000000000..b1bff757934 --- /dev/null +++ b/www/netsurf/libnsbmp/distinfo @@ -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 diff --git a/www/netsurf/libnsbmp/patches/patch-build_makefiles_Makefile_top b/www/netsurf/libnsbmp/patches/patch-build_makefiles_Makefile_top new file mode 100644 index 00000000000..bee481aa842 --- /dev/null +++ b/www/netsurf/libnsbmp/patches/patch-build_makefiles_Makefile_top @@ -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) diff --git a/www/netsurf/libnsbmp/pkg/DESCR b/www/netsurf/libnsbmp/pkg/DESCR new file mode 100644 index 00000000000..b32231c6d9d --- /dev/null +++ b/www/netsurf/libnsbmp/pkg/DESCR @@ -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. diff --git a/www/netsurf/libnsbmp/pkg/PFRAG.shared b/www/netsurf/libnsbmp/pkg/PFRAG.shared new file mode 100644 index 00000000000..0298c49910d --- /dev/null +++ b/www/netsurf/libnsbmp/pkg/PFRAG.shared @@ -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} diff --git a/www/netsurf/libnsbmp/pkg/PLIST b/www/netsurf/libnsbmp/pkg/PLIST new file mode 100644 index 00000000000..7c9e2973870 --- /dev/null +++ b/www/netsurf/libnsbmp/pkg/PLIST @@ -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 diff --git a/www/netsurf/libnsgif/Makefile b/www/netsurf/libnsgif/Makefile new file mode 100644 index 00000000000..f460f278e7c --- /dev/null +++ b/www/netsurf/libnsgif/Makefile @@ -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 diff --git a/www/netsurf/libnsgif/distinfo b/www/netsurf/libnsgif/distinfo new file mode 100644 index 00000000000..b845a9077ac --- /dev/null +++ b/www/netsurf/libnsgif/distinfo @@ -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 diff --git a/www/netsurf/libnsgif/patches/patch-build_makefiles_Makefile_top b/www/netsurf/libnsgif/patches/patch-build_makefiles_Makefile_top new file mode 100644 index 00000000000..8208f91479d --- /dev/null +++ b/www/netsurf/libnsgif/patches/patch-build_makefiles_Makefile_top @@ -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) diff --git a/www/netsurf/libnsgif/pkg/DESCR b/www/netsurf/libnsgif/pkg/DESCR new file mode 100644 index 00000000000..e3af9f2643a --- /dev/null +++ b/www/netsurf/libnsgif/pkg/DESCR @@ -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. diff --git a/www/netsurf/libnsgif/pkg/PFRAG.shared b/www/netsurf/libnsgif/pkg/PFRAG.shared new file mode 100644 index 00000000000..d651e06dd59 --- /dev/null +++ b/www/netsurf/libnsgif/pkg/PFRAG.shared @@ -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} diff --git a/www/netsurf/libnsgif/pkg/PLIST b/www/netsurf/libnsgif/pkg/PLIST new file mode 100644 index 00000000000..4364f0b3abd --- /dev/null +++ b/www/netsurf/libnsgif/pkg/PLIST @@ -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 diff --git a/www/netsurf/libparserutils/Makefile b/www/netsurf/libparserutils/Makefile new file mode 100644 index 00000000000..d8e881e6506 --- /dev/null +++ b/www/netsurf/libparserutils/Makefile @@ -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 diff --git a/www/netsurf/libparserutils/distinfo b/www/netsurf/libparserutils/distinfo new file mode 100644 index 00000000000..48c50130e52 --- /dev/null +++ b/www/netsurf/libparserutils/distinfo @@ -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 diff --git a/www/netsurf/libparserutils/patches/patch-build_makefiles_Makefile_top b/www/netsurf/libparserutils/patches/patch-build_makefiles_Makefile_top new file mode 100644 index 00000000000..0f6e816d10f --- /dev/null +++ b/www/netsurf/libparserutils/patches/patch-build_makefiles_Makefile_top @@ -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) diff --git a/www/netsurf/libparserutils/pkg/DESCR b/www/netsurf/libparserutils/pkg/DESCR new file mode 100644 index 00000000000..cd51f8ed950 --- /dev/null +++ b/www/netsurf/libparserutils/pkg/DESCR @@ -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 diff --git a/www/netsurf/libparserutils/pkg/PFRAG.shared b/www/netsurf/libparserutils/pkg/PFRAG.shared new file mode 100644 index 00000000000..3153fdf4db9 --- /dev/null +++ b/www/netsurf/libparserutils/pkg/PFRAG.shared @@ -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} diff --git a/www/netsurf/libparserutils/pkg/PLIST b/www/netsurf/libparserutils/pkg/PLIST new file mode 100644 index 00000000000..2f8074e7d9c --- /dev/null +++ b/www/netsurf/libparserutils/pkg/PLIST @@ -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 diff --git a/www/netsurf/libwapcaplet/Makefile b/www/netsurf/libwapcaplet/Makefile new file mode 100644 index 00000000000..d780b3bdb67 --- /dev/null +++ b/www/netsurf/libwapcaplet/Makefile @@ -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 diff --git a/www/netsurf/libwapcaplet/distinfo b/www/netsurf/libwapcaplet/distinfo new file mode 100644 index 00000000000..2b39f478b6c --- /dev/null +++ b/www/netsurf/libwapcaplet/distinfo @@ -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 diff --git a/www/netsurf/libwapcaplet/patches/patch-build_makefiles_Makefile_top b/www/netsurf/libwapcaplet/patches/patch-build_makefiles_Makefile_top new file mode 100644 index 00000000000..0f0e659bd08 --- /dev/null +++ b/www/netsurf/libwapcaplet/patches/patch-build_makefiles_Makefile_top @@ -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) diff --git a/www/netsurf/libwapcaplet/pkg/DESCR b/www/netsurf/libwapcaplet/pkg/DESCR new file mode 100644 index 00000000000..8fcdaf2341a --- /dev/null +++ b/www/netsurf/libwapcaplet/pkg/DESCR @@ -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. diff --git a/www/netsurf/libwapcaplet/pkg/PFRAG.shared b/www/netsurf/libwapcaplet/pkg/PFRAG.shared new file mode 100644 index 00000000000..417f954e58a --- /dev/null +++ b/www/netsurf/libwapcaplet/pkg/PFRAG.shared @@ -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} diff --git a/www/netsurf/libwapcaplet/pkg/PLIST b/www/netsurf/libwapcaplet/pkg/PLIST new file mode 100644 index 00000000000..18e2696bd1b --- /dev/null +++ b/www/netsurf/libwapcaplet/pkg/PLIST @@ -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