4 DISTNAME= grass-${GRASS_VERSION}
7 MASTER_SITES= http://grass.itc.it/grass63/source/
9 MAINTAINER= brook@nmsu.edu
10 HOMEPAGE= http://grass.itc.it/
11 COMMENT= Open source geographical information system (GIS)
15 USE_TOOLS+= autoconf bash gm4 gmake perl
19 BUILDLINK_PASSTHRU_RPATHDIRS+= ${GRASS_HOME}/lib
23 PLIST_VARS+= fftw freetype iodbc motif mysql
24 PLIST_VARS+= nls opengl pgsql sqlite unixodbc
26 CONFIGURE_ARGS+= --with-cxx
27 CONFIGURE_ARGS+= --without-opendwg
28 CONFIGURE_ARGS+= --with-proj-share=${PREFIX}/share/proj
29 CONFIGURE_ARGS+= --with-readline
31 REPLACE_BASH+= scripts/i.spectral/i.spectral
32 REPLACE_BASH+= scripts/r.tileset/r.tileset
33 REPLACE_BASH+= scripts/v.in.gpsbabel/v.in.gpsbabel
35 REPLACE_PYTHON+= gui/wxpython/gui_modules/menuform.py
39 # Note - the following is because the grass build process involves
40 # installing compiled objects into a directory within ${WRKSRC};
41 # during installation, files are installed from there into ${PREFIX}.
42 # However, because the install command changes ownership (even during
43 # the build phase), the package cannot be built by a non-root user.
45 @if [ `${ID} -u` != 0 ]; then \
46 ${ECHO} "${PKGNAME} must be built as root because it uses install during build." ; \
50 ${LN} -s grass${GRASS_VERSION:C/\.[0-9]+\$$//:S/.//g} \
53 .include "Makefile.common"
54 .include "../../devel/ncurses/buildlink3.mk"
55 .include "../../devel/readline/buildlink3.mk"
56 .include "../../geography/gdal-lib/buildlink3.mk"
57 .include "../../graphics/gd/buildlink3.mk"
58 .include "../../graphics/jpeg/buildlink3.mk"
59 .include "../../graphics/png/buildlink3.mk"
60 .include "../../graphics/tiff/buildlink3.mk"
61 .include "../../lang/tcl/buildlink3.mk"
62 .include "../../misc/proj/buildlink3.mk"
63 .include "../../mk/pthread.buildlink3.mk"
64 .include "../../x11/tk/buildlink3.mk"
65 .include "../../mk/bsd.pkg.mk"