diff options
author | naddy <naddy@FreeBSD.org> | 2003-01-02 06:18:08 +0800 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2003-01-02 06:18:08 +0800 |
commit | 92d549a93891be03beebbfb0275627466754e4e7 (patch) | |
tree | d9f9a229f1279a3cd379e17530b15794e7a77710 | |
parent | 7c2d1991b67305697769d08cd9b71719d3e72d0c (diff) | |
download | freebsd-ports-gnome-92d549a93891be03beebbfb0275627466754e4e7.tar.gz freebsd-ports-gnome-92d549a93891be03beebbfb0275627466754e4e7.tar.zst freebsd-ports-gnome-92d549a93891be03beebbfb0275627466754e4e7.zip |
* Add knob WITH_GUI. If set, install xkbset-gui.
* Add proper dependency for WITH_GUI flavor.
Approved by: maintainer
-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 |