svn commit: r313731 - head/graphics/ruby-gdal
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Mar 9 16:56:59 UTC 2013
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 at 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 <bsd.port.mk>
More information about the svn-ports-head
mailing list