summaryrefslogtreecommitdiff
path: root/x11/xkbset/Makefile
blob: 9f5700038cf3e263983cfb06806ca8b3ccfda78c (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:	xkbset
# Date created:		12 May 2001
# Whom:			Stephen Montgomery-Smith <stephen@math.missouri.edu>
#
# $FreeBSD$
#

PORTNAME=		xkbset
PORTVERSION=		0.5
PORTREVISION=		1
CATEGORIES=		x11
MASTER_SITES=		http://www.math.missouri.edu/~stephen/software/xkbset/

MAINTAINER=		stephen@math.missouri.edu

MAN1=			xkbset.1
USE_X_PREFIX=		yes
USE_REINPLACE=		yes
USE_PERL5_BUILD=	yes

MAKE_ARGS=		X11BASE="${X11BASE}" X11PREFIX="${PREFIX}" \
			INSTALL_DATA="${INSTALL_DATA}" \
			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

.include <bsd.port.mk>