From owner-svn-ports-head@freebsd.org Sun Mar 20 15:58:26 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67ABEAD7F89; Sun, 20 Mar 2016 15:58:26 +0000 (UTC) (envelope-from olivierd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3C787BD1; Sun, 20 Mar 2016 15:58:26 +0000 (UTC) (envelope-from olivierd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u2KFwPqm071695; Sun, 20 Mar 2016 15:58:25 GMT (envelope-from olivierd@FreeBSD.org) Received: (from olivierd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u2KFwOmM071687; Sun, 20 Mar 2016 15:58:24 GMT (envelope-from olivierd@FreeBSD.org) Message-Id: <201603201558.u2KFwOmM071687@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: olivierd set sender to olivierd@FreeBSD.org using -f From: Olivier Duchateau Date: Sun, 20 Mar 2016 15:58:24 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2016 15:58:26 -0000 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 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