aboutsummaryrefslogtreecommitdiff
path: root/x11/keylaunch
diff options
context:
space:
mode:
Diffstat (limited to 'x11/keylaunch')
-rw-r--r--x11/keylaunch/Makefile17
-rw-r--r--x11/keylaunch/files/pkg-message.in2
-rw-r--r--x11/keylaunch/pkg-plist4
3 files changed, 8 insertions, 15 deletions
diff --git a/x11/keylaunch/Makefile b/x11/keylaunch/Makefile
index 25e498b568e1..fdc8c8d9b815 100644
--- a/x11/keylaunch/Makefile
+++ b/x11/keylaunch/Makefile
@@ -11,25 +11,18 @@ MAINTAINER= mwm@mired.org
COMMENT= An X utility for binding commands to a hot key
WRKSRC= ${WRKDIR}/keylaunch
-USE_GMAKE= yes
-USES= perl5
+USES= perl5 gmake
USE_PERL5= build
USE_XORG= x11
-PKGMESSAGE= ${WRKSRC}/pkg-message
+SUB_FILES= pkg-message
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -i '' -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${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}
+ ${INSTALL_PROGRAM} ${WRKSRC}/keylaunch ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/example_rc ${STAGEDIR}${EXAMPLESDIR}/keylaunch.rc
.include <bsd.port.mk>
diff --git a/x11/keylaunch/files/pkg-message.in b/x11/keylaunch/files/pkg-message.in
index c62987a1e76b..7220b1551613 100644
--- a/x11/keylaunch/files/pkg-message.in
+++ b/x11/keylaunch/files/pkg-message.in
@@ -1,2 +1,2 @@
-See /usr/X11R6/share/examples/keylaunch/keylaunch.rc for a sample
+See %%LOCALBASE%%/share/examples/keylaunch/keylaunch.rc for a sample
configuration.
diff --git a/x11/keylaunch/pkg-plist b/x11/keylaunch/pkg-plist
index b84645000d23..f0aec16c23bc 100644
--- a/x11/keylaunch/pkg-plist
+++ b/x11/keylaunch/pkg-plist
@@ -1,3 +1,3 @@
bin/keylaunch
-share/examples/keylaunch/keylaunch.rc
-@dirrm share/examples/keylaunch
+%%EXAMPLESDIR%%/keylaunch.rc
+@dirrmtry %%EXAMPLESDIR%%