7516efc07c
This is an intermediate step forward removing usage of unsupported options. Most packages didn't build but at least "make clean" now works.
79 lines
2.6 KiB
Makefile
79 lines
2.6 KiB
Makefile
# $NetBSD: Makefile,v 1.29 2015/03/14 18:42:48 lexort Exp $
|
|
|
|
DISTNAME= grass-${GRASS_VERSION}
|
|
PKGREVISION= 5
|
|
CATEGORIES= geography
|
|
MASTER_SITES= http://grass.itc.it/grass64/source/
|
|
|
|
MAINTAINER= brook@nmsu.edu
|
|
HOMEPAGE= http://grass.itc.it/
|
|
COMMENT= Open source geographical information system (GIS)
|
|
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_PKGLOCALEDIR= yes
|
|
USE_TOOLS+= autoconf bash gm4 gmake perl pkg-config
|
|
USE_X11= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
BUILDLINK_PASSTHRU_RPATHDIRS+= ${GRASS_HOME}/lib
|
|
|
|
.include "options.mk"
|
|
|
|
PLIST_VARS+= fftw freetype iodbc motif mysql
|
|
PLIST_VARS+= opengl pgsql sqlite unixodbc
|
|
|
|
CONFIGURE_ARGS+= --with-cairo
|
|
CONFIGURE_ARGS+= --with-cxx
|
|
CONFIGURE_ARGS+= --with-nls
|
|
CONFIGURE_ARGS+= --without-opendwg
|
|
CONFIGURE_ARGS+= --with-proj-share=${PREFIX}/share/proj
|
|
CONFIGURE_ARGS+= --with-readline
|
|
|
|
REPLACE_BASH+= scripts/i.spectral/i.spectral
|
|
REPLACE_BASH+= scripts/r.tileset/r.tileset
|
|
REPLACE_BASH+= scripts/v.in.gpsbabel/v.in.gpsbabel
|
|
|
|
REPLACE_PYTHON+= gui/wxpython/gui_modules/menuform.py
|
|
|
|
REPLACE_INTERPRETER+= nviz
|
|
REPLACE.nviz.old= .*nviz
|
|
REPLACE.nviz.new= ${PREFIX}/${PKGNAME}/bin/nviz
|
|
REPLACE_FILES.nviz+= visualization/nviz/scripts/nviz2.2_script
|
|
REPLACE_FILES.nviz+= visualization/nviz/scripts/script_file_tools
|
|
REPLACE_FILES.nviz+= visualization/nviz/scripts/script_get_line
|
|
REPLACE_FILES.nviz+= visualization/nviz/scripts/script_play
|
|
REPLACE_FILES.nviz+= visualization/nviz/scripts/script_tools
|
|
|
|
BUILD_TARGET= default
|
|
|
|
# Note - the following is because the grass build process involves
|
|
# installing compiled objects into a directory within ${WRKSRC};
|
|
# during installation, files are installed from there into ${PREFIX}.
|
|
# However, because the install command changes ownership (even during
|
|
# the build phase), the package cannot be built by a non-root user.
|
|
pre-extract:
|
|
if [ `${ID} -u` != 0 ]; then \
|
|
${ECHO} "${PKGNAME} must be built as root because it uses install during build." ; \
|
|
${FALSE}; fi
|
|
|
|
post-install:
|
|
${LN} -s grass${GRASS_VERSION:C/\.[0-9]+\$$//:S/.//g} \
|
|
${PREFIX}/bin/grass
|
|
|
|
.include "Makefile.common"
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
.include "../../devel/swig/buildlink3.mk"
|
|
.include "../../geography/gdal-lib/buildlink3.mk"
|
|
.include "../../geography/proj/buildlink3.mk"
|
|
.include "../../graphics/cairo/buildlink3.mk"
|
|
.include "../../graphics/gd/buildlink3.mk"
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
|
.include "../../lang/tcl/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../x11/tk/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|