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