Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Mar 2016 15:58:24 +0000 (UTC)
From:      Olivier Duchateau <olivierd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r411456 - in head/devel: . netsurf-buildsystem netsurf-buildsystem/files
Message-ID:  <201603201558.u2KFwOmM071687@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olivierd
Date: Sun Mar 20 15:58:24 2016
New Revision: 411456
URL: https://svnweb.freebsd.org/changeset/ports/411456

Log:
  This package privides the NetSurf shared buildsystem.
  
  WWW: http://www.netsurf-browser.org/

Added:
  head/devel/netsurf-buildsystem/
  head/devel/netsurf-buildsystem/Makefile   (contents, props changed)
  head/devel/netsurf-buildsystem/distinfo   (contents, props changed)
  head/devel/netsurf-buildsystem/files/
  head/devel/netsurf-buildsystem/files/patch-Makefile   (contents, props changed)
  head/devel/netsurf-buildsystem/files/patch-makefiles_Makefile.tools   (contents, props changed)
  head/devel/netsurf-buildsystem/pkg-descr   (contents, props changed)
  head/devel/netsurf-buildsystem/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Mar 20 15:44:11 2016	(r411455)
+++ head/devel/Makefile	Sun Mar 20 15:58:24 2016	(r411456)
@@ -1530,6 +1530,7 @@
     SUBDIR += ndesk-dbus-glib
     SUBDIR += ndesk-options
     SUBDIR += netscape-java40
+    SUBDIR += netsurf-buildsystem
     SUBDIR += newfile
     SUBDIR += newt
     SUBDIR += newtonsoft-json

Added: head/devel/netsurf-buildsystem/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/netsurf-buildsystem/Makefile	Sun Mar 20 15:58:24 2016	(r411456)
@@ -0,0 +1,25 @@
+# Created by: Olivier Duchateau
+# $FreeBSD$
+
+PORTNAME=	buildsystem
+PORTVERSION=	1.5
+CATEGORIES=	devel
+MASTER_SITES=	http://download.netsurf-browser.org/libs/releases/
+PKGNAMEPREFIX=	netsurf-
+
+MAINTAINER=	olivierd@FreeBSD.org
+COMMENT=	NetSurf project buildsystem
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
+
+MAKE_ENV+=	COMPONENT_TYPE=lib-shared \
+
+USES=	gmake shebangfix perl5
+
+SHEBANG_LANG=	perl
+perl_CMD=	${SETENV} perl
+SHEBANG_FILES=	testtools/testrunner.pl
+
+.include <bsd.port.mk>

Added: head/devel/netsurf-buildsystem/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/netsurf-buildsystem/distinfo	Sun Mar 20 15:58:24 2016	(r411456)
@@ -0,0 +1,2 @@
+SHA256 (buildsystem-1.5.tar.gz) = dbc6afc639f6987b704e6ff4427668787ee7efba77e1bbf76b614699b5daaf71
+SIZE (buildsystem-1.5.tar.gz) = 38196

Added: head/devel/netsurf-buildsystem/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/netsurf-buildsystem/files/patch-Makefile	Sun Mar 20 15:58:24 2016	(r411456)
@@ -0,0 +1,29 @@
+--- Makefile.orig	2015-03-08 12:05:58 UTC
++++ Makefile
+@@ -19,7 +19,7 @@ usage:
+ 	@echo ""
+ 	@echo "Which is where the libraries etc look for it."
+ 
+-PREFIX?=/opt/netsurf
++PREFIX?=%%PREFIX%%
+ 
+ BASE=$(DESTDIR)$(PREFIX)/share/netsurf-buildsystem
+ 
+@@ -33,16 +33,13 @@ TESTTOOLS := testrunner.pl
+ CITOOLS := jenkins-build.sh
+ 
+ install:
+-	mkdir -p $(BASE)/makefiles $(BASE)/testtools $(BASE)/citools
++	mkdir -p $(BASE)/makefiles $(BASE)/testtools
+ 	for M in $(MAKEFILES); do \
+ 		cp makefiles/$$M $(BASE)/makefiles/; \
+ 	done
+ 	for T in $(TESTTOOLS); do \
+ 		cp testtools/$$T $(BASE)/testtools/; \
+ 	done
+-	for C in $(CITOOLS); do \
+-		cp citools/$$C $(BASE)/citools/; \
+-	done
+ 
+ # Distribution
+ # This constructs a distribution tar from the last git tag. It ensures

