summaryrefslogtreecommitdiff
path: root/print/teTeX3-texmf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'print/teTeX3-texmf/Makefile')
-rw-r--r--print/teTeX3-texmf/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/print/teTeX3-texmf/Makefile b/print/teTeX3-texmf/Makefile
index bed8b506a35..2b37581ee5a 100644
--- a/print/teTeX3-texmf/Makefile
+++ b/print/teTeX3-texmf/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2005/05/16 16:33:24 kristerw Exp $
+# $NetBSD: Makefile,v 1.6 2005/05/17 22:00:13 jlam Exp $
#
DISTNAME= tetex-texmf-3.0
@@ -6,6 +6,7 @@ PKGREVISION= 1
PKGNAME= ${DISTNAME:C/tetex/teTeX/}
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/unix/teTeX/3.0/distrib/}
+EXTRACT_SUFX= .tar.gz
MAINTAINER= kei@NetBSD.org,hubertf@NetBSD.org
HOMEPAGE= http://www.tug.org/tetex/
@@ -22,13 +23,16 @@ USE_GNU_TOOLS+= patch
.include "../../mk/bsd.prefs.mk"
+.if !empty(EXTRACT_USING:M*tar)
+EXTRACT_CMD_OPTS${EXTRACT_SUFX}= -X ${FILEDIR}/exclude -p
+.elif !empty(EXTRACT_USING:Mpax)
+EXTRACT_CMD_OPTS${EXTRACT_SUFX}= -c `${CAT} ${FILESDIR}/exclude`
+.endif
+
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/texmf
-.if !empty(EXTRACT_USING:Mgtar)
- cd ${PREFIX}/share/texmf; ${DECOMPRESS_CMD} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} | ${GTAR} -X ${FILESDIR}/exclude -xpf -
-.else
- cd ${PREFIX}/share/texmf; ${DECOMPRESS_CMD} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} | ${PAX} -O -cr `${CAT} ${FILESDIR}/exclude`
-.endif
+ extract_file=${_DISTDIR:Q}/${DISTFILES:Q}; \
+ cd ${PREFIX}/share/texmf; ${EXTRACT_CMD${EXTRACT_SUFX}}
cd ${PREFIX}/share/texmf/dvipdfm/config && \
${PATCH} ${_PATCH_BACKUP_ARG} .orig < ${FILESDIR}/dvipdfm-config.diff && \
${RM} config.orig