From owner-svn-ports-head@FreeBSD.ORG Sat Mar 9 16:56:59 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0C1A22F6; Sat, 9 Mar 2013 16:56:59 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id D92C9FBF; Sat, 9 Mar 2013 16:56:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r29Guwop030773; Sat, 9 Mar 2013 16:56:58 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r29Guwc9030772; Sat, 9 Mar 2013 16:56:58 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201303091656.r29Guwc9030772@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Sat, 9 Mar 2013 16:56:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r313731 - head/graphics/ruby-gdal 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.14 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: Sat, 09 Mar 2013 16:56:59 -0000 Author: sunpoet Date: Sat Mar 9 16:56:58 2013 New Revision: 313731 URL: http://svnweb.freebsd.org/changeset/ports/313731 Log: - Add LICENSE - Change BUILD_DEPENDS to devel/swig20 - Fix build with lang/ruby20 - Add comment about pre-build: section - Silence pre-build: messages Modified: head/graphics/ruby-gdal/Makefile Modified: head/graphics/ruby-gdal/Makefile ============================================================================== --- head/graphics/ruby-gdal/Makefile Sat Mar 9 16:35:59 2013 (r313730) +++ head/graphics/ruby-gdal/Makefile Sat Mar 9 16:56:58 2013 (r313731) @@ -12,7 +12,10 @@ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Ruby binding for GDAL -BUILD_DEPENDS= ${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13 +LICENSE= MIT + +#BUILD_DEPENDS= ${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13 +BUILD_DEPENDS= ${LOCALBASE}/bin/swig2.0:${PORTSDIR}/devel/swig20 LIB_DEPENDS= gdal:${PORTSDIR}/graphics/gdal LIBTOOLFILES= # empty @@ -24,13 +27,15 @@ USE_RUBY= yes WRKSRC= ${WRKDIR}/${DISTNAME}/swig/ruby post-patch: - @${REINPLACE_CMD} -e 's|Config::CONFIG|Rb&|' ${WRKSRC}/RubyMakefile.mk + @${REINPLACE_CMD} -e '/^SWIG = swig/ s|$$|2.0|' ${WRKSRC}/../SWIGmake.base + @${REINPLACE_CMD} -e 's|Config::CONFIG|Rb&|g' ${WRKSRC}/RubyMakefile.mk do-configure: @${DO_NADA} +# include/cpl_config.h will exist after build phase pre-build: - ${SED} -e '/^GDAL_ROOT/d' ${DATADIR}/GDALmake.opt > ${WRKSRC}/../../GDALmake.opt - ${CP} ${LOCALBASE}/include/cpl_config.h ${WRKSRC}/../../port/ + @${SED} -e '/^GDAL_ROOT/d' ${DATADIR}/GDALmake.opt > ${WRKSRC}/../../GDALmake.opt + @${CP} ${LOCALBASE}/include/cpl_config.h ${WRKSRC}/../../port/ .include