Merge oe-devel@oe-devel.bkbits.net:packages
[vuplus_openembedded] / e2fsprogs / e2fsprogs_1.33.oe
1 DESCRIPTION = "EXT2 Filesystem Utilities"
2 SECTION = "base"
3 LICENSE = "GPL"
4 PRIORITY = "optional"
5 MAINTAINER = "Greg Gilbert <greg@treke.net>"
6 DEPENDS = ""
7 PR = "r1"
8
9 SRC_URI = "${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-${PV}.tar.gz \
10            file://ln.patch;patch=1 \
11            file://configure.patch;patch=1 \
12            file://compile-subst.patch;patch=1 \
13            file://m4.patch;patch=1"
14
15 inherit autotools
16
17 EXTRA_OECONF = "--enable-dynamic-e2fsck"
18
19 sbindir = "/sbin"
20
21 PACKAGES_prepend = "e2fsprogs-e2fsck e2fsprogs-mke2fs e2fsprogs-fsck "
22 FILES_e2fsprogs-fsck = "${sbindir}/fsck"
23 FILES_e2fsprogs-e2fsck = "${sbindir}/e2fsck ${sbindir}/fsck.ext2 ${sbindir}/fsck.ext3"
24 FILES_e2fsprogs-mke2fs = "${sbindir}/mke2fs ${sbindir}/mkfs.ext2 ${sbindir}/mkfs.ext3"
25
26 do_compile_prepend () {
27         find ./ -print|xargs chmod u=rwX
28         ( cd util; ${BUILD_CC} subst.c -o subst )
29 }
30
31 ext2fsheaders = "ext2_ext_attr.h bitops.h ext2_err.h \
32                  ext2_types.h ext2_fs.h ext2_io.h \
33                  ext2fs.h"
34 e2pheaders = "e2p.h"
35 do_stage () {
36         oe_libinstall -a -C lib libe2p ${STAGING_LIBDIR}/
37         oe_libinstall -a -C lib libext2fs ${STAGING_LIBDIR}/
38         install -d ${STAGING_INCDIR}/e2p
39         for h in ${e2pheaders}; do
40                 install -m 0644 lib/e2p/$h ${STAGING_INCDIR}/e2p/ || die "failed to install $h"
41         done
42         install -d ${STAGING_INCDIR}/ext2fs
43         for h in ${ext2fsheaders}; do
44                 install -m 0644 lib/ext2fs/$h ${STAGING_INCDIR}/ext2fs/ || die "failed to install $h"
45         done
46 }