View | Details | Raw Unified | Return to bug 228975 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-18 / +18 lines)
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
(-)pkg-plist (-11 lines)
Lines 792-802 Link Here
792
%%GRASS_INST_DIR%%/docs/html/i_maxlik_classes.png
792
%%GRASS_INST_DIR%%/docs/html/i_maxlik_classes.png
793
%%GRASS_INST_DIR%%/docs/html/i_maxlik_rejection.png
793
%%GRASS_INST_DIR%%/docs/html/i_maxlik_rejection.png
794
%%GRASS_INST_DIR%%/docs/html/i_maxlik_rgb.png
794
%%GRASS_INST_DIR%%/docs/html/i_maxlik_rgb.png
795
%%GRASS_INST_DIR%%/docs/html/i_ortho_photo_step1.png
796
%%GRASS_INST_DIR%%/docs/html/i_ortho_photo_step5.png
797
%%GRASS_INST_DIR%%/docs/html/i_ortho_photo_step6.png
798
%%GRASS_INST_DIR%%/docs/html/i_ortho_photo_step7.png
799
%%GRASS_INST_DIR%%/docs/html/i_ortho_photo_step8.png
800
%%GRASS_INST_DIR%%/docs/html/i_pca_result.png
795
%%GRASS_INST_DIR%%/docs/html/i_pca_result.png
801
%%GRASS_INST_DIR%%/docs/html/i_segment_lsat7_pan.png
796
%%GRASS_INST_DIR%%/docs/html/i_segment_lsat7_pan.png
802
%%GRASS_INST_DIR%%/docs/html/i_segment_lsat7_seg_min100.png
797
%%GRASS_INST_DIR%%/docs/html/i_segment_lsat7_seg_min100.png
Lines 1171-1177 Link Here
1171
%%GRASS_INST_DIR%%/docs/html/r.unpack.html
1166
%%GRASS_INST_DIR%%/docs/html/r.unpack.html
1172
%%GRASS_INST_DIR%%/docs/html/r.uslek.html
1167
%%GRASS_INST_DIR%%/docs/html/r.uslek.html
1173
%%GRASS_INST_DIR%%/docs/html/r.usler.html
1168
%%GRASS_INST_DIR%%/docs/html/r.usler.html
1174
%%GRASS_INST_DIR%%/docs/html/r.viewshed.png
1175
%%GRASS_INST_DIR%%/docs/html/r.volume.html
1169
%%GRASS_INST_DIR%%/docs/html/r.volume.html
1176
%%GRASS_INST_DIR%%/docs/html/r.walk.html
1170
%%GRASS_INST_DIR%%/docs/html/r.walk.html
1177
%%GRASS_INST_DIR%%/docs/html/r.water.outlet.html
1171
%%GRASS_INST_DIR%%/docs/html/r.water.outlet.html
Lines 1303-1317 Link Here
1303
%%GRASS_INST_DIR%%/docs/html/rlipadrange_formula.png
1297
%%GRASS_INST_DIR%%/docs/html/rlipadrange_formula.png
1304
%%GRASS_INST_DIR%%/docs/html/rlipadsd_formula.png
1298
%%GRASS_INST_DIR%%/docs/html/rlipadsd_formula.png
1305
%%GRASS_INST_DIR%%/docs/html/rshade.png
1299
%%GRASS_INST_DIR%%/docs/html/rshade.png
1306
%%GRASS_INST_DIR%%/docs/html/rterraflow_accumulation.png
1307
%%GRASS_INST_DIR%%/docs/html/rterraflow_dir2.png
1308
%%GRASS_INST_DIR%%/docs/html/rterraflow_dir3.png
1309
%%GRASS_INST_DIR%%/docs/html/runivar_basins.png
1300
%%GRASS_INST_DIR%%/docs/html/runivar_basins.png
1310
%%GRASS_INST_DIR%%/docs/html/runivar_basins_elev_zonal.png
1301
%%GRASS_INST_DIR%%/docs/html/runivar_basins_elev_zonal.png
1311
%%GRASS_INST_DIR%%/docs/html/slope.png
1302
%%GRASS_INST_DIR%%/docs/html/slope.png
1312
%%GRASS_INST_DIR%%/docs/html/sql.html
1303
%%GRASS_INST_DIR%%/docs/html/sql.html
1313
%%GRASS_INST_DIR%%/docs/html/sweep1.png
1314
%%GRASS_INST_DIR%%/docs/html/sweep2.png
1315
%%GRASS_INST_DIR%%/docs/html/t.connect.html
1304
%%GRASS_INST_DIR%%/docs/html/t.connect.html
1316
%%GRASS_INST_DIR%%/docs/html/t.create.html
1305
%%GRASS_INST_DIR%%/docs/html/t.create.html
1317
%%GRASS_INST_DIR%%/docs/html/t.info.html
1306
%%GRASS_INST_DIR%%/docs/html/t.info.html

Return to bug 228975