bsd.port.mk: lzma diff

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bsd.port.mk: lzma diff

Todd T. Fries-2
Simple, straightforward.

Index: bsd.port.mk
===================================================================
RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v
retrieving revision 1.896
diff -u -r1.896 bsd.port.mk
--- bsd.port.mk 27 May 2007 11:53:39 -0000 1.896
+++ bsd.port.mk 27 May 2007 13:14:02 -0000
@@ -550,6 +550,7 @@
 TAR ?= /bin/tar
 UNZIP ?= unzip
 BZIP2 ?= bzip2
+LZMA  ?= lzma
 
 
 MAKE_ENV += EXTRA_SYS_MK_INCLUDES="<bsd.own.mk>"
@@ -960,8 +961,13 @@
  (defined(PATCHFILES) && !empty(_PATCHFILES:M*.bz2))
 _USE_BZIP2 ?= Yes
 .endif
+.if !empty(EXTRACT_ONLY:M*.tar.lzma) || \
+ (defined(PATCHFILES) && !empty(_PATCHFILES:M*.lzma))
+_USE_LZMA ?= Yes
+.endif
 _USE_ZIP ?= No
 _USE_BZIP2 ?= No
+_USE_LZMA ?= No
 
 EXTRACT_CASES ?=
 
@@ -978,6 +984,11 @@
 EXTRACT_CASES += *.tar.bz2) \
  ${BZIP2} -dc ${FULLDISTDIR}/$$archive | ${TAR} xf -;;
 .endif
+.if ${_USE_LZMA:L} != "no"
+BUILD_DEPENDS += :lzma-*:archivers/lzma
+EXTRACT_CASES += *.tar.lzma) \
+ ${LZMA} -dc ${FULLDISTDIR}/$$archive | ${TAR} xf -;;
+.endif
 EXTRACT_CASES += *.tar) \
  ${TAR} xf ${FULLDISTDIR}/$$archive;;
 EXTRACT_CASES += *.shar.gz|*.shar.Z|*.sh.gz|*.sh.Z) \
--
Todd Fries .. [hidden email]

 _____________________________________________
|                                             \  1.636.410.0632 (voice)
| Free Daemon Consulting                      \  1.405.227.9094 (voice)
| http://FreeDaemonConsulting.com             \  1.866.792.3418 (FAX)
| "..in support of free software solutions."  \          250797 (FWD)
|                                             \
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
                                                 
              37E7 D3EB 74D0 8D66 A68D  B866 0326 204E 3F42 004A
                        http://todd.fries.net/pgp.txt

Reply | Threaded
Open this post in threaded view
|

Re: bsd.port.mk: lzma diff

Marc Espie-2
On Sun, May 27, 2007 at 08:16:39AM -0500, Todd T. Fries wrote:
> Simple, straightforward.

1/ Show me stuff that would use this functionality. I don't believe in adding
it if you don't have a few ports that will use lzma distfiles.

2/ Is lzma working on most architectures without issues ?