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

include ${TOPDIR}/rules.mk

PKG_NAME:=		fuse
PKG_VERSION:=		2.7.4
PKG_RELEASE:=		2
PKG_MD5SUM:=		4879f06570d2225667534c37fea04213
PKG_DESCR:=		Filesystem in Userspace (utilities)
PKG_SECTION:=		fs
PKG_DEPENDS:=		kmod-fuse-fs libfuse
PKG_URL:=		http://fuse.sourceforge.net/
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=${PKG_NAME}/}

PKG_SUBPKGS:=		FUSE_UTILS LIBFUSE LIBFUSE_DEV
PKGSD_LIBFUSE:=		FUSE library
PKGSC_LIBFUSE:=		libs
PKGSD_LIBFUSE_DEV:=	FUSE headers
PKGSC_LIBFUSE_DEV:=	devel

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,FUSE_UTILS,fuse-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBFUSE,libfuse,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBFUSE},${PKGSC_LIBFUSE}))
$(eval $(call PKG_template,LIBFUSE_DEV,libfuse-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBFUSE_DEV},${PKGSC_LIBFUSE_DEV}))

CONFIGURE_ARGS+=	--enable-lib \
			--enable-util \
			--enable-example \
			--with-libiconv-prefix="${STAGING_TARGET_DIR}/usr" \
			--disable-auto-modprobe \
			--disable-mtab \
			--disable-kernel-module

fuse-utils-install:
	${INSTALL_DIR} ${IDIR_FUSE_UTILS}/usr/bin
	${CP} ${WRKINST}/usr/bin/fusermount ${IDIR_FUSE_UTILS}/usr/bin

libfuse-install:
	${INSTALL_DIR} ${IDIR_LIBFUSE}/usr/lib
	${CP} ${WRKINST}/usr/lib/libfuse.so* \
		${IDIR_LIBFUSE}/usr/lib
	${CP} ${WRKINST}/usr/lib/libulockmgr.so* \
		${IDIR_LIBFUSE}/usr/lib

libfuse-dev-install:
	${INSTALL_DIR} ${IDIR_LIBFUSE_DEV}/usr/lib/pkgconfig
	${INSTALL_DIR} ${IDIR_LIBFUSE_DEV}/usr/include/fuse
	${INSTALL_DATA} ${WRKINST}/usr/include/*.h \
		${IDIR_LIBFUSE_DEV}/usr/include
	${INSTALL_DATA} ${WRKINST}/usr/include/fuse/*.h \
		${IDIR_LIBFUSE_DEV}/usr/include/fuse
	${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/fuse.pc \
		${IDIR_LIBFUSE_DEV}/usr/lib/pkgconfig

include ${TOPDIR}/mk/pkg-bottom.mk