]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - pkgs/ncurses/ncurses.nm
Change file layout of the makefiles.
[ipfire-3.x.git] / pkgs / ncurses / ncurses.nm
index 8c5daef9b5b7d65955ed46327544a424bc1d49db..063f472b26fa8d93498171502fb793a774c2bc28 100644 (file)
 ###############################################################################
-#                                                                             #
-# 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
-###############################################################################
+name       = ncurses
+version    = 5.9
+release    = 2
+
+groups     = System/Base
+url        = http://invisible-island.net/ncurses/ncurses.html
+license    = MIT
+summary    = Ncurses support utilities.
 
-include $(PKGROOT)/Include
+description
+       The curses library routines are a terminal-independent method of
+       updating character screens with reasonable optimization. The ncurses
+       (new curses) library is a freely distributable replacement for the
+       discontinued 4.4 BSD classic curses library.
+end
 
-PKG_NAME       = ncurses
-PKG_VER        = 5.9
-PKG_REL        = 1
+source_dl  =
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://invisible-island.net/ncurses/ncurses.html
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Ncurses support utilities.
+build
+       requires
+               gcc-c++
+       end
 
-PKG_BUILD_DEPS+= gcc-c++
+       configure_options += \
+               --mandir=/usr/share/man \
+               --with-shared \
+               --without-debug \
+               --enable-widec \
+               --disable-static \
+               --enable-symlinks \
+               --disable-root-environ
 
-define PKG_DESCRIPTION
-       The curses library routines are a terminal-independent method of \
-       updating character screens with reasonable optimization. The ncurses \
-       (new curses) library is a freely distributable replacement for the \
-       discontinued 4.4 BSD classic curses library.
-endef
+       install_cmds
+               mkdir -pv %{BUILDROOT}/lib
+               mv -v %{BUILDROOT}/usr/lib/libncursesw.so.5* %{BUILDROOT}/lib
+               ln -sfv ../../lib/libncursesw.so.5 %{BUILDROOT}/usr/lib/libncursesw.so
+               for lib in curses ncurses form panel menu; do
+                       rm -vf %{BUILDROOT}/usr/lib/lib${lib}.so
+                       echo "INPUT(-l${lib}w)" >%{BUILDROOT}/usr/lib/lib${lib}.so
+               done
+
+               rm -vf %{BUILDROOT}/usr/lib/libcursesw.so
+               echo "INPUT(-lncursesw)" >%{BUILDROOT}/usr/lib/libcursesw.so
+               ln -sfv libncurses.so %{BUILDROOT}/usr/lib/libcurses.so
+       end
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+packages
+       package %{name}
+       
+       package %{name}-libs
+               template LIBS
+       
+               requires
+                       %{name}-base
+               end
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+       package %{name}-term
+               summary = Terminal descriptions for ncurses.
+               description
+                       This package contains additional terminal descriptions not found in
+                       the ncurses-base package.
+               end
 
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man \
-       --with-shared \
-       --without-debug \
-       --enable-widec \
-       --disable-static \
-       --enable-symlinks \
-       --disable-root-environ
+               files
+                       /usr/share/terminfo
+               end
+       end
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/lib
-       mv -v $(BUILDROOT)/usr/lib/libncursesw.so.5* $(BUILDROOT)/lib
-       ln -sfv ../../lib/libncursesw.so.5 $(BUILDROOT)/usr/lib/libncursesw.so
-       for lib in curses ncurses form panel menu; do \
-               rm -vf $(BUILDROOT)/usr/lib/lib$${lib}.so ; \
-               echo "INPUT(-l$${lib}w)" >$(BUILDROOT)/usr/lib/lib$${lib}.so ; \
-       done
+       package %{name}-base
+               summary = Terminal descriptions.
+               description
+                       This package contains descriptions of common terminals. Other terminal
+                       descriptions are included in the ncurses-term package.
+               end
 
-       rm -vf $(BUILDROOT)/usr/lib/libcursesw.so
-       echo "INPUT(-lncursesw)" >$(BUILDROOT)/usr/lib/libcursesw.so
-       ln -sfv libncurses.so $(BUILDROOT)/usr/lib/libcurses.so
-endef
+               files
+                       /usr/share/terminfo/*/Eterm*
+                       /usr/share/terminfo/*/aterm
+                       /usr/share/terminfo/*/bterm
+                       /usr/share/terminfo/*/cons25
+                       /usr/share/terminfo/*/cygwin
+                       /usr/share/terminfo/*/eterm*
+                       /usr/share/terminfo/*/gnome
+                       /usr/share/terminfo/*/gnome-256color
+                       /usr/share/terminfo/*/hurd
+                       /usr/share/terminfo/*/jfbterm
+                       /usr/share/terminfo/*/konsole
+                       /usr/share/terminfo/*/konsole-256color
+                       /usr/share/terminfo/*/mach*
+                       /usr/share/terminfo/*/mlterm
+                       /usr/share/terminfo/*/mrxvt
+                       /usr/share/terminfo/*/nsterm
+                       /usr/share/terminfo/*/putty*
+                       /usr/share/terminfo/*/pcansi
+                       /usr/share/terminfo/*/rxvt
+                       /usr/share/terminfo/*/rxvt-*
+                       /usr/share/terminfo/*/screen
+                       /usr/share/terminfo/*/screen-*color
+                       /usr/share/terminfo/*/screen.*
+                       /usr/share/terminfo/*/sun
+                       /usr/share/terminfo/*/teraterm
+                       /usr/share/terminfo/*/teraterm2.3
+                       /usr/share/terminfo/*/vte
+                       /usr/share/terminfo/*/vte-256color
+                       /usr/share/terminfo/*/vwmterm
+                       /usr/share/terminfo/*/wsvt25*
+                       /usr/share/terminfo/*/xfce
+                       /usr/share/terminfo/*/xterm xterm-*
+               end
+       end
+end