aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/epiwm/Makefile
blob: 78b03c8f1b92e66a605b8d938e29335d3b735477 (plain) (blame)
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
# New ports collection makefile for:	epiwm
# Date created:				2002-06-04
# Whom:					trevor
#
# $FreeBSD$
#

PORTNAME=	epiwm
PORTVERSION=	0.5.6
PORTREVISION=	2
CATEGORIES=	x11-wm
MASTER_SITES=	http://www.nongnu.org/epiwm/download/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Another fast, small, configurable window manager

LIB_DEPENDS=	Imlib.5:${PORTSDIR}/graphics/imlib \
		jpeg.9:${PORTSDIR}/graphics/jpeg \
		png.5:${PORTSDIR}/graphics/png \
		tiff.4:${PORTSDIR}/graphics/tiff \
		ungif.5:${PORTSDIR}/graphics/libungif

CONFIG=		icons key menu start style window workspace
DOCS=		AUTHORS BUGS COPYING ChangeLog EPIwm-0.5.6.lsm INSTALL NEWS \
		README TODO
PLIST=		${WRKDIR}/pkg-plist
USE_AUTOTOOLS=	automake:14:env autoconf:213
USE_X_PREFIX=	yes

post-extract:
# Avoid having to read this file.
	${RM} ${WRKSRC}/configure

do-patch:
	${CP} -p ${WRKSRC}/configure.in ${WRKSRC}/configure.in.orig
	${SED} -e 's|/etc/X11/epiwm|${PREFIX}/etc/epiwm|' \
		< ${WRKSRC}/configure.in.orig > ${WRKSRC}/configure.in

pre-configure:
	cd ${WRKSRC} && automake14 -i && autoconf213

pre-install:
	${RM} -f ${PLIST}
.for ii in epiwm logoepiwm epiwm.inst
	${ECHO_CMD} bin/${ii} >> ${PLIST}
.endfor
.for ii in ${CONFIG}
	${ECHO_CMD} etc/epiwm/${ii} >> ${PLIST}
.endfor
.if !defined(NOPORTDOCS)
.for ii in ${DOCS}
	${ECHO_CMD} share/doc/epiwm/${ii} >> ${PLIST}
.endfor
.for ii in etc share/doc
	${ECHO_CMD} @dirrm ${ii}/epiwm >> ${PLIST}
.endfor
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/epiwm \
		${WRKSRC}/modules/logoepiwm/logoepiwm ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/bin/epiwm.inst ${PREFIX}/bin
	${MKDIR} ${PREFIX}/etc/epiwm
.for ii in ${CONFIG}
	${INSTALL_DATA} ${WRKSRC}/config/${ii} ${PREFIX}/etc/epiwm
.endfor

.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for ii in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${ii} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>