Add xz/lzma supporting and make compilable with CFLAGS.
PR: ports/165028 Submitted by: Shin-ya Murakami <murashin@gfd-dennou.org>
This commit is contained in:
parent
cd5f766528
commit
bdd495f2c5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=291824
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= lv
|
||||
PORTVERSION= 4.51
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= http://www.ff.iij4u.or.jp/~nrt/freeware/
|
||||
DISTNAME= lv451
|
||||
|
11
misc/lv/files/patch-src_Makefile.in
Normal file
11
misc/lv/files/patch-src_Makefile.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- Makefile.in.orig 2004-01-06 16:22:17.000000000 +0900
|
||||
+++ Makefile.in 2007-06-28 13:24:06.000000000 +0900
|
||||
@@ -41,7 +41,7 @@
|
||||
all: lv
|
||||
|
||||
lv: $(OBJS) $(UNIOBJS)
|
||||
- $(PURIFY) $(CC) $(LDFLAGS) -o $@ $(OBJS) $(UNIOBJS) $(LIBS)
|
||||
+ $(PURIFY) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(UNIOBJS) $(LIBS)
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
22
misc/lv/files/patch-src_stream.c
Normal file
22
misc/lv/files/patch-src_stream.c
Normal file
@ -0,0 +1,22 @@
|
||||
--- stream.c.orig 2010-03-31 21:10:00.000000000 +0900
|
||||
+++ stream.c 2010-03-31 21:17:50.000000000 +0900
|
||||
@@ -43,6 +43,8 @@
|
||||
|
||||
private byte *gz_filter = "zcat";
|
||||
private byte *bz2_filter = "bzcat";
|
||||
+private byte *lzma_filter = "lzcat";
|
||||
+private byte *xz_filter = "xzcat";
|
||||
|
||||
private stream_t *StreamAlloc()
|
||||
{
|
||||
@@ -75,6 +77,10 @@
|
||||
filter = gz_filter;
|
||||
else if( !strcmp( "bz2", exts ) || !strcmp( "BZ2", exts ) )
|
||||
filter = bz2_filter;
|
||||
+ else if( !strcmp( "lzma", exts ) || !strcmp( "LZMA", exts ) )
|
||||
+ filter = lzma_filter;
|
||||
+ else if( !strcmp( "xz", exts ) || !strcmp( "XZ", exts ) )
|
||||
+ filter = xz_filter;
|
||||
}
|
||||
if( NULL != filter ){
|
||||
/*
|
Loading…
Reference in New Issue
Block a user