summaryrefslogtreecommitdiffstats
path: root/x11-wm/blwm/Makefile
blob: e18f1916453017525dbd979f2c9dae0d858be0c6 (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
79
80
81
82
83
84
85
# New ports collection makefile for:	blwm
# Date created:				2002-03-15
# Whom:					trevor
#
# $FreeBSD$
#

PORTNAME=	blwm
PORTVERSION=	1.0.4
CATEGORIES=	x11-wm
MASTER_SITES=	http://labdid.if.usp.br/~blanes/arquivos/

MAINTAINER=	trevor@FreeBSD.org

RUN_DEPENDS=	xsetbg:${PORTSDIR}/x11/xloadimage

USE_AUTOCONF=	yes
USE_AUTOMAKE=	yes
GNU_CONFIGURE=	yes
MAN1=		blwm.1x
PLIST=		${WRKDIR}/pkg-plist
USE_GMAKE=	yes
USE_X_PREFIX=	yes
USE_XPM=	yes
DOCS=		AUTHORS BUGS COPYING CREDITS FreeBSD INSTALAR LEIAME TODO

CONFIGURE_ARGS=	--prefix=${PREFIX}

do-patch:
	${PERL} -pi -e "s:wmsetbg:xsetbg:g ; \
		s:/usr/local/lib/blwm:${PREFIX}/lib/blwm:g" \
		${WRKSRC}/rc/*

pre-configure:
	cd ${WRKSRC} && \
		${ACLOCAL} && \
		${AUTOHEADER} && \
		${AUTOCONF} && \
		${AUTOMAKE}

pre-install:
	${ECHO_CMD} bin/blwm > ${PLIST}
.if !defined(NOPORTDOCS)
.for ii in ${DOCS} ChangeLog INSTALL README
	${ECHO_CMD} share/doc/blwm/${ii} >> ${PLIST}
.endfor
	${ECHO_CMD} @dirrm share/doc/blwm >> ${PLIST}
.endif
	for ii in `${LS} ${WRKSRC}/images | ${GREP} xpm`; do \
		${ECHO_CMD} lib/blwm/images/$$ii >> ${PLIST}; \
	done
	for ii in `${LS} ${WRKSRC}/themes | ${GREP} -v Makefile`; do \
		${ECHO_CMD} lib/blwm/themes/$$ii >> ${PLIST}; \
	done
	for ii in `${LS} ${WRKSRC}/rc | ${GREP} -v Makefile`; do \
		${ECHO_CMD} lib/blwm/conf/$$ii >> ${PLIST}; \
	done
.for ii in /conf /images /themes /
	${ECHO_CMD} @dirrm lib/blwm${ii} >> ${PLIST}
.endfor

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/blwm ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for ii in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/doc/${ii} ${DOCSDIR}
.endfor
.for ii in ChangeLog INSTALL README
	${INSTALL_DATA} ${WRKSRC}/${ii} ${DOCSDIR}
.endfor
.endif
	${MKDIR}	${PREFIX}/lib/blwm/conf \
			${PREFIX}/lib/blwm/images \
			${PREFIX}/lib/blwm/themes
	${INSTALL_DATA} ${WRKSRC}/images/*xpm ${PREFIX}/lib/blwm/images
	for i in `${LS} ${WRKSRC}/rc/* | ${GREP} -v Makefile`; do \
		${INSTALL_DATA} $$i ${PREFIX}/lib/blwm/conf ; \
	done
	for i in `${LS} ${WRKSRC}/themes/* | ${GREP} -v Makefile`; do \
		${INSTALL_DATA} $$i ${PREFIX}/lib/blwm/themes ; \
	done
	${INSTALL_MAN} ${WRKSRC}/man/blwm.1x ${MANPREFIX}/man/man1/

.include <bsd.port.mk>
OpenPOWER on IntegriCloud