]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - pkgs/core/xorg-x11-font-utils/xorg-x11-font-utils.nm
libXres: Update package to be built with the new version of the buildsystem.
[people/stevee/ipfire-3.x.git] / pkgs / core / xorg-x11-font-utils / xorg-x11-font-utils.nm
CommitLineData
f920b4a4
SS
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
25include $(PKGROOT)/Include
26
27PKG_NAME = xorg-x11-font-utils
28PKG_VER = 7.4
29PKG_REL = 0
30
9784d377 31PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
f920b4a4
SS
32PKG_GROUP = X/Fonts
33PKG_URL = http://www.x.org/
34PKG_LICENSE = MIT
35PKG_SUMMARY = X.Org X11 font utilities.
36
37PKG_BUILD_DEPS+= autoconf pkg-config
38PKG_DEPS += freetype libX11 libXfont libfontenc zlib
39
40define PKG_DESCRIPTION
41 X.Org X11 font utilities required for font installation, conversion, \
42 and generation.
43endef
44
45SRC_PACKAGES = \
46 bdftopcf-1.0.1 \
47 fonttosfnt-1.0.3 \
48 mkfontdir-1.0.5 \
49 mkfontscale-1.0.7 \
50 font-util-1.1.0
51
52PKG_OBJECTS += $(foreach package,$(SRC_PACKAGES),$(package).tar.bz2)
53
54define STAGE_PREPARE
55 for object in $(PKG_OBJECTS); do \
56 cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$${object}; \
57 done
58endef
59
60define MACRO_BUILD
61 cd $(DIR_SRC)/$(1) && autoconf
62 cd $(DIR_SRC)/$(1) && \
63 ./configure \
64 --prefix=/usr \
65 --with-mapdir=/usr/share/x11/fonts/util
66
67 cd $(DIR_SRC)/$(1) && make $(PARALLELISMFLAGS)
68
69endef
70
71STAGE_BUILD = $(foreach package,$(SRC_PACKAGES),$(call MACRO_BUILD,$(package)))
72
73define MACRO_INSTALL
74 cd $(DIR_SRC)/$(1) && make install DESTDIR=$(BUILDROOT)
75
76endef
77
78STAGE_INSTALL = $(foreach package,$(SRC_PACKAGES),$(call MACRO_INSTALL,$(package)))
79
80