summaryrefslogtreecommitdiff
path: root/e2fsprogs-libs/e2fsprogs-libs_1.35.oe
blob: 89feceeefd2c9bce9aea33d66893c404d59e4e48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
DESCRIPTION = "EXT2 Filesystem Utilities"
SECTION = "base"
PRIORITY = "optional"
MAINTAINER = "Greg Gilbert <greg@treke.net>"
RDEPENDS = "libc6"
DEPENDS = "virtual/libc"
FILES_e2fsprogs-libs-dev_append = " ${datadir}/et ${datadir}/ss"

SRC_URI = "${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-libs-${PV}.tar.gz \
	   file://${FILESDIR}/configure.patch;patch=1 \
	   file://${FILESDIR}/compile-subst.patch;patch=1 \
	   file://${FILESDIR}/m4.patch;patch=1 \
	   file://${FILESDIR}/ldflags.patch;patch=1"

inherit autotools

do_compile_prepend () {
	find ./ -print|xargs chmod u=rwX
	( cd util; ${BUILD_CC} subst.c -o subst )
}

do_stage () {
	install -m 0644 lib/libcom_err.a ${STAGING_LIBDIR}/
	install -m 0644 lib/libss.a ${STAGING_LIBDIR}/
	install -m 0644 lib/libuuid.a ${STAGING_LIBDIR}/
	install -m 0644 lib/libblkid.a ${STAGING_LIBDIR}/
	install -d ${STAGING_INCDIR}/et \
		   ${STAGING_INCDIR}/ss \
		   ${STAGING_INCDIR}/uuid \
		   ${STAGING_INCDIR}/blkid
	install -m 0644 lib/et/com_err.h ${STAGING_INCDIR}/et/
	install -m 0644 lib/ss/ss.h ${STAGING_INCDIR}/ss/
	install -m 0644 lib/ss/ss_err.h ${STAGING_INCDIR}/ss/
	install -m 0644 lib/uuid/uuid.h ${STAGING_INCDIR}/uuid/
	install -m 0644 lib/uuid/uuid_types.h ${STAGING_INCDIR}/uuid/
	install -m 0644 lib/blkid/blkid.h ${STAGING_INCDIR}/blkid/
	install -m 0644 lib/blkid/blkid_types.h ${STAGING_INCDIR}/blkid/
}