summaryrefslogtreecommitdiff
path: root/wm/ctwm/Makefile
blob: fef3ff499a04c58a04d13055e4456fd231d553ca (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
# $NetBSD: Makefile,v 1.18 2006/02/05 23:11:12 joerg Exp $
#

DISTNAME=	ctwm-3.7
PKGREVISION=	3
CATEGORIES=	x11 wm
MASTER_SITES=	http://ctwm.free.lp.se/dist/

MAINTAINER=	rhialto@falu.nl
HOMEPAGE=	http://ctwm.free.lp.se/
COMMENT=	Window manager with support for multiple virtual screens and Gnome 1.x

PKG_INSTALLATION_TYPES=	overwrite pkgviews
USE_IMAKE=	YES

.include "../../mk/bsd.prefs.mk"

# We need an m4 that understands the -s option.
USE_TOOLS+=		gm4:run
OPSYSVARS+=		EXTRA_DEFINES
EXTRA_DEFINES+=		-DPATH_TO_M4=\"${TOOLS_PATH.gm4:Q}\"
# The __EXTENSIONS__ is needed for sigjmp_buf.
EXTRA_DEFINES.SunOS+=	-D__EXTENSIONS__
MAKE_ENV+=		EXTRA_DEFINES=${EXTRA_DEFINES:Q}

pre-configure:
	( ${ECHO} 'USER_JPEGLIBDIR = -L${BUILDLINK_PREFIX.jpeg}/lib ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.jpeg}/lib'; \
	  ${ECHO} 'USER_JPEGINCDIR = -I${BUILDLINK_PREFIX.jpeg}/include'; \
	  ${CAT} ${WRKSRC}/Imakefile.local-template; \
	) >${WRKSRC}/Imakefile.local

EXAMPLEDIR=${PREFIX}/share/examples/ctwm

pre-install:
	${INSTALL_DATA_DIR} ${EXAMPLEDIR}
.for f in example.ctwmrc levitte.ctwmrc peterc.ctwmrc system.ctwmrc system.ctwmrc.gnome
	${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLEDIR}
.endfor

.include "../../graphics/xpm/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"