~cypheon/pkgsrc-wip

pkgsrc-wip/gwyddion/Makefile -rw-r--r-- 2.2 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
# $NetBSD: Makefile,v 1.5 2014/05/09 07:38:43 thomasklausner Exp $

DISTNAME=	gwyddion-2.20
CATEGORIES=	graphics #science
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=gwyddion/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	jihbed.research@gmail.com
HOMEPAGE=	http://gwyddion.sourceforge.net/
COMMENT=	Gtk2 based SPM data visualization and analysis tool
LICENSE=	gnu-gpl-v2

GNU_CONFIGURE=		yes
CONFIGURE_ENV+=		PYTHON=${PYTHONBIN}
USE_LIBTOOL=		yes
USE_TOOLS+=		pkg-config intltool msgfmt gmake perl
USE_PKGLOCALEDIR=	yes
USE_LANGUAGES=		c c++

GCONF_SCHEMAS+=		data/gwyddion-thumbnailer.schemas
PKGCONFIG_OVERRIDE+=	data/gwyddion.pc.in

SUBST_CLASSES+=		schema
SUBST_STAGE.schema=	pre-configure
SUBST_MESSAGE.schema=	Fixing schema installation path.
SUBST_FILES.schema+=	data/Makefile.in
SUBST_SED.schema+=	-e "s,..sysconfdir./gconf/schemas,${PREFIX}/share/gconf/schemas/,"

PKG_OPTIONS_VAR=		PKG_OPTIONS.gwyddion
PKG_SUPPORTED_OPTIONS=		pygwy fftw3
PKG_SUGGESTED_OPTIONS=		pygwy fftw3

.include "../../mk/bsd.options.mk"

.if !empty (PKG_OPTIONS:Mpygwy)
PYTHON_VERSIONS_ACCEPTED=	27 # py-gtk2
.include "../../x11/py-gtk2/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-pygwy
.endif

.if !empty (PKG_OPTIONS:Mfftw3)
BUILDLINK_API_DEPENDS.fftw+=	fftw>=3.0
.include "../../math/fftw/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-fftw3
.endif

.include "../../databases/shared-mime-info/buildlink3.mk"
.include "../../devel/GConf/schemas.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/gtkglext/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/ruby/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
BUILDLINK_API_DEPENDS.libxml2+=	libxml2>=2.6.2
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
BUILDLINK_API_DEPENDS.gtk2+=	gtk2+>=2.4.0
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/gtksourceview2/buildlink3.mk"
.include "../../x11/libunique/buildlink3.mk"
.include "../../mk/omf-scrollkeeper.mk"
.include "../../mk/bsd.pkg.mk"