Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= grass |
4 |
PORTNAME= grass |
5 |
PORTVERSION= 7.4.0 |
5 |
PORTVERSION= 7.4.0 |
6 |
PORTREVISION= 2 |
6 |
PORTREVISION= 3 |
7 |
CATEGORIES= databases geography |
7 |
CATEGORIES= databases geography |
8 |
MASTER_SITES= http://grass.osgeo.org/%SUBDIR%/ \ |
8 |
MASTER_SITES= http://grass.osgeo.org/%SUBDIR%/ \ |
9 |
http://grass.cict.fr/%SUBDIR%/ \ |
9 |
http://grass.cict.fr/%SUBDIR%/ \ |
Lines 25-31
Link Here
|
25 |
LICENSE= GPLv2+ |
25 |
LICENSE= GPLv2+ |
26 |
LICENSE_FILE= ${WRKSRC}/GPL.TXT |
26 |
LICENSE_FILE= ${WRKSRC}/GPL.TXT |
27 |
|
27 |
|
28 |
BROKEN= fails to package |
28 |
BROKEN_sparc64= Does not configure on sparc64 |
29 |
|
29 |
|
30 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.2:math/py-numpy@${PY_FLAVOR} |
30 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.2:math/py-numpy@${PY_FLAVOR} |
31 |
LIB_DEPENDS= libgdal.so:graphics/gdal \ |
31 |
LIB_DEPENDS= libgdal.so:graphics/gdal \ |
Lines 38-44
Link Here
|
38 |
libgeos.so:graphics/geos |
38 |
libgeos.so:graphics/geos |
39 |
RUN_DEPENDS= bash:shells/bash |
39 |
RUN_DEPENDS= bash:shells/bash |
40 |
|
40 |
|
41 |
USES= fortran gettext gmake iconv jpeg perl5 pkgconfig python:2.7 \ |
41 |
USES= blaslapack compiler:openmp fortran gettext gmake iconv jpeg perl5 pkgconfig python:2.7 \ |
42 |
readline shebangfix tk |
42 |
readline shebangfix tk |
43 |
SHEBANG_LANG= nviz |
43 |
SHEBANG_LANG= nviz |
44 |
nviz_OLD_CMD= nviz |
44 |
nviz_OLD_CMD= nviz |
Lines 78-96
Link Here
|
78 |
VERSION="${PORTVERSION}" \ |
78 |
VERSION="${PORTVERSION}" \ |
79 |
VER="${PORTVERSION:R:C/\.//}" |
79 |
VER="${PORTVERSION:R:C/\.//}" |
80 |
|
80 |
|
81 |
BROKEN_sparc64= Does not configure on sparc64 |
81 |
OPTIONS_DEFINE= LAS MOTIF NETCDF PDAL |
82 |
|
|
|
83 |
OPTIONS_DEFINE= ATLAS LAS MOTIF NETCDF PDAL |
84 |
OPTIONS_MULTI= DB |
82 |
OPTIONS_MULTI= DB |
85 |
OPTIONS_MULTI_DB= MYSQL ODBC PGSQL SQLITE |
83 |
OPTIONS_MULTI_DB= MYSQL ODBC PGSQL SQLITE |
86 |
OPTIONS_DEFAULT= LAS PDAL PGSQL SQLITE |
84 |
#OPTIONS_SINGLE= BLAS |
|
|
85 |
#OPTIONS_SINGLE_BLAS= ATLAS NETLIB GOTOBLAS OPENBLAS |
86 |
OPTIONS_DEFAULT= LAS PDAL PGSQL SQLITE NETLIB |
87 |
OPTIONS_SUB= yes |
87 |
OPTIONS_SUB= yes |
88 |
|
88 |
|
89 |
ATLAS_DESC= Use ATLAS for BLAS and LAPACK |
89 |
#BLAS_DESC= BLAS/LAPACK support |
|
|
90 |
#GOTOBLAS_DESC= GotoBLAS implementation |
90 |
LAS_DESC= Enable LiDAR modules |
91 |
LAS_DESC= Enable LiDAR modules |
91 |
PDAL_DESC= Enable points cloud data modules |
92 |
PDAL_DESC= Enable points cloud data modules |
92 |
ATLAS_USES= blaslapack:atlas |
93 |
#ATLAS_USES= blaslapack:atlas |
93 |
ATLAS_USES_OFF= blaslapack |
94 |
#NETLIB_USES= blaslapack |
|
|
95 |
#GOTOBLAS_USES= blaslapack:gotoblas |
96 |
#OPENBLAS_USES= blaslapack:openblas |
94 |
DB_DESC= Database support |
97 |
DB_DESC= Database support |
95 |
LAS_CONFIGURE_ON= --with-liblas=yes |
98 |
LAS_CONFIGURE_ON= --with-liblas=yes |
96 |
LAS_LIB_DEPENDS= liblas.so:devel/liblas \ |
99 |
LAS_LIB_DEPENDS= liblas.so:devel/liblas \ |
Lines 147-158
Link Here
|
147 |
@${REINPLACE_CMD} \ |
150 |
@${REINPLACE_CMD} \ |
148 |
's|$$(ARCH)|$$(TARGET)|g' ${WRKSRC}/include/Make/Grass.make |
151 |
's|$$(ARCH)|$$(TARGET)|g' ${WRKSRC}/include/Make/Grass.make |
149 |
# Replace hardcoded python interpreter to PYTHON_CMD |
152 |
# Replace hardcoded python interpreter to PYTHON_CMD |
150 |
@${REINPLACE_CMD} -e 's|env python|env ${PYTHON_CMD}|g' \ |
|
|
151 |
${WRKSRC}/lib/gis/parser_script.c \ |
152 |
${WRKSRC}/general/g.parser/g.parser.html \ |
153 |
${WRKSRC}/lib/python/docs/src/script_intro.rst \ |
154 |
${WRKSRC}/lib/init/grass7.html \ |
155 |
${WRKSRC}/raster/r.solute.transport/r.solute.transport.html |
156 |
@${REINPLACE_CMD} "s|'GRASS_PYTHON', 'python'|'GRASS_PYTHON', \'${PYTHON_CMD}\'|g" \ |
153 |
@${REINPLACE_CMD} "s|'GRASS_PYTHON', 'python'|'GRASS_PYTHON', \'${PYTHON_CMD}\'|g" \ |
157 |
${WRKSRC}/scripts/wxpyimgview/wxpyimgview.py |
154 |
${WRKSRC}/scripts/wxpyimgview/wxpyimgview.py |
158 |
@${REINPLACE_CMD} 's|GRASS_PYTHON=python|GRASS_PYTHON=${PYTHON_CMD}|g' \ |
155 |
@${REINPLACE_CMD} 's|GRASS_PYTHON=python|GRASS_PYTHON=${PYTHON_CMD}|g' \ |
Lines 160-170
Link Here
|
160 |
@${REINPLACE_CMD} \ |
157 |
@${REINPLACE_CMD} \ |
161 |
"s|environ\['GRASS_PYTHON'\] = "'"python"'"|environ['GRASS_PYTHON'] = "'"${PYTHON_CMD}"'"|g" \ |
158 |
"s|environ\['GRASS_PYTHON'\] = "'"python"'"|environ['GRASS_PYTHON'] = "'"${PYTHON_CMD}"'"|g" \ |
162 |
${WRKSRC}/lib/python/script/setup.py |
159 |
${WRKSRC}/lib/python/script/setup.py |
163 |
@${FIND} ${WRKSRC} -type f -name "*.py" | ${XARGS} ${REINPLACE_CMD} \ |
160 |
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \ |
164 |
's|env python|env ${PYTHON_CMD}|g' |
161 |
's|#!/usr/bin/env python|#!/usr/bin/env ${PYTHON_CMD}|' |
|
|
162 |
@${REINPLACE_CMD} \ |
163 |
's|%%PYTHON_CMD%%|${PYTHON_CMD}|' |
165 |
|
164 |
|
166 |
post-install: |
165 |
post-install: |
167 |
@${RM} -rf ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/demolocation/PERMANENT/.tmp/ |
166 |
@${RM} -rf ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/demolocation/PERMANENT/.tmp/ |
|
|
167 |
@${RM} -rf ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/docs/html/colortables/*bak.png |
168 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/bin/* |
168 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/bin/* |
169 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/driver/db/* |
169 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/driver/db/* |
170 |
.for i in clean_temp current_time_s_ms echo i.find lock run r.watershed/seg r.watershed/ram |
170 |
.for i in clean_temp current_time_s_ms echo i.find lock run r.watershed/seg r.watershed/ram |