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