diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-02-12 21:29:28 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-02-12 21:29:28 +0000 |
commit | b8acaa3d1f51feb1ea31a2af32cd5fd63b69347e (patch) | |
tree | ee1fe8d56dc5c3ae3409f64a693819216d1d64ae /mk | |
parent | c2849a571efb95057111336c15fe6a86b6219ea4 (diff) | |
download | pkgsrc-b8acaa3d1f51feb1ea31a2af32cd5fd63b69347e.tar.gz |
Enable EXTRACT_{ONLY,SUFX}= .rar. Ok'ed by jlam
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 7ddb92a5b17..989f2bbadb1 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1392 2004/02/12 15:34:18 seb Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1393 2004/02/12 21:29:28 xtraeme Exp $ # # This file is in the public domain. # @@ -2023,6 +2023,7 @@ _EXTRACT_SUFFICES+= .zip _EXTRACT_SUFFICES+= .lha .lzh _EXTRACT_SUFFICES+= .Z .bz2 .gz _EXTRACT_SUFFICES+= .zoo +_EXTRACT_SUFFICES+= .rar # If the distfile has a tar.bz2 suffix, use bzcat in preference to gzcat, # pulling in the "bzip2" package if necessary. [Note: this is only for @@ -2055,6 +2056,9 @@ GZCAT= ${LOCALBASE}/bin/zcat .if !empty(EXTRACT_ONLY:M*.zoo) || !empty(EXTRACT_SUFX:M*.zoo) BUILD_DEPENDS+= unzoo-[0-9]*:../../archivers/unzoo .endif +.if !empty(EXTRACT_ONLY:M*.rar) || !empty(EXTRACT_SUFX:M*.rar) +BUILD_DEPENDS+= unrar>=3.3.4:../../archivers/unrar +.endif DECOMPRESS_CMD.tar.gz?= ${GZCAT} DECOMPRESS_CMD.tgz?= ${DECOMPRESS_CMD.tar.gz} @@ -2092,6 +2096,8 @@ EXTRACT_CMD.lzh?= ${EXTRACT_CMD.lha} EXTRACT_CMD_OPTS.lzh?= ${EXTRACT_CMD_OPTS.lha} EXTRACT_CMD.zoo?= ${LOCALBASE}/bin/unzoo ${EXTRACT_CMD_OPTS.zoo} $${extract_file} EXTRACT_CMD_OPTS.zoo?= -x +EXTRACT_CMD.rar?= ${LOCALBASE}/bin/unrar ${EXTRACT_CMD_OPTS.rar} $${extract_file} +EXTRACT_CMD_OPTS.rar?= x -inul .for __suffix__ in .gz .bz2 .Z EXTRACT_CMD${__suffix__}?= ${DECOMPRESS_CMD${__suffix__}} $${extract_file} > `${BASENAME} $${extract_file} ${__suffix__}` |