File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -53,17 +53,15 @@ netcdf-bin libnetcdf-dev
53
53
GRASS := /usr/local/bin/grass
54
54
GDAL_CONFIG := /usr/local/bin/gdal_config
55
55
BUILD_ESSENTIAL := /usr/share/build-essential
56
+ MAN := /usr/bin/man
56
57
57
58
# Build tools.
58
59
SVN := /usr/bin/svn
59
60
GIT := /usr/bin/git
60
61
61
- # The number of processors available.
62
- NPROC := $(shell nproc)
63
-
64
62
install : $(GRASS )
65
63
66
- $(GRASS ) : /tmp/grass $(BUILD_ESSENTIAL ) $(GDAL_CONFIG )
64
+ $(GRASS ) : /tmp/grass $(BUILD_ESSENTIAL ) $(GDAL_CONFIG ) $( MAN )
67
65
cd /tmp/grass/ \
68
66
&& CFLAGS=" -O2 -Wall" LDFLAGS=" -s" ./configure \
69
67
--enable-largefile=yes \
@@ -83,11 +81,15 @@ $(GRASS): /tmp/grass $(BUILD_ESSENTIAL) $(GDAL_CONFIG)
83
81
--with-odbc=yes \
84
82
--with-netcdf=yes \
85
83
--with-liblas=yes \
86
- && make -j$( NPROC ) \
84
+ && make -j$$( nproc ) \
87
85
&& make install \
86
+ && export WITH_GRASS=/usr/local/grass-$$(head -3 /tmp/grass/include/VERSION | tr "\n" . | sed 's/\.$$//' ) \
87
+ && echo " $$ {WITH_GRASS}/lib" > /etc/ld.so.conf.d/grass.conf \
88
88
&& ldconfig \
89
89
&& ln -fs /usr/local/bin/grass$$(head -2 /tmp/grass/include/VERSION | tr -d "\n" ) $(GRASS ) \
90
- && touch -c $(GRASS )
90
+ && touch -c -r /tmp/apt-updated $(GDAL_CONFIG ) \
91
+ && make -C /usr/local/src/gdal-docker install WITH_GRASS=$$ WITH_GRASS \
92
+ && touch -c $(GDAL_CONFIG ) $(GRASS )
91
93
92
94
$(GDAL_CONFIG ) : /usr/local/src/gdal-docker
93
95
make -C /usr/local/src/gdal-docker install \
@@ -100,6 +102,9 @@ $(GDAL_CONFIG): /usr/local/src/gdal-docker
100
102
$(SVN ) checkout --quiet " http://svn.osgeo.org/grass/grass/$( GRASS_VERSION) /" /tmp/grass/ \
101
103
&& touch -c /tmp/grass
102
104
105
+ $(MAN ) : /tmp/apt-updated
106
+ apt-get install -y man && touch -c $(MAN )
107
+
103
108
$(SVN ) : /tmp/apt-updated
104
109
apt-get install -y subversion && touch -c $(SVN )
105
110
You can’t perform that action at this time.
0 commit comments