summaryrefslogtreecommitdiffstats
path: root/x11/xkeyboard-config/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11/xkeyboard-config/Makefile')
-rw-r--r--x11/xkeyboard-config/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/x11/xkeyboard-config/Makefile b/x11/xkeyboard-config/Makefile
new file mode 100644
index 0000000..5f87832
--- /dev/null
+++ b/x11/xkeyboard-config/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: xkeyboard-config
+# Date Created: Dec 20 2006
+# Whom: Florent Thoumie <flz@FreeBSD.org>
+#
+# $FreeBSD: ports/x11/xkeyboard-config/Makefile,v 1.21 2011/09/23 22:26:15 amdmi3 Exp $
+#
+
+PORTNAME= xkeyboard-config
+PORTVERSION= 2.5.1
+CATEGORIES= x11
+
+MAINTAINER= x11@FreeBSD.org
+COMMENT= X Keyboard Configuration Database
+
+LICENSE= MIT
+
+BUILD_DEPENDS= xkbcomp:${PORTSDIR}/x11/xkbcomp \
+ xsltproc:${PORTSDIR}/textproc/libxslt
+XORG_CAT= data
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_GNOME= intlhack gnomehack
+USE_PERL5_BUILD=yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-xkb-base=${PREFIX}/share/X11/xkb \
+ --with-xkb-rules-symlink=xorg
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+MAN7= xkeyboard-config.7
+
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+CONFIGURE_ENV+= MSGFMT="/bin/echo '(GNU '" \
+ XGETTEXT="/bin/echo '(GNU '" \
+ MSGMERGE="/bin/echo '(GNU '"
+PLIST_SUB+= NLS="@comment "
+.else
+USE_ICONV= yes
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' -e 's|==|=|g' \
+ ${WRKSRC}/rules/merge.sh
+
+post-install:
+ ${MKDIR} /var/lib/xkb
+ ${LN} -sf /var/lib/xkb ${PREFIX}/share/X11/xkb/compiled
+
+.include <bsd.port.mk>