Merge from vendor branch TNF:
[pkgsrcv2.git] / x11 / xkeyboard-config / Makefile
1 # $NetBSD: Makefile,v 1.14 2011/02/28 14:53:09 wiz Exp $
2 #
3
4 DISTNAME=               xkeyboard-config-2.0
5 PKGREVISION=            1
6 CATEGORIES=             x11
7 MASTER_SITES=           ${MASTER_SITE_XORG:=data/${PKGBASE}/}
8 EXTRACT_SUFX=           .tar.bz2
9
10 MAINTAINER=             pkgsrc-users@NetBSD.org
11 HOMEPAGE=               http://www.freedesktop.org/wiki/Software/XKeyboardConfig
12 COMMENT=                X Keyboard Configuration Database
13
14 PKG_DESTDIR_SUPPORT=    user-destdir
15
16 BUILD_DEPENDS+=         xkbcomp-[0-9]*:../../x11/xkbcomp
17
18 CONFLICTS+=             xkbdata-[0-9]*
19
20 MAKE_JOBS_SAFE=         no
21
22 GNU_CONFIGURE=          yes
23 USE_LIBTOOL=            yes
24 USE_TOOLS+=             gmake intltool msgfmt
25 PKGCONFIG_OVERRIDE+=    xkeyboard-config.pc.in
26
27 BUILD_DEFS+=            VARBASE
28 BUILD_DEFS+=            XKBCOMPDIR
29
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.
33 ###
34 CONFIGURE_ARGS+=        --disable-xkbcomp-symlink
35 ###
36 REPLACE_SH=             rules/merge.sh
37 ###
38 ### Keymaps, rules, etc. are installed here.
39 ###
40 XKBBASE=                ${PREFIX}/share/X11/xkb
41 ###
42 ### The server puts compiled keymaps in the directory below.
43 ###
44 XKBCOMPDIR?=            ${VARBASE}/db/xkb
45 ###
46 ### The package must symlink ${XKBCOMPDIR} into ${XKBBASE}. ${XKBCOMP} is
47 ### is the path to the xkbcomp binary we wish to use.
48 ###
49 XKBCOMPDIR_SYMLINK=     ${XKBBASE}/compiled
50 XKBCOMP=                ${PREFIX}/bin/xkbcomp
51
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}
57
58 OWN_DIRS+=              ${XKBCOMPDIR}
59
60 BUILDLINK_DEPMETHOD.gettext=    build   # for the configure only
61 .include "../../devel/gettext-lib/buildlink3.mk"
62
63 .include "../../mk/bsd.pkg.mk"