aboutsummaryrefslogtreecommitdiffstats
path: root/x11/keylaunch/Makefile
blob: 4d4008098153265e64846a15e8728694d1f763d0 (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
# New ports collection makefile for:    keylaunch
# Date created:         Sat Nov 17 10:10:07 CDT 2001
# Whom:                 mwm@mired.org
#
# $FreeBSD$
#

PORTNAME=   keylaunch
PORTVERSION=    1.3.0
PORTREVISION=   3
CATEGORIES= x11
MASTER_SITES=   http://www.mired.org/downloads/

MAINTAINER= mwm@mired.org
COMMENT=    An X utility for binding commands to a hot key

WRKSRC=     ${WRKDIR}/keylaunch
USE_GMAKE=  yes
USE_PERL5_BUILD=yes
USE_XORG=   x11

PKGMESSAGE= ${WRKSRC}/pkg-message

post-patch:
    @${PERL} -pi -e 's,%%LOCALBASE%%,${LOCALBASE},g' ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/keylaunch ${PREFIX}/bin
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/example_rc ${EXAMPLESDIR}/keylaunch.rc

post-install:
    @${SED} -e 's;/usr/X11R6;${LOCALBASE};g' < ${FILESDIR}/pkg-message.in > \
        ${PKGMESSAGE}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>