From owner-svn-ports-head@FreeBSD.ORG Tue Apr 29 09:32:55 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 06999D36; Tue, 29 Apr 2014 09:32:55 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 E6838B7C; Tue, 29 Apr 2014 09:32:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3T9WsDs051917; Tue, 29 Apr 2014 09:32:54 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3T9Wsjn051913; Tue, 29 Apr 2014 09:32:54 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201404290932.s3T9Wsjn051913@svn.freebsd.org> From: Pawel Pekala Date: Tue, 29 Apr 2014 09:32:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r352589 - in head/graphics/yafray: . 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.17 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: Tue, 29 Apr 2014 09:32:55 -0000 Author: pawel Date: Tue Apr 29 09:32:53 2014 New Revision: 352589 URL: http://svnweb.freebsd.org/changeset/ports/352589 QAT: https://qat.redports.org/buildarchive/r352589/ Log: - Fix build on 10+, make it PREFIX safe, respect CXXFLAGS - Add staging support - Remove leading article from COMMENT - Convert to new LIB_DEPENDS format - Strip binaries MFH: 2014Q2 Modified: head/graphics/yafray/Makefile head/graphics/yafray/files/patch-SConstruct head/graphics/yafray/files/patch-freebsd-settings.py Modified: head/graphics/yafray/Makefile ============================================================================== --- head/graphics/yafray/Makefile Tue Apr 29 08:50:37 2014 (r352588) +++ head/graphics/yafray/Makefile Tue Apr 29 09:32:53 2014 (r352589) @@ -9,23 +9,26 @@ MASTER_SITES= http://freebsd.nsu.ru/dist #http://www.yafaray.org/sites/default/files/download/builds/ MAINTAINER= ports@FreeBSD.org -COMMENT= A fast XML based raytracer +COMMENT= Fast XML based raytracer -LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg +LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg USES= scons USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/${PORTNAME} -NO_STAGE= yes pre-patch: @${MV} ${WRKSRC}/linux-settings.py ${WRKSRC}/freebsd-settings.py -.include +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ + -e 's|%%CXXFLAGS%%|${CXXFLAGS}|' \ + ${WRKSRC}/freebsd-settings.py + +do-install: + (cd ${WRKSRC} && ${MAKE_CMD} prefix=${STAGEDIR}${PREFIX} install) + (cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} bin/${PORTNAME} \ + lib/*.so lib/yafray/*.so) -.if ${OSVERSION} >= 1000000 -BROKEN= does not build -.endif - -.include +.include Modified: head/graphics/yafray/files/patch-SConstruct ============================================================================== --- head/graphics/yafray/files/patch-SConstruct Tue Apr 29 08:50:37 2014 (r352588) +++ head/graphics/yafray/files/patch-SConstruct Tue Apr 29 09:32:53 2014 (r352589) @@ -1,6 +1,6 @@ ---- SConstruct.orig 2006-06-20 21:24:00.000000000 +0400 -+++ SConstruct 2009-11-04 20:56:07.000000000 +0300 -@@ -8,6 +8,11 @@ +--- SConstruct.orig 2006-06-20 19:24:00.000000000 +0200 ++++ SConstruct 2014-04-28 22:26:00.000000000 +0200 +@@ -8,6 +8,13 @@ ficheros = { 'darwin' : 'darwin-settings', 'linux2' : 'linux-settings', @@ -9,6 +9,8 @@ +'freebsd7' : 'freebsd-settings', +'freebsd8' : 'freebsd-settings', +'freebsd9' : 'freebsd-settings', ++'freebsd10' : 'freebsd-settings', ++'freebsd11' : 'freebsd-settings', 'win32' : 'win32-settings', 'sunos5' : 'sunos5-settings' } Modified: head/graphics/yafray/files/patch-freebsd-settings.py ============================================================================== --- head/graphics/yafray/files/patch-freebsd-settings.py Tue Apr 29 08:50:37 2014 (r352588) +++ head/graphics/yafray/files/patch-freebsd-settings.py Tue Apr 29 09:32:53 2014 (r352589) @@ -1,13 +1,22 @@ ---- freebsd-settings.py.orig Sat Sep 23 00:21:17 2006 -+++ freebsd-settings.py Sat Sep 23 00:21:29 2006 +--- freebsd-settings.py.orig 2006-07-14 12:14:52.000000000 +0200 ++++ freebsd-settings.py 2014-04-29 10:49:21.918250680 +0200 @@ -10,6 +10,7 @@ global prefix prefix = args.get('prefix','/usr/local') -+def get_include(args): return prefix+"/usr/local/include" ++def get_include(args): return "%%LOCALBASE%%/include" def get_libpath(args): return prefix+"/lib" def get_pluginpath(args): return prefix+"/lib/yafray" def get_binpath(args): return prefix+"/bin" +@@ -22,7 +23,7 @@ + if debug: + flags+=' -O3 -ffast-math -ggdb' + else: +- flags+=' -O3 -ffast-math -fomit-frame-pointer' ++ flags+=' %%CXXFLAGS%%' + if arch!='': + flags+=' -march='+arch + if tune!='': @@ -46,9 +47,9 @@ class jpeg(globalinfo.library): C_ID = 'JPEG' @@ -15,9 +24,9 @@ - def present(args): return os.path.exists("/usr/include/jpeglib.h") - def get_include(args): return [] - def get_libpath(args): return [] -+ def present(args): return os.path.exists("/usr/local/include/jpeglib.h") -+ def get_include(args): return ['/usr/local/include'] -+ def get_libpath(args): return ['/usr/local/lib'] ++ def present(args): return os.path.exists("%%LOCALBASE%%/include/jpeglib.h") ++ def get_include(args): return ['%%LOCALBASE%%/include'] ++ def get_libpath(args): return ['%%LOCALBASE%%/lib'] def get_libs(args): return ['jpeg'] class pthread(globalinfo.library):