summaryrefslogtreecommitdiff
path: root/wm/fvwm2-current/Makefile
blob: 8033e96dcc18bc3c507270f7217b1fad6448527c (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
# $NetBSD: Makefile,v 1.1.1.1 2001/03/20 14:54:36 rh Exp $
#

FVWM_VERSION=	2.3.29
DISTNAME=	fvwm-${FVWM_VERSION}
PKGNAME=	fvwm2-${FVWM_VERSION}
CATEGORIES=	wm
MASTER_SITES=	ftp://ftp.fvwm.org/pub/fvwm/version-2/ \
		http://www.fvwm.org/generated/icon_download/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} fvwm_icons.tgz
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.fvwm.org/
COMMENT=	Popular virtual window manager for X

DEPENDS+=	xpmroot-2.*:../../x11/xpmroot
DEPENDS+=	readline-*:../../devel/readline
DEPENDS+=	rplay-3.*:../../audio/rplay

CONFLICTS=	fvwm-2.*

USE_X11BASE=	yes
GNU_CONFIGURE=	yes
PLIST_SUBST+=	VERSION=${FVWM_VERSION}

EVAL_PREFIX+=		XPMDIR=xpm
CONFIGURE_ARGS+=	--enable-extras
CONFIGURE_ARGS+=	--with-xpm-includes=${XPMDIR}/include
CONFIGURE_ARGS+=	--with-readline-includes=${LOCALBASE}/include
CONFIGURE_ARGS+=	--with-rplay-includes=${LOCALBASE}/include
CONFIGURE_ARGS+=	--with-iconpath=${PREFIX}/lib/X11/fvwm2/pixmaps:${X11BASE}/include/X11/bitmaps:${X11BASE}/include/X11/pixmaps

post-extract:
	cd ${WRKDIR} && ${MKDIR} icons && cd icons && \
		${GTAR} xfz ${_DISTDIR}/fvwm_icons.tgz

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/fvwm2/pixmaps
	${INSTALL_DATA} \
		${WRKDIR}/icons/*.xpm \
		${PREFIX}/lib/X11/fvwm2/pixmaps

.include "../../mk/bsd.pkg.mk"