]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - pkgs/elfutils/elfutils.nm
Change file layout of the makefiles.
[ipfire-3.x.git] / pkgs / elfutils / elfutils.nm
index 002adc9333afd5dfade0b22c5e5bc2d86758144d..a82a69b4917f50ec6e1488aa0985c87e17591f43 100644 (file)
@@ -1,77 +1,71 @@
 ###############################################################################
-#                                                                             #
-# 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       = elfutils
+version    = 0.152
+release    = 2
 
-PKG_NAME       = elfutils
-PKG_VER        = 0.152
-PKG_REL        = 2
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Development/Libraries
+url        = https://fedorahosted.org/elfutils/
+license    = GPLv2 with exceptions
+summary    = A collection of utilities and DSOs to handle compiled objects.
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = https://fedorahosted.org/elfutils/
-PKG_LICENSE    = GPLv2 with exceptions
-PKG_SUMMARY    = A collection of utilities and DSOs to handle compiled objects.
-
-PKG_BUILD_DEPS+= bzip2-devel m4 xz-devel zlib-devel
-
-define PKG_DESCRIPTION
-       Elfutils is a collection of utilities, including ld (a linker), \
-       nm (for listing symbols from object files), size (for listing the \
-       section sizes of an object or archive file), strip (for discarding \
-       symbols), readelf (to see the raw ELF file structures), and elflint \
+description
+       Elfutils is a collection of utilities, including ld (a linker),
+       nm (for listing symbols from object files), size (for listing the
+       section sizes of an object or archive file), strip (for discarding
+       symbols), readelf (to see the raw ELF file structures), and elflint
        (to check for well-formed ELF files).
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       requires
+               bzip2-devel
+               m4
+               xz-devel
+               zlib-devel
+       end
 
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
+       configure_options += \
+               --program-prefix=eu-
 
-PKG_DEPS-$(PKG_NAME)-devel = $(PKG_NAME) $(PKG_NAME)-libs
+       prepare_cmds
+               # Fix a compiler warning.
+               sed -i.scanf-m -e 's/%m/%a/g' \
+                       src/addr2line.c tests/line2addr.c
+       end
 
-CONFIGURE_OPTIONS += \
-       --program-prefix=eu-
+       # fails
+       #test
+       #       make check
+       #end
+end
 
-define QUALITY_AGENT_WHITELIST_RPATH
-       /usr/lib/elfutils
-endef
+quality-agent
+       whitelist_rpath
+               /usr/lib/elfutils
+       end
+end
 
-# Remove -Wall from CFLAGS because -Werror is used at some places.
-CFLAGS        := $(filter-out -Wall,$(CFLAGS))
+packages
+       package %{name}
 
-define STAGE_PREPARE_CMDS
-       # Fix a compiler warning.
-       cd $(DIR_APP) && sed -i.scanf-m -e 's/%m/%a/g' \
-               src/addr2line.c tests/line2addr.c
-endef
+       package %{name}-devel
+               template DEVEL
+       
+               requires = %{name}=%{thisver} %{name}-libs=%{thisver}
+       end
 
-# fails
-#define STAGE_TEST
-#      cd $(DIR_APP) && make check
-#endef
+       package %{name}-libs
+               template LIBS
 
-# Libs are not versioned very well...
-PKG_FILES-$(PKG_NAME_REAL)-libs += \
-       /usr/lib/lib*$(PKG_VER).so \
-       /usr/lib/elfutils
+               files += /usr/lib*/lib*%{version}.so
+               files += /usr/lib/elfutils
+       end
+end