mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-07 12:32:11 -05:00
opt: cygfuse: fuse.cygport and related changes
This commit is contained in:
parent
053a5f1e4b
commit
71c68d1e17
@ -1,8 +1,10 @@
|
||||
Version = $(shell cat version)
|
||||
#Debug = -g
|
||||
|
||||
cygfuse.dll libfuse.a: cygfuse.cpp
|
||||
g++ $(Debug) -shared -o cygfuse.dll -Wl,--out-implib=libfuse.a -I../../inc/fuse cygfuse.cpp
|
||||
[ -n "$(Debug)" ] || strip cygfuse.dll
|
||||
cygfuse-$(Version).dll libfuse-$(Version).dll.a fuse.pc: cygfuse.cpp fuse.pc.in
|
||||
g++ $(Debug) -shared -o cygfuse-$(Version).dll -Wl,--out-implib=libfuse-$(Version).dll.a -I../../inc/fuse cygfuse.cpp
|
||||
[ -n "$(Debug)" ] || strip cygfuse-$(Version).dll
|
||||
sed "s/@Version@/$(Version)/g" fuse.pc.in > fuse.pc
|
||||
|
||||
cygfuse-test.exe: cygfuse-test.c cygfuse.dll libfuse.a
|
||||
gcc $(Debug) -o cygfuse-test.exe -I../../inc/fuse -DCYGFUSE cygfuse-test.c -L$(PWD) -lfuse
|
||||
cygfuse-test.exe: cygfuse-test.c cygfuse-$(Version).dll libfuse-$(Version).dll.a
|
||||
gcc $(Debug) -o cygfuse-test.exe -I../../inc/fuse -DCYGFUSE cygfuse-test.c -L$(PWD) -lfuse-$(Version)
|
||||
|
36
opt/cygfuse/fuse.cygport
Normal file
36
opt/cygfuse/fuse.cygport
Normal file
@ -0,0 +1,36 @@
|
||||
NAME="fuse"
|
||||
VERSION="$(cat version)"
|
||||
RELEASE=1
|
||||
CATEGORY="Utils"
|
||||
SUMMARY="WinFsp-FUSE compatibility layer"
|
||||
DESCRIPTION="WinFsp-FUSE enables FUSE file systems to be run on Cygwin."
|
||||
HOMEPAGE="http://www.secfs.net/winfsp/"
|
||||
|
||||
SRC_URI="https://github.com/billziss-gh/winfsp/archive/master.tar.gz"
|
||||
SRC_DIR=winfsp-master
|
||||
|
||||
src_compile()
|
||||
{
|
||||
lndirs
|
||||
cd ${B}/opt/cygfuse
|
||||
make
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
cd ${B}/inc/fuse
|
||||
includeinto fuse
|
||||
doinclude fuse.h
|
||||
doinclude fuse_common.h
|
||||
doinclude fuse_opt.h
|
||||
doinclude winfsp_fuse.h
|
||||
|
||||
cd ${B}/opt/cygfuse
|
||||
dobin cygfuse-${VERSION}.dll
|
||||
dolib libfuse-${VERSION}.a
|
||||
|
||||
insinto /usr/lib/pkgconfig
|
||||
doins fuse.pc
|
||||
}
|
||||
|
||||
RESTRICT=postinst-doc
|
@ -3,7 +3,7 @@ incdir=${prefix}/include/fuse
|
||||
|
||||
Name: fuse
|
||||
Description: WinFsp FUSE compatible API
|
||||
Version: 2.8
|
||||
Version: @Version@
|
||||
URL: http://www.secfs.net/winfsp/
|
||||
Libs: -lfuse
|
||||
Libs: -lfuse-@Version@
|
||||
Cflags: -I"${incdir}" -DCYGFUSE
|
1
opt/cygfuse/version
Normal file
1
opt/cygfuse/version
Normal file
@ -0,0 +1 @@
|
||||
2.8
|
Loading…
x
Reference in New Issue
Block a user