Added: head/devel/netsurf-buildsystem/files/patch-makefiles_Makefile.tools
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/netsurf-buildsystem/files/patch-makefiles_Makefile.tools	Sun Mar 20 15:58:24 2016	(r411456)
@@ -0,0 +1,39 @@
+--- makefiles/Makefile.tools.orig	2016-02-14 22:21:24 UTC
++++ makefiles/Makefile.tools
+@@ -109,6 +109,18 @@ ifeq ($(BUILD),$(HOST))
+     CFLAGS := $(CFLAGS) -I$(GCCSDK_INSTALL_ENV)/include -I/usr/local/include
+     CXXFLAGS := $(CXXFLAGS) -I$(GCCSDK_INSTALL_ENV)/include -I/usr/local/include
+     LDFLAGS := $(LDFLAGS) -L$(GCCSDK_INSTALL_ENV)/lib -L/usr/local/lib
++
++    PKGCONFIG ?= PKG_CONFIG_PATH="$(PREFIX)/libdata/pkgconfig:$(PKG_CONFIG_PATH)" pkgconf
++  endif
++
++  ifeq ($(findstring dragonfly,$(HOST)),dragonfly)
++    # Building on+for FreeBSD
++    CFLAGS := $(CFLAGS) -I$(GCCSDK_INSTALL_ENV)/include -I/usr/local/include
++    CXXFLAGS := $(CXXFLAGS) -I$(GCCSDK_INSTALL_ENV)/include -I/usr/local/include
++    LDFLAGS := $(LDFLAGS) -L$(GCCSDK_INSTALL_ENV)/lib -L/usr/local/lib
++
++    PKGCONFIG ?= PKG_CONFIG_PATH="$(PREFIX)/libdata/pkgconfig:$(PKG_CONFIG_PATH)
++" pkgconf
+   endif
+ 
+   ifeq ($(findstring arwin,$(HOST)),arwin)
+@@ -130,7 +142,7 @@ else
+   endif
+ 
+   # Search the path for the compiler
+-  toolpath_ := $(shell /bin/which $(CC__))
++  toolpath_ := $(shell /usr/bin/which $(CC__))
+   ifeq ($(toolpath_),)
+     toolpath_ := /opt/netsurf/$(HOST)/cross/bin/
+     CC__  := $(toolpath_)$(HOST)-gcc
+@@ -141,7 +153,7 @@ else
+     toolpath_ := $(dir $(CC__))
+     toolprefix_ := $(subst :,/,$(dir $(subst -,/,$(subst /,:,$(CC__)))))
+     ifeq ($(origin AR),default)
+-      AR__ := $(toolprefix_)-ar
++      AR__ := $(shell /usr/bin/which ar)
+     endif
+     ifeq ($(origin CXX),default)
+       CXX__ := $(toolprefix_)-g++

Added: head/devel/netsurf-buildsystem/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/netsurf-buildsystem/pkg-descr	Sun Mar 20 15:58:24 2016	(r411456)
@@ -0,0 +1,3 @@
+This package privides the NetSurf shared buildsystem.
+
+WWW: http://www.netsurf-browser.org/

Added: head/devel/netsurf-buildsystem/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/netsurf-buildsystem/pkg-plist	Sun Mar 20 15:58:24 2016	(r411456)
@@ -0,0 +1,9 @@
+share/netsurf-buildsystem/makefiles/Makefile.clang
+share/netsurf-buildsystem/makefiles/Makefile.gcc
+share/netsurf-buildsystem/makefiles/Makefile.norcroft
+share/netsurf-buildsystem/makefiles/Makefile.open64
+share/netsurf-buildsystem/makefiles/Makefile.pkgconfig
+share/netsurf-buildsystem/makefiles/Makefile.subdir
+share/netsurf-buildsystem/makefiles/Makefile.tools
+share/netsurf-buildsystem/makefiles/Makefile.top
+share/netsurf-buildsystem/testtools/testrunner.pl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603201558.u2KFwOmM071687>