summaryrefslogtreecommitdiff
path: root/package/btrfs-progs/Makefile
blob: 585b02574ffdf81b26327712c0670839b46b91a9 (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		btrfs-progs
PKG_VERSION:=		6.1.3
PKG_RELEASE:=		1
PKG_HASH:=		d37fc9ec4fa5778b20aa7548fe706eb3a300338c1473318271ae54024dac7167
PKG_DESCR:=		btrfs progs
PKG_DEPENDS:=		zstd
PKG_BUILDDEP:=		zstd
PKG_KDEPENDS:=		btrfs-fs
PKG_SECTION:=		sys/fs
PKG_SITES:=		https://mirrors.edge.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/

DISTFILES:=             $(PKG_NAME)-v$(PKG_VERSION).tar.xz
WRKDIST=		$(WRKDIR)/$(PKG_NAME)-v$(PKG_VERSION)

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,BTRFS_PROGS,btrfs-progs,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

CONFIGURE_ARGS+=	--disable-backtrace \
			--disable-documentation \
			--disable-python \
			--disable-libudev

btrfs-progs-install:
	$(INSTALL_DIR) $(IDIR_BTRFS_PROGS)/usr/lib
	$(CP) $(WRKINST)/usr/lib/libbtrfs*.so* \
		$(IDIR_BTRFS_PROGS)/usr/lib
	$(INSTALL_DIR) $(IDIR_BTRFS_PROGS)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/bin/* \
		$(IDIR_BTRFS_PROGS)/usr/bin

include $(ADK_TOPDIR)/mk/pkg-bottom.mk