mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# New ports collection makefile for: xkeyboard-config
|
|
# Date Created: Dec 20 2006
|
|
# Whom: Florent Thoumie <flz@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xkeyboard-config
|
|
PORTVERSION= 1.8
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11
|
|
MASTER_SITES= http://xlibs.freedesktop.org/xkbdesc/
|
|
DISTNAME= xkeyboard-config-${PORTVERSION}
|
|
|
|
MAINTAINER= x11@FreeBSD.org
|
|
COMMENT= X Keyboard Configuration Database
|
|
|
|
BUILD_DEPENDS= xkbcomp:${PORTSDIR}/x11/xkbcomp
|
|
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USE_GNOME= intlhack
|
|
USE_PERL5_BUILD=yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-xkb-base=${PREFIX}/share/X11/xkb \
|
|
--with-xkb-rules-symlink=xorg
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
CONFIGURE_ARGS+= --disable-nls --with-included-gettext
|
|
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>
|