opt: cygfuse: can build cygport from working tree (make cygport)

This commit is contained in:
Bill Zissimopoulos 2016-06-21 21:17:39 -07:00
parent ed0b83c84d
commit 8dc4225ea1
2 changed files with 13 additions and 3 deletions

View File

@ -8,3 +8,13 @@ cygfuse-$(Version).dll libfuse-$(Version).dll.a fuse.pc: cygfuse.cpp fuse.pc.in
cygfuse-test.exe: cygfuse-test.c cygfuse-$(Version).dll libfuse-$(Version).dll.a 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) gcc $(Debug) -o cygfuse-test.exe -I../../inc/fuse -DCYGFUSE cygfuse-test.c -L$(PWD) -lfuse-$(Version)
cygport:
git clean -dfx
(\
cd `git rev-parse --show-toplevel` &&\
Stash=`git stash create` &&\
git archive --prefix=winfsp-work/ --format=tar.gz $${Stash:-HEAD}\
> opt/cygfuse/winfsp-work.tar.gz\
)
CYGPORT_SRC_URI=winfsp-work.tar.gz CYGPORT_SRC_DIR=winfsp-work cygport fuse.cygport download prep compile install package

View File

@ -6,8 +6,8 @@ SUMMARY="WinFsp-FUSE compatibility layer"
DESCRIPTION="WinFsp-FUSE enables FUSE file systems to be run on Cygwin." DESCRIPTION="WinFsp-FUSE enables FUSE file systems to be run on Cygwin."
HOMEPAGE="http://www.secfs.net/winfsp/" HOMEPAGE="http://www.secfs.net/winfsp/"
SRC_URI="https://github.com/billziss-gh/winfsp/archive/master.tar.gz" SRC_URI=${CYGPORT_SRC_URI:-"https://github.com/billziss-gh/winfsp/archive/master.tar.gz"}
SRC_DIR=winfsp-master SRC_DIR=${CYGPORT_SRC_DIR:-winfsp-master}
src_compile() src_compile()
{ {
@ -33,4 +33,4 @@ src_install()
doins fuse.pc doins fuse.pc
} }
RESTRICT=postinst-doc RESTRICT="strip postinst-doc"