Index: head/databases/grass7/Makefile =================================================================== --- head/databases/grass7/Makefile (revision 469922) +++ head/databases/grass7/Makefile (revision 469923) @@ -1,177 +1,175 @@ # Created by: Mikael URANKAR and Loïc BARTOLETTI # $FreeBSD$ PORTNAME= grass PORTVERSION= 7.4.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases geography MASTER_SITES= http://grass.osgeo.org/%SUBDIR%/ \ http://grass.cict.fr/%SUBDIR%/ \ http://grass.fbk.eu/%SUBDIR%/ \ http://grass.gis-lab.info/%SUBDIR%/ \ http://grass.meteo.uni.wroc.pl/%SUBDIR%/ \ http://grass.polytechnic.edu.na/%SUBDIR%/ \ http://grass.unibuc.ro/%SUBDIR%/ \ http://mirrors.ibiblio.org/grass/%SUBDIR%/ \ http://pinus.gntech.ac.kr/grass/%SUBDIR%/ \ http://wgbis.ces.iisc.ernet.in/grass/%SUBDIR%/ \ http://wgrass.media.osaka-cu.ac.jp/grassh/%SUBDIR%/ MASTER_SITE_SUBDIR= grass74/source PKGNAMESUFFIX= 7 MAINTAINER= lbartoletti@tuxfamily.org COMMENT= Open source Geographical Information System (GIS) LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/GPL.TXT - -BROKEN= fails to package BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.2:math/py-numpy@${PY_FLAVOR} LIB_DEPENDS= libgdal.so:graphics/gdal \ libpng.so:graphics/png \ libproj.so:graphics/proj \ libtiff.so:graphics/tiff \ libfftw3.so:math/fftw3 \ libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libgeos.so:graphics/geos RUN_DEPENDS= bash:shells/bash USES= fortran gettext gmake iconv jpeg perl5 pkgconfig python:2.7 \ readline shebangfix tk SHEBANG_LANG= nviz nviz_OLD_CMD= nviz nviz_CMD= ${PREFIX}/${GRASS_INST_DIR}/bin/nviz USE_XORG= sm ice x11 xext xi xmu xrender xt USE_GL= gl glu USE_GNOME= cairo USE_WX= 3.0 WX_COMPS= wx:build python:run USE_GCC= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-includes=${LOCALBASE}/include \ --with-libs=${LOCALBASE}/lib \ --with-opengl-includes=${LOCALBASE}/include/ \ --with-opengl-libs=${LOCALBASE}/lib/ \ --with-freetype \ --with-freetype-includes=${LOCALBASE}/include/freetype2 \ --with-blas \ --with-lapack \ --with-cairo \ --with-nls \ --with-readline \ --enable-largefile \ --with-wxwidgets=${WX_CONFIG} \ --with-proj-share=${LOCALBASE}/share/proj \ --with-geos=${LOCALBASE}/bin/geos-config \ --with-gdal=${LOCALBASE}/bin/gdal-config \ --with-pthread=yes \ --with-openmp ALL_TARGET= default USE_LDCONFIG= ${PREFIX}/${GRASS_INST_DIR}/lib MAKE_ENV+= TARGET="${CONFIGURE_TARGET}" PLIST_SUB= GRASS_INST_DIR="${GRASS_INST_DIR}" \ VERSION="${PORTVERSION}" \ VER="${PORTVERSION:R:C/\.//}" BROKEN_sparc64= Does not configure on sparc64 OPTIONS_DEFINE= ATLAS LAS MOTIF NETCDF PDAL OPTIONS_MULTI= DB OPTIONS_MULTI_DB= MYSQL ODBC PGSQL SQLITE OPTIONS_DEFAULT= LAS PDAL PGSQL SQLITE OPTIONS_SUB= yes ATLAS_DESC= Use ATLAS for BLAS and LAPACK LAS_DESC= Enable LiDAR modules PDAL_DESC= Enable points cloud data modules ATLAS_USES= blaslapack:atlas ATLAS_USES_OFF= blaslapack DB_DESC= Database support LAS_CONFIGURE_ON= --with-liblas=yes LAS_LIB_DEPENDS= liblas.so:devel/liblas \ libboost_program_options.so:devel/boost-libs \ libboost_thread.so:devel/boost-libs \ libgeotiff.so:graphics/libgeotiff MOTIF_USES= motif MOTIF_USE= GL=glw MOTIF_CONFIGURE_ON= --with-motif --with-glw MYSQL_USES= mysql MYSQL_CONFIGURE_ON= --with-mysql \ --with-mysql-includes=${LOCALBASE}/include/mysql \ --with-mysql-libs=${LOCALBASE}/lib/mysql NETCDF_CONFIGURE_ON= --with-netcdf=${LOCALBASE}/bin/nc-config NETCDF_LIB_DEPENDS= libnetcdf.so:science/netcdf ODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC ODBC_CONFIGURE_ON= --with-odbc PDAL_CONFIGURE_ON= --with-pdal=${LOCALBASE}/bin/pdal-config PDAL_LIB_DEPENDS= libpdal_base.so:math/pdal PGSQL_USES= pgsql PGSQL_CONFIGURE_ON= --with-postgres SQLITE_USES= sqlite SQLITE_CONFIGURE_ON= --with-sqlite SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} .include .if !defined (GRASS_INST_DIR) GRASS_INST_DIR= ${PORTNAME}-${PORTVERSION} .endif MANDIRS= ${PREFIX}/grass-${PORTVERSION}/docs/man/man1 post-patch: @${REINPLACE_CMD} -e \ 's|-lblas|${BLASLIB}|g ; \ s|-llapack|${LAPACKLIB}|g ; \ s|g2c|f2c|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e \ 's|make -C|$$(MAKE) -C| ; \ /^BINDIR/s|=.*|= $${DESTDIR}$${UNIX_BIN}| ; \ /test /s| $$(INST_DIR)| $${DESTDIR}$${INST_DIR}|g ; \ /tar /s| $$(INST_DIR)| $${DESTDIR}$${INST_DIR}|g ; \ /chmod /s| $$(INST_DIR)| $${DESTDIR}$${INST_DIR}|g ; \ /tar /s| $$(INST_DIR)| $${DESTDIR}$${INST_DIR}|g ; \ /rm /s| $$(INST_DIR)| $${DESTDIR}$${INST_DIR}|g ; \ /$$(MAKE) /s| $$(INST_DIR)| $${DESTDIR}$${INST_DIR}|g ; \ /^$$(INST_DIR)\//s|$$(INST_DIR)|$${DESTDIR}$${INST_DIR}|g ; \ s|> $$(INST_DIR)|> $${DESTDIR}$${INST_DIR}|' ${WRKSRC}/include/Make/Install.make @${REINPLACE_CMD} \ 's|= python|= ${PYTHON_CMD:T}|' ${WRKSRC}/include/Make/Platform.make.in @${REINPLACE_CMD} \ "s|'make'|'gmake'|g" ${WRKSRC}/scripts/g.extension/g.extension.py @${REINPLACE_CMD} \ 's|$$(ARCH)|$$(TARGET)|g' ${WRKSRC}/include/Make/Grass.make # Replace hardcoded python interpreter to PYTHON_CMD @${REINPLACE_CMD} -e 's|env python|env ${PYTHON_CMD}|g' \ ${WRKSRC}/lib/gis/parser_script.c \ ${WRKSRC}/general/g.parser/g.parser.html \ ${WRKSRC}/lib/python/docs/src/script_intro.rst \ ${WRKSRC}/lib/init/grass7.html \ ${WRKSRC}/raster/r.solute.transport/r.solute.transport.html @${REINPLACE_CMD} "s|'GRASS_PYTHON', 'python'|'GRASS_PYTHON', \'${PYTHON_CMD}\'|g" \ ${WRKSRC}/scripts/wxpyimgview/wxpyimgview.py @${REINPLACE_CMD} 's|GRASS_PYTHON=python|GRASS_PYTHON=${PYTHON_CMD}|g' \ ${WRKSRC}/lib/init/grass.sh @${REINPLACE_CMD} \ "s|environ\['GRASS_PYTHON'\] = "'"python"'"|environ['GRASS_PYTHON'] = "'"${PYTHON_CMD}"'"|g" \ ${WRKSRC}/lib/python/script/setup.py @${FIND} ${WRKSRC} -type f -name "*.py" | ${XARGS} ${REINPLACE_CMD} \ 's|env python|env ${PYTHON_CMD}|g' post-install: @${RM} -rf ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/demolocation/PERMANENT/.tmp/ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/bin/* @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/driver/db/* .for i in clean_temp current_time_s_ms echo i.find lock run r.watershed/seg r.watershed/ram @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/etc/${i} .endfor @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/etc/lister/* @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/lib/libgrass_*.so @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/tools/g.echo .include