aboutsummaryrefslogtreecommitdiffstats
path: root/misc/lv
diff options
context:
space:
mode:
authorsumikawa <sumikawa@FreeBSD.org>2012-02-19 21:22:14 +0800
committersumikawa <sumikawa@FreeBSD.org>2012-02-19 21:22:14 +0800
commit62b2004f7ee1207e9ac1e83628d6e55f28da103b (patch)
tree697e2fb36e77a960a66de499ddbdfd7e7ae711aa /misc/lv
parent6487fa382cf0694a857e3ee0d7f11d2926cf5a1d (diff)
downloadfreebsd-ports-gnome-62b2004f7ee1207e9ac1e83628d6e55f28da103b.tar.gz
freebsd-ports-gnome-62b2004f7ee1207e9ac1e83628d6e55f28da103b.tar.zst
freebsd-ports-gnome-62b2004f7ee1207e9ac1e83628d6e55f28da103b.zip
Add xz/lzma supporting and make compilable with CFLAGS.
PR: ports/165028 Submitted by: Shin-ya Murakami <murashin@gfd-dennou.org>
Diffstat (limited to 'misc/lv')
-rw-r--r--misc/lv/Makefile1
-rw-r--r--misc/lv/files/patch-src_Makefile.in11
-rw-r--r--misc/lv/files/patch-src_stream.c22
3 files changed, 34 insertions, 0 deletions
diff --git a/misc/lv/Makefile b/misc/lv/Makefile
index 307e0ec07623..d43c96580005 100644
--- a/misc/lv/Makefile
+++ b/misc/lv/Makefile
@@ -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
diff --git a/misc/lv/files/patch-src_Makefile.in b/misc/lv/files/patch-src_Makefile.in
new file mode 100644
index 000000000000..f9057800336c
--- /dev/null
+++ b/misc/lv/files/patch-src_Makefile.in
@@ -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 $<
diff --git a/misc/lv/files/patch-src_stream.c b/misc/lv/files/patch-src_stream.c
new file mode 100644
index 000000000000..c1d8f989b924
--- /dev/null
+++ b/misc/lv/files/patch-src_stream.c
@@ -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 ){
+ /*