]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - pkgs/xorg-x11-fonts/xorg-x11-fonts.nm
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / xorg-x11-fonts / xorg-x11-fonts.nm
index 9b7ef9870d08d7bff5a6dfefd9fa75ff7109e67c..c9313667b9c8b4f6e9f24c19deb538578f8fca26 100644 (file)
@@ -1,96 +1,69 @@
 ###############################################################################
-#                                                                             #
-# 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-fonts
-PKG_VER        = 7.2
-PKG_REL        = 2
-PKG_ARCH       = noarch
-
-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 fonts.
-
-PKG_BUILD_DEPS+= /usr/bin/mkfontscale perl pkg-config xorg-x11-font-utils-devel
-PKG_DEPS      += fontconfig
-define PKG_DESCRIPTION
-       This package contains misc bitmap Chinese, Japanese, Korean, Indic, and \
-       Arabic fonts for use with X Window System.      
-endef
-
-# Add all development headers to the package
-# Don't remove empty lines in the defined MACROS!
-
-SRC_PACKAGES = \
-       encodings-1.0.3 \
-       font-alias-1.0.2 \
-       font-adobe-100dpi-1.0.1 \
-       font-adobe-75dpi-1.0.1 \
-       font-adobe-utopia-100dpi-1.0.2 \
-       font-adobe-utopia-75dpi-1.0.2 \
-       font-adobe-utopia-type1-1.0.2 \
-       font-arabic-misc-1.0.1 \
-       font-bh-100dpi-1.0.1 \
-       font-bh-75dpi-1.0.1 \
-       font-bh-lucidatypewriter-100dpi-1.0.1 \
-       font-bh-lucidatypewriter-75dpi-1.0.1 \
-       font-bitstream-100dpi-1.0.1 \
-       font-bitstream-75dpi-1.0.1 \
-       font-bitstream-type1-1.0.1 \
-       font-cronyx-cyrillic-1.0.1 \
-       font-cursor-misc-1.0.1 \
-       font-daewoo-misc-1.0.1 \
-       font-dec-misc-1.0.1 \
-       font-isas-misc-1.0.1 \
-       font-jis-misc-1.0.1 \
-       font-micro-misc-1.0.1 \
-       font-misc-cyrillic-1.0.1 \
-       font-misc-misc-1.1.0 \
-       font-mutt-misc-1.0.1 \
-       font-schumacher-misc-1.1.0 \
-       font-screen-cyrillic-1.0.2 \
-       font-sony-misc-1.0.1 \
-       font-sun-misc-1.0.1 \
-       font-winitzki-cyrillic-1.0.1 \
-       font-xfree86-type1-1.0.2
-
-PKG_OBJECTS += $(foreach package,$(SRC_PACKAGES),$(package).tar.bz2)
-PKG_OBJECTS += unifont-5.1.20080820.pcf.gz
-
-define STAGE_PREPARE
-       for object in $(SRC_PACKAGES); do \
-               cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$${object}.tar.bz2; \
-       done
-endef
-
-define MACRO_BUILD
-       cd $(DIR_SRC)/$(1) && ./configure \
-               --prefix=/usr \
+name       = xorg-x11-fonts
+version    = 7.2
+release    = 2
+arch       = noarch
+
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Fonts
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 fonts.
+
+description
+       This package contains misc bitmap Chinese, Japanese, Korean, Indic, and
+       Arabic fonts for use with X Window System.
+end
+
+source_dl = http://ftp.x.org/pub/individual/font/ http://unifoundry.com/
+
+sources = \
+       encodings-1.0.3.tar.bz2 \
+       font-alias-1.0.2.tar.bz2 \
+       font-adobe-100dpi-1.0.1.tar.bz2 \
+       font-adobe-75dpi-1.0.1.tar.bz2 \
+       font-adobe-utopia-100dpi-1.0.2.tar.bz2 \
+       font-adobe-utopia-75dpi-1.0.2.tar.bz2 \
+       font-adobe-utopia-type1-1.0.2.tar.bz2 \
+       font-arabic-misc-1.0.1.tar.bz2 \
+       font-bh-100dpi-1.0.1.tar.bz2 \
+       font-bh-75dpi-1.0.1.tar.bz2 \
+       font-bh-lucidatypewriter-100dpi-1.0.1.tar.bz2 \
+       font-bh-lucidatypewriter-75dpi-1.0.1.tar.bz2 \
+       font-bitstream-100dpi-1.0.1.tar.bz2 \
+       font-bitstream-75dpi-1.0.1.tar.bz2 \
+       font-bitstream-type1-1.0.1.tar.bz2 \
+       font-cronyx-cyrillic-1.0.1.tar.bz2 \
+       font-cursor-misc-1.0.1.tar.bz2 \
+       font-daewoo-misc-1.0.1.tar.bz2 \
+       font-dec-misc-1.0.1.tar.bz2 \
+       font-isas-misc-1.0.1.tar.bz2 \
+       font-jis-misc-1.0.1.tar.bz2 \
+       font-micro-misc-1.0.1.tar.bz2 \
+       font-misc-cyrillic-1.0.1.tar.bz2 \
+       font-misc-misc-1.1.0.tar.bz2 \
+       font-mutt-misc-1.0.1.tar.bz2 \
+       font-schumacher-misc-1.1.0.tar.bz2 \
+       font-screen-cyrillic-1.0.2.tar.bz2 \
+       font-sony-misc-1.0.1.tar.bz2 \
+       font-sun-misc-1.0.1.tar.bz2 \
+       font-winitzki-cyrillic-1.0.1.tar.bz2 \
+       font-xfree86-type1-1.0.2.tar.bz2 \
+       unifont-5.1.20080820.pcf.gz
+
+build
+       requires
+               /usr/bin/mkfontscale
+               perl
+               pkg-config
+               xorg-x11-font-utils-devel
+       end
+
+       configure_optins += \
                --with-fontrootdir=/usr/share/X11/fonts \
                --disable-iso8859-3 \
                --disable-iso8859-4 \
@@ -101,22 +74,48 @@ define MACRO_BUILD
                --disable-iso8859-13 \
                --disable-iso8859-16
 
-       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
-
-define STAGE_INSTALL
-       $(foreach package,$(SRC_PACKAGES),$(call MACRO_INSTALL,$(package)))
-
-       # Install unifont
-       cp -vf $(DIR_DL)/unifont-5.1.20080820.pcf.gz $(BUILDROOT)/usr/share/X11/fonts/misc/unifont.pcf.gz
-endef
-
-
+       prepare
+       # Extract all source tarballs.
+               for object in %{sources}; do
+                       # Only extract tar.bz2 files
+                       object=${object//*pcf.gz/}
+                       if [ -n "${object}" ]; then
+                               %{MACRO_EXTRACT} %{DIR_DL}/${object}
+                       fi
+               done
+       end
+
+       build
+               for object in %{sources}; do
+                       dir=%{DIR_SRC}/${object%*.tar.bz2}
+
+                       if [ -d "${dir}" ]; then
+                               cd ${dir}
+                               ./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
+
+               # Install unifont
+               cp -vf %{DIR_DL}/unifont-5.1.20080820.pcf.gz %{BUILDROOT}/usr/share/fonts/X11/misc/unifont.pcf.gz
+       end
+end
+
+packages
+       package %{name}
+               requires = fontconfig
+       end
+end