]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/xorg-x11-xkb-utils/xorg-x11-xkb-utils.nm
PKG_GROUP -> PKG_GROUPS on all packages.
[people/ms/ipfire-3.x.git] / pkgs / xorg-x11-xkb-utils / xorg-x11-xkb-utils.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = xorg-x11-xkb-utils
28 PKG_VER = 7.4
29 PKG_REL = 1
30
31 PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
32 PKG_GROUPS = X/Fonts
33 PKG_URL = http://www.x.org/
34 PKG_LICENSE = MIT
35 PKG_SUMMARY = X.Org X11 xkb utilities.
36
37 PKG_BUILD_DEPS+= bison libICE-devel libSM-devel libX11-devel libXaw-devel \
38 libXmu-devel libXt-devel libxkbfile-devel pkg-config xorg-x11-proto-devel
39
40 define PKG_DESCRIPTION
41 X.Org X11 xkb utilities.
42 endef
43
44 CFLAGS += -DHAVE_STRCASECMP
45
46 SRC_PACKAGES = \
47 xkbcomp-1.1.1 \
48 xkbutils-1.0.3 \
49 xkbevd-1.1.1 \
50 xkbprint-1.0.1 \
51 setxkbmap-1.2.0
52
53 PKG_OBJECTS += $(foreach package,$(SRC_PACKAGES),$(package).tar.bz2)
54
55 define STAGE_PREPARE
56 for object in $(PKG_OBJECTS); do \
57 cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$${object}; \
58 done
59 endef
60
61 define MACRO_BUILD
62 cd $(DIR_SRC)/$(1) && rm -vf xkbparse.c # force regen
63 cd $(DIR_SRC)/$(1) && \
64 ./configure \
65 --prefix=/usr
66
67 cd $(DIR_SRC)/$(1) && make $(PARALLELISMFLAGS)
68
69 endef
70
71 STAGE_BUILD = $(foreach package,$(SRC_PACKAGES),$(call MACRO_BUILD,$(package)))
72
73 define MACRO_INSTALL
74 cd $(DIR_SRC)/$(1) && make install DESTDIR=$(BUILDROOT)
75
76 endef
77
78 define STAGE_INSTALL
79 $(foreach package,$(SRC_PACKAGES),$(call MACRO_INSTALL,$(package)))
80
81 mv $(BUILDROOT)/usr/man* $(BUILDROOT)/usr/share/man
82 endef
83
84