1 # $NetBSD: Makefile,v 1.14 2011/02/28 14:53:09 wiz Exp $
4 DISTNAME= xkeyboard-config-2.0
7 MASTER_SITES= ${MASTER_SITE_XORG:=data/${PKGBASE}/}
10 MAINTAINER= pkgsrc-users@NetBSD.org
11 HOMEPAGE= http://www.freedesktop.org/wiki/Software/XKeyboardConfig
12 COMMENT= X Keyboard Configuration Database
14 PKG_DESTDIR_SUPPORT= user-destdir
16 BUILD_DEPENDS+= xkbcomp-[0-9]*:../../x11/xkbcomp
18 CONFLICTS+= xkbdata-[0-9]*
24 USE_TOOLS+= gmake intltool msgfmt
25 PKGCONFIG_OVERRIDE+= xkeyboard-config.pc.in
28 BUILD_DEFS+= XKBCOMPDIR
30 CONFIGURE_ARGS+= --with-xkb-rules-symlink=xfree86,xorg
31 CONFIGURE_ARGS+= --with-xkb-base=${XKBBASE:Q}
32 ### In pkgsrc, we do this with INSTALL/DEINSTALL scripts.
34 CONFIGURE_ARGS+= --disable-xkbcomp-symlink
36 REPLACE_SH= rules/merge.sh
38 ### Keymaps, rules, etc. are installed here.
40 XKBBASE= ${PREFIX}/share/X11/xkb
42 ### The server puts compiled keymaps in the directory below.
44 XKBCOMPDIR?= ${VARBASE}/db/xkb
46 ### The package must symlink ${XKBCOMPDIR} into ${XKBBASE}. ${XKBCOMP} is
47 ### is the path to the xkbcomp binary we wish to use.
49 XKBCOMPDIR_SYMLINK= ${XKBBASE}/compiled
50 XKBCOMP= ${PREFIX}/bin/xkbcomp
52 FILES_SUBST+= XKBBASE=${XKBBASE:Q}
53 FILES_SUBST+= XKBCOMP=${XKBCOMP:Q}
54 FILES_SUBST+= XKBCOMP_SYMLINK=${${XKBBASE}/xkbcomp:L:Q}
55 FILES_SUBST+= XKBCOMPDIR=${XKBCOMPDIR:Q}
56 FILES_SUBST+= XKBCOMPDIR_SYMLINK=${XKBCOMPDIR_SYMLINK:Q}
58 OWN_DIRS+= ${XKBCOMPDIR}
60 BUILDLINK_DEPMETHOD.gettext= build # for the configure only
61 .include "../../devel/gettext-lib/buildlink3.mk"
63 .include "../../mk/bsd.pkg.mk"