pkgsrc/print/teTeX-share/Makefile
jlam 758d912e33 Update package Makefile now that bsd.pkg.extract.mk is using the
"extract" script for extraction.  Many cases where a custom EXTRACT_CMD
simply copied the distfile into the work directory are no longer
needed.  The extract script also hides differences between pax and
tar behind a common command-line interface, so we no longer need code
that's conditional on whether EXTRACT_USING is tar or pax.
2006-01-21 18:57:40 +00:00

46 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.33 2006/01/21 18:57:42 jlam Exp $
#
DISTNAME= tetex-texmf-2.0.2
PKGNAME= teTeX-share-2.0.2
PKGREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/unix/teTeX/2.0/distrib/}
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES+= listings${EXTRACT_SUFX}
EXTRACT_SUFX= .tar.gz
MAINTAINER= kei@NetBSD.org
HOMEPAGE= http://www.tug.org/tetex/
COMMENT= Machine-independent part of teTeX, version 2
SITES_listings${EXTRACT_SUFX}= ${LOCAL_PORTS}
CONFLICTS+= teTeX2-share-[0-9]*
WRKSRC= ${WRKDIR}
DIST_SUBDIR= teTeX
EXTRACT_ONLY= # empty
NO_CONFIGURE= yes
NO_BUILD= yes
USE_TOOLS+= patch
# Don't extract the files listed in ${FILESDIR}/exclude, and preserve
# permissions.
#
EXTRACT_OPTS= -X ${FILESDIR}/exclude
EXTRACT_OPTS_TAR= -p
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/texmf
distfiles=${DISTFILES:Q}; \
for i in $$distfiles; do \
extract_file=${_DISTDIR:Q}"/$$i"; \
cd ${PREFIX}/share/texmf; ${EXTRACT_CMD}; \
done
cd ${PREFIX}/share/texmf/dvipdfm/config && \
${PATCH} ${_PATCH_BACKUP_ARG} .orig < ${FILESDIR}/dvipdfm-config.diff && \
${RM} config.orig
.include "../../mk/bsd.pkg.mk"