summaryrefslogtreecommitdiff
path: root/x11-wm/clementine/Makefile
blob: 774a364f03a97b155825096848e27e21de77266b (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
# New ports collection makefile for:	clementine
# Date created:				2002-03-13
# Whom:					trevor
#
# $FreeBSD$
#

PORTNAME=	clementine
PORTVERSION=	0.0.7
CATEGORIES=	x11-wm
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	trevor@FreeBSD.org

RUN_DEPENDS=	xv:${PORTSDIR}/graphics/xv \
			rxvt:${PORTSDIR}/x11/rxvt

PLIST=		${WRKDIR}/pkg-plist
PKGMESSAGE=	${WRKDIR}/pkg-message
USE_GMAKE=	yes
USE_X_PREFIX=	yes
DOCS=		COPYING HISTORY LICENSE
USE_REINPLACE=	yes
REINPLACE_ARGS=	-i'' -E

post-patch:
	${REINPLACE_CMD} 's:^CFLAGS:IGNORE:g ; s:^DEFINES:IGNORE:g' \
		${WRKSRC}/Makefile
	${REINPLACE_CMD} 's:./clementine:${PREFIX}/bin/clementine:g' \
		${WRKSRC}/windowmanager.cpp

pre-install:
	${ECHO_CMD} bin/clementine > ${PLIST}
	for i in `${LS} ${WRKSRC} | ${GREP} look-`; do \
		${ECHO_CMD} share/clementine/$$i >> ${PLIST}; \
	done
	${ECHO_CMD} share/clementine/keys >> ${PLIST}
.if !defined(NOPORTDOCS)
.for i in ${DOCS}
	${ECHO_CMD} share/doc/clementine/${i} >> ${PLIST}
.endfor
	${ECHO_CMD} @dirrm share/doc/clementine >> ${PLIST}
.endif
	${ECHO_CMD} @dirrm share/clementine >> ${PLIST}
	${ECHO_CMD} "*" > ${PKGMESSAGE}
	${ECHO_CMD} "* To customize clementine, copy the keys file to ~/keys and" >> ${PKGMESSAGE}
	${ECHO_CMD} "* copy one of the look- files to ~/look; edit them as needed." >> ${PKGMESSAGE}
	${ECHO_CMD} "*" >> ${PKGMESSAGE}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/clementine ${PREFIX}/bin
	${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/keys ${WRKSRC}/look-* ${DATADIR}
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>