aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/skippy-xd/Makefile
blob: 8b7c1f2d8244c39a4da11b9f8f68181499855d84 (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
# New ports collection makefile for:	skippy-xd
# Date created:		2004-05-19
# Whom:			michael johnson <ahze@ahze.net>
#
# $FreeBSD$
#

PORTNAME=	skippy-xd
PORTVERSION=	0.5.0
PORTREVISION=	2
CATEGORIES=	x11-wm
MASTER_SITES=	http://cdn.thegraveyard.org/releases/skippy/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A full-screen X11 task-switcher like Apple's Expose

BUILD_DEPENDS=	freetype-config:${PORTSDIR}/print/freetype2 \
		pkg-config>0:${PORTSDIR}/devel/pkg-config

USE_BZIP2=	yes
USE_XORG=	x11 xft xcomposite xdamage xfixes xrender xinerama xext xmu
PLIST_FILES=	bin/skippy-xd \
		%%DATADIR%%/skippy-xd.rc-default
PLIST_DIRS=	%%DATADIR%%
PKGMESSAGE=	${WRKDIR}/pkg-message

.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|; \
		s|/usr/local|${LOCALBASE}|; s|gcc|${CC}|' \
			${WRKSRC}/Makefile

.if ${ARCH} == "amd64"
	@${REINPLACE_CMD} -e 's|CARD32|CARD64|g' \
		${WRKSRC}/clientwin.c ${WRKSRC}/skippy.c \
		${WRKSRC}/wm.c ${WRKSRC}/wm.h
.endif

post-build:
	@${SED} 's|%%DATADIR%%|${DATADIR}|' ${PKGDIR}/pkg-message >${PKGMESSAGE}

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/skippy-xd ${PREFIX}/bin
	@${MKDIR} ${DATADIR}
	@${INSTALL_DATA} ${WRKSRC}/skippy-xd.rc-default ${DATADIR}

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

.include <bsd.port.post.mk>