diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2013-03-10 00:56:58 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2013-03-10 00:56:58 +0800 |
commit | 1212c130b2566304499003686ba79d85f8bd3ad6 (patch) | |
tree | 9f6f73a4b8370438dffcf445d2a0e39d12564fe6 /graphics/ruby-gdal | |
parent | 5db6feb0331c4d11076ae5c21979418c0a41185f (diff) | |
download | freebsd-ports-gnome-1212c130b2566304499003686ba79d85f8bd3ad6.tar.gz freebsd-ports-gnome-1212c130b2566304499003686ba79d85f8bd3ad6.tar.zst freebsd-ports-gnome-1212c130b2566304499003686ba79d85f8bd3ad6.zip |
- Add LICENSE
- Change BUILD_DEPENDS to devel/swig20
- Fix build with lang/ruby20
- Add comment about pre-build: section
- Silence pre-build: messages
Diffstat (limited to 'graphics/ruby-gdal')
-rw-r--r-- | graphics/ruby-gdal/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/graphics/ruby-gdal/Makefile b/graphics/ruby-gdal/Makefile index c74f79ea2d58..3504cbd51689 100644 --- a/graphics/ruby-gdal/Makefile +++ b/graphics/ruby-gdal/Makefile @@ -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 <bsd.port.mk> |