summaryrefslogtreecommitdiff
path: root/wm/fvwm/Makefile
blob: 5fe1925ab3d68509c5e23d14892d7ad9632e0902 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# $NetBSD: Makefile,v 1.15 2009/05/20 00:58:29 wiz Exp $

DISTNAME=	fvwm-${FVWM_VER}
PKGREVISION=	3
CATEGORIES=	x11 wm
MASTER_SITES=	ftp://ftp.fvwm.org/pub/fvwm/version-2/ \
		http://www.fvwm.org/generated/icon_download/
DISTFILES+=	fvwm-${FVWM_VER}.tar.gz fvwm_icons.tgz

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

DEPENDS+=	xpmroot-2.*:../../x11/xpmroot

CONFLICTS=	fvwm1-[0-9]* fvwm2-[0-9]*
EXTRACT_ONLY=	${DISTNAME}.tar.gz
FVWM_VER=	2.4.20

USE_X11BASE=		YES
GNU_CONFIGURE=		YES
USE_GNU_READLINE=	YES
USE_TOOLS+=		perl:run tar
PKG_DESTDIR_SUPPORT=	user-destdir

PLIST_SUBST+=		FVWM_VER=${FVWM_VER:Q}

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

EVAL_PREFIX+=		XPMDIR=xpm
CONFIGURE_ARGS+=	--without-gnome
CONFIGURE_ARGS+=	--sysconfdir=${PREFIX:Q}/lib/X11/fvwm2
CONFIGURE_ARGS+=	--libexecdir=${PREFIX:Q}/lib/X11
CONFIGURE_ARGS+=	--with-xpm-includes=${XPMDIR:Q}/include
CONFIGURE_ARGS+=	--with-imagepath=${PREFIX:Q}/lib/X11/fvwm2/pixmaps:${X11BASE:Q}/include/X11/bitmaps:${X11BASE:Q}/include/X11/pixmaps

# We don't want to have CPP from the buildlink directory
CONFIGURE_ENV+=		ac_cv_path_FVWM_CPP=${CPP:Q}

post-extract:
	mkdir ${WRKDIR:Q}/icons
	cd ${WRKDIR:Q}/icons && tar -xzf ${DISTDIR:Q}/fvwm_icons.tgz

post-install:
	${INSTALL_DATA} \
		${WRKDIR:Q}/icons/fvwm_icons/*.xpm \
		${DESTDIR}${PREFIX:Q}/lib/X11/fvwm2/pixmaps
	${INSTALL_DATA} \
		${WRKSRC:Q}/sample.fvwmrc/decor_examples \
		${WRKSRC:Q}/sample.fvwmrc/system.fvwm2rc-sample-* \
		${DESTDIR}${PREFIX:Q}/lib/X11/fvwm2
	${INSTALL_DATA} \
		${WRKSRC:Q}/sample.fvwmrc/system.fvwm2rc \
		${DESTDIR}${PREFIX:Q}/lib/X11/fvwm2/system.fvwm2rc.example
	${INSTALL_SCRIPT} \
		${WRKSRC:Q}/utils/fvwmrc_convert \
		${DESTDIR}${PREFIX:Q}/bin/fvwmrc_convert
	if [ ! -f ${DESTDIR}${PREFIX:Q}/lib/X11/fvwm2/system.fvwm2rc ]; then \
		${INSTALL_DATA} \
			${DESTDIR}${PREFIX:Q}/lib/X11/fvwm2/system.fvwm2rc.example \
			${DESTDIR}${PREFIX:Q}/lib/X11/fvwm2/system.fvwm2rc ; \
	fi

.include "options.mk"

BUILDLINK_DEPMETHOD.libXt?=	build

.include "../../devel/readline/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 "../../x11/xextproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"