mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
databases/grass8: New port
After more than 3 years of development the new stable release GRASS GIS 8.0 is available. Efforts have concentrated on making the user experience even better, providing many new useful additional functionalities to modules and further improving the graphical user interface. Breaking news: new graphical user interface with entirely rewritten startup sequence! In total, it comes with almost 1,300 fixes and improvements with respect to the previous stable releases 7.8.x. See: https://trac.osgeo.org/grass/wiki/Grass8/NewFeatures80 Geographic Resources Analysis Support System (GRASS GIS) An open source Geographical Information System (GIS) with raster, topological vector, image processing, and graphics production functionality that operates on various platforms through a graphical user interface and shell in X-Windows. It is released under GNU General Public License (GPL). WWW: https://grass.osgeo.org/
This commit is contained in:
parent
37ee0986fc
commit
64f9c2a583
5 changed files with 4553 additions and 0 deletions
|
@ -108,6 +108,7 @@
|
||||||
SUBDIR += gom
|
SUBDIR += gom
|
||||||
SUBDIR += gqlplus
|
SUBDIR += gqlplus
|
||||||
SUBDIR += grass7
|
SUBDIR += grass7
|
||||||
|
SUBDIR += grass8
|
||||||
SUBDIR += hashtypes
|
SUBDIR += hashtypes
|
||||||
SUBDIR += hbase
|
SUBDIR += hbase
|
||||||
SUBDIR += hiredis
|
SUBDIR += hiredis
|
||||||
|
|
151
databases/grass8/Makefile
Normal file
151
databases/grass8/Makefile
Normal file
|
@ -0,0 +1,151 @@
|
||||||
|
PORTNAME= grass
|
||||||
|
DISTVERSION= 8.0.0
|
||||||
|
DISTVERSIONSUFFIX= RC1
|
||||||
|
CATEGORIES= databases geography
|
||||||
|
MASTER_SITES= https://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= grass${VER}/source
|
||||||
|
PKGNAMESUFFIX= 8
|
||||||
|
|
||||||
|
PATCH_SITES= https://github.com/osgeo/${PORTNAME}/commit/
|
||||||
|
PATCHFILES= fbbf6c01ac97.patch:-p1 # https://github.com/OSGeo/grass/pull/2075 fix g.extension
|
||||||
|
|
||||||
|
MAINTAINER= lbartoletti@FreeBSD.org
|
||||||
|
COMMENT= Open source Geographical Information System (GIS)
|
||||||
|
|
||||||
|
LICENSE= GPLv2+
|
||||||
|
LICENSE_FILE= ${WRKSRC}/GPL.TXT
|
||||||
|
|
||||||
|
BUILD_DEPENDS= ${PY_NUMPY} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
|
||||||
|
LIB_DEPENDS= libgdal.so:graphics/gdal \
|
||||||
|
libpng.so:graphics/png \
|
||||||
|
libproj.so:graphics/proj \
|
||||||
|
libtiff.so:graphics/tiff \
|
||||||
|
libgeotiff.so:graphics/libgeotiff \
|
||||||
|
libfftw3.so:math/fftw3 \
|
||||||
|
libfontconfig.so:x11-fonts/fontconfig \
|
||||||
|
libfreetype.so:print/freetype2 \
|
||||||
|
libgeos.so:graphics/geos \
|
||||||
|
libzstd.so:archivers/zstd
|
||||||
|
RUN_DEPENDS= ${PY_NUMPY} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}
|
||||||
|
|
||||||
|
USES= blaslapack compiler:c11 gl gmake gnome iconv \
|
||||||
|
jpeg perl5 pkgconfig python:3.6+ readline shebangfix sqlite xorg
|
||||||
|
SHEBANG_GLOB= *.py
|
||||||
|
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
|
||||||
|
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-readline \
|
||||||
|
--enable-largefile \
|
||||||
|
--with-wxwidgets=${WX_CONFIG} \
|
||||||
|
--with-proj-share=${LOCALBASE}/share/proj \
|
||||||
|
--with-proj-includes=${LOCALBASE}/include \
|
||||||
|
--with-proj-libs=${LOCALBASE}/lib \
|
||||||
|
--with-proj=${LOCALBASE}/bin/proj \
|
||||||
|
--with-geos=${LOCALBASE}/bin/geos-config \
|
||||||
|
--with-gdal=${LOCALBASE}/bin/gdal-config \
|
||||||
|
--with-pthread=yes \
|
||||||
|
--with-openmp \
|
||||||
|
--prefix=${LOCALBASE} \
|
||||||
|
--exec-prefix=${LOCALBASE}
|
||||||
|
|
||||||
|
CFLAGS+= -std=c11
|
||||||
|
|
||||||
|
SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
|
||||||
|
BINARY_ALIAS= python3=${PYTHON_CMD}
|
||||||
|
ALL_TARGET= default
|
||||||
|
USE_LDCONFIG= ${PREFIX}/${GRASS_INST_DIR}/lib
|
||||||
|
MAKE_ENV+= TARGET="${CONFIGURE_TARGET}"
|
||||||
|
VER= ${PORTVERSION:R:C/\.//}
|
||||||
|
|
||||||
|
PLIST_SUB= GRASS_INST_DIR="${GRASS_INST_DIR}" \
|
||||||
|
VERSION="${PORTVERSION}" VERS="${PORTVERSION:C/([0-9]+).([0-9]+)(.*)/\1.\2/}" \
|
||||||
|
VER="${VER}" MAJVER="${PKGNAMESUFFIX}"
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= NETCDF NLS PDAL
|
||||||
|
OPTIONS_MULTI= DB
|
||||||
|
OPTIONS_MULTI_DB= MYSQL ODBC PGSQL
|
||||||
|
OPTIONS_DEFAULT= NETCDF NLS PDAL PGSQL
|
||||||
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
|
PDAL_DESC= Enable points cloud data modules
|
||||||
|
DB_DESC= Database support
|
||||||
|
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
|
||||||
|
NLS_CONFIGURE_WITH= nls
|
||||||
|
NLS_USES= gettext
|
||||||
|
ODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC
|
||||||
|
ODBC_CONFIGURE_WITH= odbc
|
||||||
|
PDAL_CONFIGURE_ON= --with-pdal=${LOCALBASE}/bin/pdal-config
|
||||||
|
PDAL_LIB_DEPENDS= libpdal_base.so:math/pdal
|
||||||
|
PGSQL_USES= pgsql
|
||||||
|
PGSQL_CONFIGURE_WITH= postgres
|
||||||
|
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if !defined (GRASS_INST_DIR)
|
||||||
|
GRASS_INST_DIR= ${PORTNAME}${VER}
|
||||||
|
.endif
|
||||||
|
|
||||||
|
MANDIRS= ${PREFIX}/grass${VER}/docs/man/man1
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
${REINPLACE_CMD} \
|
||||||
|
's|= python3|= ${PYTHON_CMD:T}|' ${WRKSRC}/include/Make/Platform.make.in
|
||||||
|
${REINPLACE_CMD} \
|
||||||
|
's|$$(ARCH)|$$(TARGET)|g' ${WRKSRC}/include/Make/Grass.make
|
||||||
|
# Replace hardcoded python interpreter to PYTHON_CMD
|
||||||
|
${REINPLACE_CMD} 's|"GRASS_PYTHON", "python"|"GRASS_PYTHON", "${PYTHON_CMD}"|g' \
|
||||||
|
${WRKSRC}/scripts/wxpyimgview/wxpyimgview.py
|
||||||
|
${REINPLACE_CMD} \
|
||||||
|
's|environ\["GRASS_PYTHON"\] = "python3"|environ["GRASS_PYTHON"] = "${PYTHON_CMD}"|g' \
|
||||||
|
${WRKSRC}/python/grass/script/setup.py
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
${RM} -rf ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/demolocation/PERMANENT/.tmp/
|
||||||
|
|
||||||
|
# STRIP PART
|
||||||
|
${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 lister/vector lister/cell
|
||||||
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/etc/${i}
|
||||||
|
.endfor
|
||||||
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/lib/*
|
||||||
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/utils/g.echo
|
||||||
|
|
||||||
|
# symlink grass8
|
||||||
|
${LN} -sf ${PORTNAME} \
|
||||||
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
|
||||||
|
.include <bsd.port.post.mk>
|
5
databases/grass8/distinfo
Normal file
5
databases/grass8/distinfo
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
TIMESTAMP = 1641745111
|
||||||
|
SHA256 (grass-8.0.0RC1.tar.gz) = 1f562566d2ee8925ffe23f5c91f5173ada8adb0ac5656c39c52e6f01c510512e
|
||||||
|
SIZE (grass-8.0.0RC1.tar.gz) = 64800389
|
||||||
|
SHA256 (fbbf6c01ac97.patch) = a804e1a0b6b5fbeeb2c20e02726634c67354671ab0b52184e5a8049b7d69ac10
|
||||||
|
SIZE (fbbf6c01ac97.patch) = 2217
|
9
databases/grass8/pkg-descr
Normal file
9
databases/grass8/pkg-descr
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
Geographic Resources Analysis Support System
|
||||||
|
(GRASS GIS)
|
||||||
|
|
||||||
|
An open source Geographical Information System (GIS) with raster,
|
||||||
|
topological vector, image processing, and graphics production functionality
|
||||||
|
that operates on various platforms through a graphical user interface and
|
||||||
|
shell in X-Windows. It is released under GNU General Public License (GPL).
|
||||||
|
|
||||||
|
WWW: https://grass.osgeo.org/
|
4387
databases/grass8/pkg-plist
Normal file
4387
databases/grass8/pkg-plist
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue