summaryrefslogtreecommitdiff
path: root/x11/xkeyboard-config/Makefile
blob: 0f6f30d7e0d2364009c12b932e2ef7230040ae8a (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# $NetBSD: Makefile,v 1.2 2007/12/19 04:10:43 bjs Exp $
#

DISTNAME=	xkeyboard-config-20071217
PKGREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_LOCAL}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	bjs@NetBSD.org
HOMEPAGE=	http://www.freedesktop.org/wiki/Software/XKeyboardConfig
COMMENT=	X Keyboard Configuration Database

PKG_DESTDIR_SUPPORT=	user-destdir

CONFLICTS+=		xkbdata-[0-9]*

GNU_CONFIGURE=		yes
USE_LANGUAGES=		# none
USE_TOOLS+=		
USE_TOOLS+=		gmake intltool perl:build automake
USE_TOOLS+=		msgfmt msgmerge xgettext

CONFIGURE_ARGS+=	--with-xkb-rules-symlink=xfree86,xorg
CONFIGURE_ARGS+=	--with-xkb-base=${XKBBASE:Q}

### In pkgsrc, we do this with INSTALL/DEINSTALL scripts.
###
CONFIGURE_ARGS+=	--disable-xkbcomp-symlink

BUILD_DEPENDS+=		xkbcomp-[0-9]*:../../x11/xkbcomp
MAKE_JOBS_SAFE=		no
REPLACE_SH=		rules/merge.sh

### Keymaps, rules, etc. are installed here.
###
XKBBASE=		${PREFIX}/share/X11/xkb

### The server puts compiled keymaps in the directory below.
###
XKBCOMPDIR?=		${VARBASE}/db/xkb

### The package must symlink ${XKBCOMPDIR} into ${XKBBASE}. ${XKBCOMP} is
### is the path to the xkbcomp binary we wish to use.
###
XKBCOMPDIR_SYMLINK=	${XKBBASE}/compiled
XKBCOMP=		${LOCALBASE}/bin/xkbcomp

BUILD_DEFS+=		VARBASE
BUILD_DEFS+=		XKBCOMPDIR

FILES_SUBST+=		XKBBASE=${XKBBASE:Q}
FILES_SUBST+=		XKBCOMP=${XKBCOMP:Q}
FILES_SUBST+=		XKBCOMP_SYMLINK=${${XKBBASE}/xkbcomp:L:Q}
FILES_SUBST+=		XKBCOMPDIR=${XKBCOMPDIR:Q}
FILES_SUBST+=		XKBCOMPDIR_SYMLINK=${XKBCOMPDIR_SYMLINK:Q}

OWN_DIRS+=		${XKBCOMPDIR}

pre-configure:
	${RUN} cd ${WRKSRC}; intltoolize --copy && autoreconf -i

.include "../../mk/bsd.pkg.mk"