]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/parted/parted.nm
Remove legacy build system.
[people/ms/ipfire-3.x.git] / pkgs / parted / parted.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = parted
28 PKG_VER = 2.1
29 PKG_REL = 1
30
31 PKG_MAINTAINER =
32 PKG_GROUP = Applications/System
33 PKG_URL = http://www.gnu.org/software/parted
34 PKG_LICENSE = GPLv3+
35 PKG_SUMMARY = The GNU disk partition manipulation program.
36
37 PKG_BUILD_DEPS+= libdevmapper-devel libselinux-devel libsepol-devel \
38 libuuid-devel ncurses-devel readline-devel
39
40 define PKG_DESCRIPTION
41 The GNU Parted program allows you to create, destroy, resize, move, \
42 and copy hard disk partitions. Parted can be used for creating space \
43 for new operating systems, reorganizing disk usage, and copying data \
44 to new hard disks.
45 endef
46
47 PKG_TARBALL = $(THISAPP).tar.gz
48
49 PKG_PACKAGES += $(PKG_NAME)-devel
50
51 CONFIGURE_OPTIONS += \
52 --libdir=/lib \
53 --enable-selinux
54
55 define STAGE_INSTALL_CMDS
56 -mkdir -pv $(BUILDROOT)/usr/lib
57 mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib/
58 rm -rf $(BUILDROOT)/lib/libparted{,-2.1}.so
59 ln -svf ../../lib/libparted-$(PKG_VER).so.0 $(BUILDROOT)/usr/lib/libparted-$(PKG_VER).so
60 ln -svf libparted-$(PKG_VER).so $(BUILDROOT)/usr/lib/libparted.so
61 endef