~cypheon/pkgsrc-wip

pkgsrc-wip/grass/Makefile -rw-r--r-- 2.6 KiB
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# $NetBSD: Makefile,v 1.29 2015/03/14 18:42:48 lexort Exp $

DISTNAME=		grass-${GRASS_VERSION}
PKGREVISION=		7
CATEGORIES=		geography
MASTER_SITES=		http://grass.itc.it/grass64/source/
LICENSE=		gnu-gpl-v2

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"