]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - pkgs/xorg-x11-font-utils/xorg-x11-font-utils.nm
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / xorg-x11-font-utils / xorg-x11-font-utils.nm
index a4fdaa9988493522919423ccc56e4255284cae12..df9c317ab6cf23a1446cca8772b5de3d23c9a974 100644 (file)
@@ -1,84 +1,83 @@
 ###############################################################################
-#                                                                             #
-# 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 <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xorg-x11-font-utils
-PKG_VER        = 7.4
-PKG_REL        = 2
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Fonts
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 font utilities.
+name       = xorg-x11-font-utils
+version    = 7.4
+release    = 2
 
-PKG_BUILD_DEPS+= autoconf freetype-devel libX11-devel libXfont-devel libfontenc-devel\
-       pkg-config xorg-x11-proto-devel zlib-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Fonts
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 font utilities.
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-PKG_DEPS-$(PKG_NAME_REAL)-devel += freetype-devel
-define PKG_DESCRIPTION
-       X.Org X11 font utilities required for font installation, conversion, \
+description
+       X.Org X11 font utilities required for font installation, conversion,
        and generation.
-endef
-
-SRC_PACKAGES = \
-       bdftopcf-1.0.1 \
-       fonttosfnt-1.0.3 \
-       mkfontdir-1.0.5 \
-       mkfontscale-1.0.7 \
-       font-util-1.1.0
-
-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) && autoconf
-       cd $(DIR_SRC)/$(1) && \
-               ./configure \
-                       --prefix=/usr \
-                       --with-mapdir=/usr/share/X11/fonts/util
-
-       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)))
-
-
+end
+
+source_dl  = http://ftp.x.org/pub/individual/app/
+
+sources =\
+       bdftopcf-1.0.1.tar.bz2 \
+       fonttosfnt-1.0.3.tar.bz2 \
+       mkfontdir-1.0.5.tar.bz2 \
+       mkfontscale-1.0.7.tar.bz2 \
+       font-util-1.1.0.tar.bz2
+
+build
+       requires
+               autoconf
+               freetype-devel
+               libX11-devel
+               libXfont-devel
+               libfontenc-devel
+               pkg-config
+               xorg-x11-proto-devel
+               zlib-devel              
+       end
+
+       configure_options += \
+               --with-mapdir=/usr/share/X11/fonts/util
+
+       build
+               for object in %{sources}; do
+                       dir=%{DIR_SRC}/${object%*.tar.bz2}
+
+                       if [ -d "${dir}" ]; then
+                               cd ${dir}
+                               autoconf
+                               ./configure %{configure_options}
+
+                               make %{PARALELLISMFLAGS}
+                       fi
+               done
+       end
+
+       install
+               for object in %{sources}; do
+                       dir=%{DIR_SRC}/${object%*.tar.bz2}
+
+                       if [ -d "${dir}" ]; then
+                               cd ${dir}
+
+                               make install DESTDIR=%{BUILDROOT}
+                       fi
+               done
+       end
+end
+
+packages
+       package %{name}
+       end
+
+       package %{name}-devel
+               template DEVEL
+
+               requires
+                       freetype-devel
+               end
+       end
+end