diff options
author | Christian Weisgerber <naddy@FreeBSD.org> | 2003-01-01 22:18:08 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@FreeBSD.org> | 2003-01-01 22:18:08 +0000 |
commit | 6bb8303324c6e2b364fd934bc829009107864c5f (patch) | |
tree | 7319335f9ff1eb9ddcd5cb796ae5ec79eae56c26 /x11/xkbset | |
parent | * Update to 1.0.0. (diff) |
* Add knob WITH_GUI. If set, install xkbset-gui.
* Add proper dependency for WITH_GUI flavor.
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=72126
Diffstat (limited to 'x11/xkbset')
-rw-r--r-- | x11/xkbset/Makefile | 18 | ||||
-rw-r--r-- | x11/xkbset/pkg-plist | 2 |
2 files changed, 12 insertions, 8 deletions
diff --git a/x11/xkbset/Makefile b/x11/xkbset/Makefile index b9fe307fb71d..9f5700038cf3 100644 --- a/x11/xkbset/Makefile +++ b/x11/xkbset/Makefile @@ -7,6 +7,7 @@ PORTNAME= xkbset PORTVERSION= 0.5 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= http://www.math.missouri.edu/~stephen/software/xkbset/ @@ -17,15 +18,18 @@ USE_X_PREFIX= yes USE_REINPLACE= yes USE_PERL5_BUILD= yes -# xkbset-gui needs p5-Tk, but we do not want to force such a heavy -# dependency for an optional component. -# -#RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Tk.pm:${PORTSDIR}/x11-toolkits/p5-Tk - MAKE_ARGS= X11BASE="${X11BASE}" X11PREFIX="${PREFIX}" \ INSTALL_DATA="${INSTALL_DATA}" \ - INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ - INSTALL_SCRIPT="${INSTALL_SCRIPT}" + INSTALL_PROGRAM="${INSTALL_PROGRAM}" + +.if defined(WITH_GUI) +RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Tk.pm:${PORTSDIR}/x11-toolkits/p5-Tk +PLIST_SUB= GUI="" +MAKE_ARGS+= INSTALL_SCRIPT="${INSTALL_SCRIPT}" +.else +PLIST_SUB= GUI="@comment " +MAKE_ARGS+= INSTALL_SCRIPT=: +.endif post-build: ${REINPLACE_CMD} "s%#!/usr/bin/perl%#!${PERL}%" ${WRKSRC}/xkbset-gui diff --git a/x11/xkbset/pkg-plist b/x11/xkbset/pkg-plist index 62f2a28add67..b141b47a248f 100644 --- a/x11/xkbset/pkg-plist +++ b/x11/xkbset/pkg-plist @@ -1,3 +1,3 @@ @comment $FreeBSD$ bin/xkbset -bin/xkbset-gui +%%GUI%%bin/xkbset-gui |