]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - pkgs/popt/popt.nm
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / popt / popt.nm
index 24f22aa3342cecf0e71c703e917c7e345b96943d..e998cf85f8b9d4accbe4d13ad37182546deb690c 100644 (file)
@@ -1,54 +1,41 @@
 ###############################################################################
-#                                                                             #
-# 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
+name       = popt
+version    = 1.15
+release    = 1
 
-PKG_NAME       = popt
-PKG_VER        = 1.15
-PKG_REL        = 0
+groups     = System/Libraries
+url        = http://www.rpm5.org/
+license    = MIT
+summary    = C library for parsing command line parameters.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.rpm5.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = C library for parsing command line parameters.
-
-define PKG_DESCRIPTION
-       Popt is a C library for parsing command line parameters. Popt was \
-       heavily influenced by the getopt() and getopt_long() functions, but \
+description
+       Popt is a C library for parsing command line parameters. Popt was
+       heavily influenced by the getopt() and getopt_long() functions, but
        it improves on them by allowing more powerful argument expansion.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
+end
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+source_dl  =
 
-CONFIGURE_OPTIONS += \
+build
+       configure_options += \
                --libdir=/lib \
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       rm -vf $(BUILDROOT)/lib/libpopt.so
-       ln -sfv ../../lib/libpopt.so.0.0.0 $(BUILDROOT)/usr/lib/libpopt.so
-endef
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib
+               rm -vf %{BUILDROOT}/lib/libpopt.so
+               ln -sfv ../../lib/libpopt.so.0.0.0 %{BUILDROOT}/usr/lib/libpopt.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end