summaryrefslogtreecommitdiff
path: root/wm/fvwm/Makefile
blob: ee71013a3e53b2458c93af8fa74b554256557b92 (plain)
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
# $NetBSD: Makefile,v 1.58 2022/04/18 19:12:14 adam Exp $

DISTNAME=	fvwm-${FVWM_VER}
PKGREVISION=	12
CATEGORIES=	wm x11
MASTER_SITES=	${MASTER_SITE_GITHUB:=fvwmorg/}
GITHUB_RELEASE=	${FVWM_VER}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.fvwm.org/
COMMENT=	Newer version of X11 Virtual window manager
LICENSE=	gnu-gpl-v2

CONFLICTS=	fvwm1-[0-9]* fvwm2-[0-9]* metisse-[0-9]* xpmroot-[0-9]*
FVWM_VER=	2.6.9

GNU_CONFIGURE=		YES
USE_TOOLS+=		perl:run tar pkg-config

PLIST_SUBST+=		FVWM_VER=${FVWM_VER:Q}

INSTALLATION_DIRS+=	lib/X11/fvwm2
INSTALLATION_DIRS+=	lib/X11/fvwm2/pixmaps
INSTALLATION_DIRS+=	${PKGMANDIR}/man1

# \todo: build with debug(or dbug?) to see fvwm console etc
# \todo: look into more configure options
CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/lib/X11/fvwm2
CONFIGURE_ARGS+=	--libexecdir=${PREFIX}/lib/X11
CONFIGURE_ARGS+=	--with-xpm-includes=${BUILDLINK_PREFIX.libXpm}/include
CONFIGURE_ARGS+=	--with-imagepath=${PREFIX}/lib/X11/fvwm2/pixmaps:${X11BASE}/include/X11/bitmaps:${X11BASE}/include/X11/pixmaps
CONFIGURE_ARGS+=	--without-rplay-library

# We don't want to have CPP from the buildlink directory
CONFIGURE_ENV+=		ac_cv_path_FVWM_CPP=${CPP:Q}
# To avoid ${WRKDIR} is included in perl script
CONFIGURE_ENV+=		ac_cv_path_PERL=${PERL5:Q}

.include "../../lang/python/application.mk"
# fvwm-menu-desktop requires python3 and requires python-xdg at runtime.
PYTHON_VERSIONS_INCOMPATIBLE=	27
DEPENDS+=			${PYPKGPREFIX}-xdg-[0-9]*:../../devel/py-xdg
CONFIGURE_ENV+=			PYTHON=${PYTHONBIN}
CONFIGURE_ENV+=			ac_cv_path_PYTHON=${PYTHONBIN:Q}

.include "options.mk"

BUILDLINK_DEPMETHOD.libXt?=	build

.include "../../devel/libstroke/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"