###############################################################################
-# #
-# 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