blob: 1dc6f09c02ccfb306cdc330ab8d8e77de4c51d6f (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
SUMMARY = "XFS Filesystem Utilities"
HOMEPAGE = "http://oss.sgi.com/projects/xfs"
SECTION = "base"
LICENSE = "GPLv2"
LICENSE_libhandle = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=dbdb5f4329b7e7145de650e9ecd4ac2a"
DEPENDS = "util-linux"
SRC_URI = "ftp://oss.sgi.com/projects/xfs/cmd_tars/${P}.tar.gz \
file://remove-install-as-user.patch \
file://drop-configure-check-for-aio.patch \
"
SRC_URI[md5sum] = "de9f1f45026c2f4e0776058d429ff4b6"
SRC_URI[sha256sum] = "adf4980177b5c890c1ca86b9c0e3e4d69a3f95bfc01746844280c2393cf4d6be"
inherit autotools
PACKAGES =+ "${PN}-fsck ${PN}-mkfs libhandle"
RDEPENDS_${PN} = "${PN}-fsck ${PN}-mkfs"
FILES_${PN}-fsck = "${base_sbindir}/fsck.xfs"
FILES_${PN}-mkfs = "${base_sbindir}/mkfs.xfs"
FILES_libhandle = "${base_libdir}/libhandle${SOLIBS}"
EXTRA_OECONF = "--enable-gettext=no"
do_configure () {
# Prevent Makefile from calling configure without arguments,
# when do_configure gets called for a second time.
rm -f include/builddefs include/platform_defs.h
# Recreate configure script.
rm -f configure
oe_runmake configure
# Configure.
export DEBUG="-DNDEBUG"
gnu-configize --force
oe_runconf
}
LIBTOOL = "${HOST_SYS}-libtool"
EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'"
TARGET_CC_ARCH += "${LDFLAGS}"
PARALLEL_MAKE = ""
do_install () {
export DIST_ROOT=${D}
oe_runmake install
# needed for xfsdump
oe_runmake install-dev
rm ${D}${base_libdir}/libhandle.a
rm ${D}${base_libdir}/libhandle.la
rm ${D}${base_libdir}/libhandle.so
rm ${D}${libdir}/libhandle.so
ln -s ../..${base_libdir}/libhandle.so.1 ${D}${libdir}/libhandle.so
}
|