From: Schantl Stefan Date: Sun, 22 Aug 2010 14:57:23 +0000 (+0200) Subject: xorg-x11-xkb-utils: New package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4295f5f2962b92e7c05ab860f8e627c354391c8;p=ipfire-3.x.git xorg-x11-xkb-utils: New package. --- diff --git a/pkgs/core/xorg-x11-xkb-utils/xorg-x11-xkb-utils.nm b/pkgs/core/xorg-x11-xkb-utils/xorg-x11-xkb-utils.nm new file mode 100644 index 000000000..ac3e279b6 --- /dev/null +++ b/pkgs/core/xorg-x11-xkb-utils/xorg-x11-xkb-utils.nm @@ -0,0 +1,76 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = xorg-x11-xkb-utils +PKG_VER = 7.4 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = X/Fonts +PKG_URL = http://www.x.org/ +PKG_LICENSE = MIT +PKG_SUMMARY = X.Org X11 xkb utilities. + +PKG_BUILD_DEPS+= pkg-config +PKG_DEPS += libX11 libxkbfile + +define PKG_DESCRIPTION + X.Org X11 xkb utilities. +endef + +CFLAGS += -DHAVE_STRCASECMP + +SRC_PACKAGES = \ + xkbcomp-1.1.1 + +PKG_OBJECTS += $(foreach package,$(SRC_PACKAGES),$(package).tar.bz2) + +define STAGE_PREPARE + for object in $(PKG_OBJECTS); do \ + cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$${object}; \ + done +endef + +define MACRO_BUILD + cd $(DIR_SRC)/$(1) && rm -vf xkbparse.c # force regen + cd $(DIR_SRC)/$(1) && \ + ./configure \ + --prefix=/usr + + cd $(DIR_SRC)/$(1) && make $(PARALLELISMFLAGS) + +endef + +STAGE_BUILD = $(foreach package,$(SRC_PACKAGES),$(call MACRO_BUILD,$(package))) + +define MACRO_INSTALL + cd $(DIR_SRC)/$(1) && make install DESTDIR=$(BUILDROOT) + +endef + +STAGE_INSTALL = $(foreach package,$(SRC_PACKAGES),$(call MACRO_INSTALL,$(package))) + +