summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--cross/COMMON/cross.mk4
-rw-r--r--emulators/suse91_linux/Makefile.common4
-rw-r--r--emulators/suse_linux/Makefile.common4
-rw-r--r--lang/tcl-tclX/Makefile6
-rw-r--r--lang/tk-tclX/Makefile12
-rw-r--r--math/p5-Math-Pari/Makefile10
-rw-r--r--mk/autoconf.mk4
-rw-r--r--mk/bsd.pkg.mk30
-rw-r--r--mk/bsd.prefs.mk34
-rw-r--r--mk/bulk/bsd.bulk-pkg.mk56
-rw-r--r--mk/defaults/mk.conf6
-rw-r--r--mk/platform/SunOS.mk4
-rw-r--r--net/ppp-mppe/Makefile8
-rw-r--r--pkgtools/pkg_regress/Makefile4
-rw-r--r--pkgtools/pkgclean/Makefile4
-rw-r--r--pkgtools/pkgdep/Makefile4
-rw-r--r--pkgtools/pkgdepgraph/Makefile6
-rw-r--r--pkgtools/pkgfind/Makefile4
-rw-r--r--pkgtools/pkglint/Makefile6
-rw-r--r--print/ja-ptex-bin/Makefile4
-rw-r--r--print/texfamily/Makefile4
-rw-r--r--security/audit-packages/Makefile4
23 files changed, 117 insertions, 112 deletions
diff --git a/Makefile b/Makefile
index f8a8758dc90..99e0ef49c3f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.65 2004/08/27 21:32:55 jlam Exp $
+# $NetBSD: Makefile,v 1.66 2004/10/07 02:01:37 jlam Exp $
#
.include "mk/bsd.prefs.mk"
@@ -59,7 +59,7 @@ SUBDIR+= ${USER_ADDITIONAL_PKGS}
PKGSRCTOP= yes
-# If PACKAGES is set to the default (${_PKGSRCDIR}/packages), the current
+# If PACKAGES is set to the default (${PKGSRCDIR}/packages), the current
# ${MACHINE_ARCH} and "release" (uname -r) will be used. Otherwise a directory
# structure of ...pkgsrc/packages/`uname -r`/${MACHINE_ARCH} is assumed.
# The PKG_URL is set from FTP_PKG_URL_* or CDROM_PKG_URL_*, depending on
@@ -99,9 +99,6 @@ README.html: .PRECIOUS
# directory.
.if make(bulk-cache) || make(clean-bulk-cache)
.include "${.CURDIR}/mk/bulk/bsd.bulk-pkg.mk"
-# force the setting of _PKGSRCDIR because the way it gets
-# set in bsd.prefs.mk is broken if you're in this top level directory
-_PKGSRCDIR=${.CURDIR}
.endif
.PHONY: ${.CURDIR}/PKGDB
diff --git a/cross/COMMON/cross.mk b/cross/COMMON/cross.mk
index a4505daf5b6..83daecec9e2 100644
--- a/cross/COMMON/cross.mk
+++ b/cross/COMMON/cross.mk
@@ -1,4 +1,4 @@
-# $NetBSD: cross.mk,v 1.29 2004/07/09 20:48:15 kristerw Exp $
+# $NetBSD: cross.mk,v 1.30 2004/10/07 02:01:37 jlam Exp $
# Shared definitions for building a cross-compile environment.
@@ -12,7 +12,7 @@ PLIST_SRC= ${WRKDIR}/.PLIST_SRC
HOMEPAGE?= http://egcs.cygnus.com/
TARGET_DIR= ${PREFIX}/${TARGET_ARCH}
-COMMON_DIR= ${_PKGSRCDIR}/cross/COMMON
+COMMON_DIR= ${PKGSRCDIR}/cross/COMMON
PLIST_PRE?= ${PKGDIR}/PLIST
MESSAGE_SUBST+= CROSSBASE=${CROSSBASE}
diff --git a/emulators/suse91_linux/Makefile.common b/emulators/suse91_linux/Makefile.common
index 514cc7c9ca6..4850160bb87 100644
--- a/emulators/suse91_linux/Makefile.common
+++ b/emulators/suse91_linux/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.3 2004/08/07 13:05:03 jdolecek Exp $
+# $NetBSD: Makefile.common,v 1.4 2004/10/07 02:01:37 jlam Exp $
SUSE_VERSION= 9.1
@@ -56,7 +56,7 @@ do-install:
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \
else \
${RM} -f ${PLIST_SRC}; \
- ${CP} ${_PKGSRCDIR}/emulators/suse_linux/PLIST_dynamic ${PLIST_SRC} ; \
+ ${CP} ${PKGSRCDIR}/emulators/suse_linux/PLIST_dynamic ${PLIST_SRC} ; \
fi
${RPM2PKG} ${RPM2PKGARGS}
@if ${GREP} -q 'lib.*\.so' ${PLIST_SRC}; then \
diff --git a/emulators/suse_linux/Makefile.common b/emulators/suse_linux/Makefile.common
index b8835372c3c..a6ea2c248e0 100644
--- a/emulators/suse_linux/Makefile.common
+++ b/emulators/suse_linux/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.18 2004/05/27 10:28:54 tron Exp $
+# $NetBSD: Makefile.common,v 1.19 2004/10/07 02:01:37 jlam Exp $
SUSE_VERSION= 7.3
@@ -43,7 +43,7 @@ do-install:
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \
else \
${RM} -f ${PLIST_SRC}; \
- ${CP} ${_PKGSRCDIR}/emulators/suse_linux/PLIST_dynamic ${PLIST_SRC} ; \
+ ${CP} ${PKGSRCDIR}/emulators/suse_linux/PLIST_dynamic ${PLIST_SRC} ; \
fi
${RPM2PKG} ${RPM2PKGARGS}
@if ${GREP} -q 'lib.*\.so' ${PLIST_SRC}; then \
diff --git a/lang/tcl-tclX/Makefile b/lang/tcl-tclX/Makefile
index fe5f9c87b88..50c33abe9a9 100644
--- a/lang/tcl-tclX/Makefile
+++ b/lang/tcl-tclX/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2004/10/03 00:15:03 tv Exp $
+# $NetBSD: Makefile,v 1.22 2004/10/07 02:01:37 jlam Exp $
#
DISTNAME= tclx8.3.5-src
@@ -25,7 +25,9 @@ CONFIGURE_ARGS+= --enable-shared \
--enable-tk=NO
TEST_TARGET= test
-PKGSRC_TCL_SRC_DIR= ${_PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.4.6
+.include "../../mk/bsd.prefs.mk"
+
+PKGSRC_TCL_SRC_DIR= ${PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.4.6
CONFIGURE_ENV+= PKGSRC_TCL_SRC_DIR="${PKGSRC_TCL_SRC_DIR}"
MAKE_ENV+= GTAR=${GTAR} CHOWN=${CHOWN} CHMOD=${CHMOD} \
diff --git a/lang/tk-tclX/Makefile b/lang/tk-tclX/Makefile
index fc5967c9e71..71d4ff503ab 100644
--- a/lang/tk-tclX/Makefile
+++ b/lang/tk-tclX/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2004/10/03 00:15:03 tv Exp $
+# $NetBSD: Makefile,v 1.20 2004/10/07 02:01:37 jlam Exp $
#
DISTNAME= tclx8.3.5-src
@@ -25,9 +25,11 @@ CONFIGURE_ARGS+= --enable-shared \
TEST_DIRS= ${WRKSRC}/../tk/unix
TEST_TARGET= test
+.include "../../mk/bsd.prefs.mk"
+
CONFIGURE_ENV+= \
- PKGSRC_TCL_SRC_DIR="${_PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.4.6" \
- PKGSRC_TK_SRC_DIR="${_PKGSRCDIR}/x11/tk/${WRKDIR:T}/tk8.4.6"
+ PKGSRC_TCL_SRC_DIR="${PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.4.6" \
+ PKGSRC_TK_SRC_DIR="${PKGSRCDIR}/x11/tk/${WRKDIR:T}/tk8.4.6"
MAKE_ENV+= GTAR=${GTAR} CHOWN=${CHOWN} CHMOD=${CHMOD} \
SHAREMODE=${SHAREMODE} SHAREOWN=${SHAREOWN} \
@@ -46,10 +48,10 @@ INSTALLATION_DIRS= bin include
post-extract:
${MV} ${WRKSRC}/../doc/Memory.n ${WRKSRC}/../doc/TclXMemory.n
- @if [ ! -r ${_PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.4.6 ]; then \
+ @if [ ! -r ${PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.4.6 ]; then \
cd ../../lang/tcl && ${MAKE} extract; \
fi
- @if [ ! -r ${_PKGSRCDIR}/x11/tk/${WRKDIR:T}/tk8.4.6 ]; then \
+ @if [ ! -r ${PKGSRCDIR}/x11/tk/${WRKDIR:T}/tk8.4.6 ]; then \
cd ../../x11/tk && ${MAKE} extract; \
fi
diff --git a/math/p5-Math-Pari/Makefile b/math/p5-Math-Pari/Makefile
index 492f1ef37c1..e993c96ac0f 100644
--- a/math/p5-Math-Pari/Makefile
+++ b/math/p5-Math-Pari/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2004/04/27 21:26:08 snj Exp $
+# $NetBSD: Makefile,v 1.14 2004/10/07 02:01:38 jlam Exp $
#
DISTNAME= Math-Pari-2.010501
@@ -23,14 +23,14 @@ PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Math/Pari/.packlist
# XXX: could be improved...
post-extract:
- if [ ! -d ${_PKGSRCDIR}/math/pari/${WRKDIR_BASENAME} ]; then \
- cd ${_PKGSRCDIR}/math/pari && ${MAKE} configure; \
+ if [ ! -d ${PKGSRCDIR}/math/pari/${WRKDIR_BASENAME} ]; then \
+ cd ${PKGSRCDIR}/math/pari && ${MAKE} configure; \
fi
${RM} -f ${WRKSRC}/pari-*
- ${LN} -sf ${_PKGSRCDIR}/math/pari/${WRKDIR_BASENAME}/pari-* ${WRKSRC}/
+ ${LN} -sf ${PKGSRCDIR}/math/pari/${WRKDIR_BASENAME}/pari-* ${WRKSRC}/
pre-clean:
- cd ${_PKGSRCDIR}/math/pari && ${MAKE} clean
+ cd ${PKGSRCDIR}/math/pari && ${MAKE} clean
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/mk/autoconf.mk b/mk/autoconf.mk
index 5ab5d38633e..f8b599bbd11 100644
--- a/mk/autoconf.mk
+++ b/mk/autoconf.mk
@@ -1,4 +1,4 @@
-# $NetBSD: autoconf.mk,v 1.4 2004/02/20 09:58:49 jlam Exp $
+# $NetBSD: autoconf.mk,v 1.5 2004/10/07 02:01:38 jlam Exp $
#
# makefile fragment for packages that use autoconf
# AUTOCONF_REQD can be set to the minimum version required.
@@ -51,7 +51,7 @@ do-libtool-m4-override:
for file in ${_pattern_:S/libtool.m4$/configure/}; do \
if [ -f "$$file" ]; then \
libtool_m4=`${DIRNAME} $$file`/libtool.m4; \
- ${LN} -sf ${_PKGSRCDIR}/mk/gnu-config/libtool-1.4.m4 \
+ ${LN} -sf ${PKGSRCDIR}/mk/gnu-config/libtool-1.4.m4 \
$$libtool_m4; \
fi; \
done
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 623bef7134a..2f4da90b84f 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1509 2004/10/05 15:28:50 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1510 2004/10/07 02:01:38 jlam Exp $
#
# This file is in the public domain.
#
@@ -598,9 +598,9 @@ BUILD_DEPENDS+= bzip2>=0.9.0b:../../archivers/bzip2
# Figure out where the local mtree file is
.if defined(USE_X11BASE)
-MTREE_FILE?= ${_PKGSRCDIR}/mk/${OPSYS}.x11.dist
+MTREE_FILE?= ${PKGSRCDIR}/mk/${OPSYS}.x11.dist
.else
-MTREE_FILE?= ${_PKGSRCDIR}/mk/${OPSYS}.pkg.dist
+MTREE_FILE?= ${PKGSRCDIR}/mk/${OPSYS}.pkg.dist
.endif
MTREE_ARGS?= -U -f ${MTREE_FILE} -d -e -p
@@ -850,7 +850,7 @@ uptodate-digest:
.if !empty(USE_DIGEST:M[yY][eE][sS])
${_PKG_SILENT}${_PKG_DEBUG} \
if [ -f ${DISTINFO_FILE} -a \( ! -f ${DIGEST} -o ${DIGEST_VERSION} -lt ${DIGEST_REQD} \) ]; then \
- { cd ${_PKGSRCDIR}/pkgtools/digest; \
+ { cd ${PKGSRCDIR}/pkgtools/digest; \
${MAKE} clean; \
if [ -f ${DIGEST} ]; then \
${MAKE} ${MAKEFLAGS} deinstall; \
@@ -882,7 +882,7 @@ PKG_FAIL_REASON+='Error: The package tools installed on this system are out of d
PKG_FAIL_REASON+='The installed package tools are dated ${PKGTOOLS_VERSION:C|(....)(..)(..)|\1/\2/\3|} and you must update'
PKG_FAIL_REASON+='them to at least ${PKGTOOLS_REQD:C|(....)(..)(..)|\1/\2/\3|} using the following command:'
PKG_FAIL_REASON+=''
-PKG_FAIL_REASON+=' cd ${_PKGSRCDIR}/pkgtools/pkg_install && ${MAKE} clean && ${MAKE} install'
+PKG_FAIL_REASON+=' cd ${PKGSRCDIR}/pkgtools/pkg_install && ${MAKE} clean && ${MAKE} install'
. endif
. endif
@@ -1185,7 +1185,7 @@ SCRIPTS_ENV+= CURDIR=${.CURDIR} DISTDIR=${DISTDIR} \
PATH=${PATH}:${LOCALBASE}/bin:${X11BASE}/bin \
WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} PATCHDIR=${PATCHDIR} \
SCRIPTDIR=${SCRIPTDIR} FILESDIR=${FILESDIR} \
- _PKGSRCDIR=${_PKGSRCDIR} DEPENDS="${DEPENDS}" \
+ _PKGSRCDIR=${_PKGSRCDIR} PKGSRCDIR=${PKGSRCDIR} DEPENDS="${DEPENDS}" \
PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} \
VIEWBASE=${VIEWBASE}
@@ -1827,7 +1827,7 @@ show-needs-update:
. if defined(DEPENDS)
${_PKG_SILENT}${_PKG_DEBUG} \
for i in `${MAKE} show-all-depends-dirs`; do \
- cd ${_PKGSRCDIR}/$$i; \
+ cd ${PKGSRCDIR}/$$i; \
want=`${MAKE} show-var VARNAME=PKGNAME`; \
wild=`${MAKE} show-var VARNAME=PKGWILDCARD`; \
have=`${PKG_BEST_EXISTS} "$$wild" || ${TRUE}`; \
@@ -2253,7 +2253,7 @@ do-config-star-override:
for file in ${_pattern_}; do \
if [ -f "$$file" ]; then \
${RM} -f $$file; \
- ${LN} -s ${_PKGSRCDIR}/mk/gnu-config/config.guess \
+ ${LN} -s ${PKGSRCDIR}/mk/gnu-config/config.guess \
$$file; \
fi; \
done
@@ -2265,7 +2265,7 @@ do-config-star-override:
for file in ${_pattern_}; do \
if [ -f "$$file" ]; then \
${RM} -f $$file; \
- ${LN} -s ${_PKGSRCDIR}/mk/gnu-config/config.sub \
+ ${LN} -s ${PKGSRCDIR}/mk/gnu-config/config.sub \
$$file; \
fi; \
done
@@ -4254,7 +4254,7 @@ README.html: .PRECIOUS
@if ${TEST} -d ${PACKAGES}; then \
cd ${PACKAGES}; \
case `${PWD_CMD}` in \
- ${_PKGSRCDIR}/packages) \
+ ${PKGSRCDIR}/packages) \
MULTIARCH=no; \
;; \
*) \
@@ -4347,7 +4347,7 @@ print-summary-data:
@${ECHO} "maintainer ${PKGPATH} ${MAINTAINER}"
@${ECHO} "categories ${PKGPATH} ${CATEGORIES}"
@if [ -f ${DESCR_SRC} ]; then \
- ${ECHO} "descr ${PKGPATH} ${DESCR_SRC:S;${_PKGSRCDIR}/;;g}"; \
+ ${ECHO} "descr ${PKGPATH} ${DESCR_SRC:S;${PKGSRCDIR}/;;g}"; \
else \
${ECHO} "descr ${PKGPATH} /dev/null"; \
fi
@@ -4357,11 +4357,11 @@ print-summary-data:
.if !target(show-license)
show-license show-licence:
@if [ "${LICENSE}" != "" ]; then \
- if ${TEST} -f ${_PKGSRCDIR}/licenses/${LICENSE}; then \
+ if ${TEST} -f ${PKGSRCDIR}/licenses/${LICENSE}; then \
if [ "${PAGER}" != "" ]; then \
- ${PAGER} ${_PKGSRCDIR}/licenses/${LICENSE};\
+ ${PAGER} ${PKGSRCDIR}/licenses/${LICENSE};\
else \
- ${CAT} ${_PKGSRCDIR}/licenses/${LICENSE};\
+ ${CAT} ${PKGSRCDIR}/licenses/${LICENSE};\
fi \
else \
${ECHO} "Generic ${LICENSE} information not available"; \
@@ -4652,7 +4652,7 @@ fake-pkg: ${PLIST} ${DESCR} ${MESSAGE}
esac; \
done; \
fi; \
- eval ${GREP} '\$$NetBSD' $$files | ${SED} -e 's|^${_PKGSRCDIR}/||' > ${BUILD_VERSION_FILE}
+ eval ${GREP} '\$$NetBSD' $$files | ${SED} -e 's|^${PKGSRCDIR}/||' > ${BUILD_VERSION_FILE}
. for def in ${BUILD_DEFS}
@${ECHO} ${def}=${${def}:Q} | ${SED} -e 's|^PATH=[^ ]*|PATH=...|' >> ${BUILD_INFO_FILE}
. endfor
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index db196d0cee2..6d3b5aeb019 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.170 2004/10/06 20:59:40 jlam Exp $
+# $NetBSD: bsd.prefs.mk,v 1.171 2004/10/07 02:01:39 jlam Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -214,16 +214,16 @@ OBJECT_FMT?= a.out
# Calculate depth
.if exists(${.CURDIR}/mk/bsd.pkg.mk)
-PKGSRC_TOPDIR= ${.CURDIR}
+_PKGSRC_TOPDIR= ${.CURDIR}
.elif exists(${.CURDIR}/../mk/bsd.pkg.mk)
-PKGSRC_TOPDIR= ${.CURDIR}/..
+_PKGSRC_TOPDIR= ${.CURDIR}/..
.elif exists(${.CURDIR}/../../mk/bsd.pkg.mk)
-PKGSRC_TOPDIR= ${.CURDIR}/../..
+_PKGSRC_TOPDIR= ${.CURDIR}/../..
.endif
# include the defaults file
-.if exists(${PKGSRC_TOPDIR}/mk/defaults/mk.conf)
-. include "${PKGSRC_TOPDIR}/mk/defaults/mk.conf"
+.if exists(${_PKGSRC_TOPDIR}/mk/defaults/mk.conf)
+. include "${_PKGSRC_TOPDIR}/mk/defaults/mk.conf"
.endif
.if ${OPSYS} == "NetBSD"
@@ -257,10 +257,10 @@ SHAREMODE?= ${DOCMODE}
# Load the OS-specific definitions for program variables. Default to loading
# the NetBSD ones if an OS-specific file doesn't exist.
-.if exists(${PKGSRC_TOPDIR}/mk/platform/${OPSYS}.mk)
-. include "${PKGSRC_TOPDIR}/mk/platform/${OPSYS}.mk"
-.elif exists(${PKGSRC_TOPDIR}/mk/platform/NetBSD.mk)
-. include "${PKGSRC_TOPDIR}/mk/platform/NetBSD.mk"
+.if exists(${_PKGSRC_TOPDIR}/mk/platform/${OPSYS}.mk)
+. include "${_PKGSRC_TOPDIR}/mk/platform/${OPSYS}.mk"
+.elif exists(${_PKGSRC_TOPDIR}/mk/platform/NetBSD.mk)
+. include "${_PKGSRC_TOPDIR}/mk/platform/NetBSD.mk"
.endif
PKGDIRMODE?= 755
@@ -465,10 +465,14 @@ PKG_FAIL_REASON+= 'for more details.'
_PKGSRCDIR?= ${.CURDIR:C|/[^/]*/[^/]*$||}
PKGPATH?= ${.CURDIR:C|.*/([^/]*/[^/]*)$|\1|}
+.if !defined(PKGSRCDIR)
+PKGSRCDIR!= cd ${_PKGSRC_TOPDIR} && ${PWD_CMD}
+MAKEFLAGS+= PKGSRCDIR=${PKGSRCDIR:Q}
+.endif
-DISTDIR?= ${_PKGSRCDIR}/distfiles
-PACKAGES?= ${_PKGSRCDIR}/packages
-TEMPLATES?= ${_PKGSRCDIR}/templates
+DISTDIR?= ${PKGSRCDIR}/distfiles
+PACKAGES?= ${PKGSRCDIR}/packages
+TEMPLATES?= ${PKGSRCDIR}/templates
PATCHDIR?= ${.CURDIR}/patches
SCRIPTDIR?= ${.CURDIR}/scripts
@@ -512,8 +516,8 @@ PKG_DEFAULT_OPTIONS?= # empty
PKG_OPTIONS?= # empty
# Wrapper framework definitions
-.if exists(${PKGSRC_TOPDIR}/mk/wrapper/wrapper-defs.mk)
-. include "${PKGSRC_TOPDIR}/mk/wrapper/wrapper-defs.mk"
+.if exists(${PKGSRCDIR}/mk/wrapper/wrapper-defs.mk)
+. include "${PKGSRCDIR}/mk/wrapper/wrapper-defs.mk"
.endif
.endif # BSD_PKG_MK
diff --git a/mk/bulk/bsd.bulk-pkg.mk b/mk/bulk/bsd.bulk-pkg.mk
index 31f39ca733c..6cb9f75db0a 100644
--- a/mk/bulk/bsd.bulk-pkg.mk
+++ b/mk/bulk/bsd.bulk-pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.bulk-pkg.mk,v 1.62 2004/07/25 08:40:46 grant Exp $
+# $NetBSD: bsd.bulk-pkg.mk,v 1.63 2004/10/07 02:01:39 jlam Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@NetBSD.org>
@@ -81,41 +81,41 @@ BUILDLOG?= .make${BULK_ID}
# foo/bar devel/libfoo
# meaning 'foo/bar' is requied to build 'devel/libfoo'
# this is in the format needed by tsort(1)
-DEPENDSTREEFILE?= ${_PKGSRCDIR}/.dependstree${BULK_ID}
+DEPENDSTREEFILE?= ${PKGSRCDIR}/.dependstree${BULK_ID}
# This is a top level file which lists the entire pkgsrc depends tree in the
# format:
# foo/bar depends on: devel/libfoo devel/libbar devel/baz .....
# ie, to build foo/bar we need devel/libfoo devel/libbar devel/baz ... installed
-DEPENDSFILE?= ${_PKGSRCDIR}/.depends${BULK_ID}
+DEPENDSFILE?= ${PKGSRCDIR}/.depends${BULK_ID}
# This is a top level file which lists the entire pkgsrc depends tree in the
# format:
# devel/libfoo is depended upon by: foo/bar graphics/gtkfoo ...
# ie, to build foo/bar we need devel/libfoo to be installed.
# to build graphics/gtkfoo we need devel/libfoo to be installed
-SUPPORTSFILE?= ${_PKGSRCDIR}/.supports${BULK_ID}
+SUPPORTSFILE?= ${PKGSRCDIR}/.supports${BULK_ID}
# This is a top level file which cross-references each package name and pkg
# directory in the format:
# devel/libfoo libfoo-1.3
-INDEXFILE?= ${_PKGSRCDIR}/.index${BULK_ID}
+INDEXFILE?= ${PKGSRCDIR}/.index${BULK_ID}
# File containing a list of all the packages in the correct order for a bulk
# build. The correct order is one where packages that are required by others
# are built before the packages which require them.
-ORDERFILE?= ${_PKGSRCDIR}/.order${BULK_ID}
+ORDERFILE?= ${PKGSRCDIR}/.order${BULK_ID}
# File which is used as a timestamp for when the build started. This is used
# eventually for looking for leftover files (files not properly deinstalled)
-STARTFILE?= ${_PKGSRCDIR}/.start${BULK_ID}
+STARTFILE?= ${PKGSRCDIR}/.start${BULK_ID}
# File which is used as a database for bulk builds in which SPECIFIC_PKGS is
# defined. This database is used to hold all the dependency and index
# information for the specific packages as well as their dependencies. In a
# SPECIFIC_PKGS bulk build, this file is created and then used to create the
# INDEXFILE and DEPENDSTREEFILE.
-BULK_DBFILE?= ${_PKGSRCDIR}/.bulk_db${BULK_ID}
+BULK_DBFILE?= ${PKGSRCDIR}/.bulk_db${BULK_ID}
# A list of pkgs which we should _never_ delete during a build. The primary
# use is for digest and also for xpkgwedge. Add pkgtools/xpkgwedge in
@@ -132,7 +132,7 @@ _PRESERVE_WRKDIR?= no
bulk-cache:
@${ECHO_MSG} "BULK> Installing BULK_PREREQ packages"
.for __prereq in ${BULK_PREREQ}
- cd ${_PKGSRCDIR}/${__prereq} && ${MAKE} bulk-install
+ cd ${PKGSRCDIR}/${__prereq} && ${MAKE} bulk-install
.endfor
${RM} -f ${BULK_DBFILE}
${TOUCH} ${BULK_DBFILE}
@@ -140,15 +140,15 @@ bulk-cache:
@${ECHO} "This file is unused for a full pkgsrc bulk build" >> ${BULK_DBFILE}
@${ECHO} "It is only used for a SPECIFIC_PKGS bulk build" >> ${BULK_DBFILE}
@${ECHO_MSG} "BULK> Building complete pkgsrc dependency tree (this may take a while)."
- cd ${_PKGSRCDIR} && ${SETENV} BMAKE=${MAKE} ${SH} mk/bulk/printdepends ${BROKENFILE} > ${DEPENDSTREEFILE}
+ cd ${PKGSRCDIR} && ${SETENV} BMAKE=${MAKE} ${SH} mk/bulk/printdepends ${BROKENFILE} > ${DEPENDSTREEFILE}
@${ECHO_MSG} "BULK> Generating package name <=> package directory cross reference file"
@${ECHO_MSG} " (this may take a while)."
- cd ${_PKGSRCDIR} && ${SETENV} BMAKE=${MAKE} ${SH} mk/bulk/printindex ${BROKENFILE} > ${INDEXFILE}
+ cd ${PKGSRCDIR} && ${SETENV} BMAKE=${MAKE} ${SH} mk/bulk/printindex ${BROKENFILE} > ${INDEXFILE}
.else
@${ECHO_MSG} "BULK> Extracting database for SPECIFIC_PKGS subset of pkgsrc"
@${ECHO_MSG} " along with their dependencies"
.for __tmp__ in ${SUBDIR} ${BULK_PREREQ} lang/perl5 pkgtools/pkglint
- cd ${_PKGSRCDIR}/${__tmp__} && ../../mk/scripts/mkdatabase -a -f ${BULK_DBFILE}
+ cd ${PKGSRCDIR}/${__tmp__} && ../../mk/scripts/mkdatabase -a -f ${BULK_DBFILE}
.endfor
@${ECHO_MSG} "BULK> Extracting dependency tree file"
${AWK} '/^(build_)?depends/ {pkgs[$$2] = 1; cat=$$2; sub(/\/.*/, "", cat); \
@@ -167,8 +167,8 @@ bulk-cache:
@${ECHO_MSG} "BULK> Sorting build order."
${TSORT} ${DEPENDSTREEFILE} > ${ORDERFILE}
@${ECHO_MSG} "BULK> Generating up and down dependency files."
- ${AWK} -f ${_PKGSRCDIR}/mk/bulk/tflat up ${DEPENDSTREEFILE} > ${SUPPORTSFILE}
- ${AWK} -f ${_PKGSRCDIR}/mk/bulk/tflat down ${DEPENDSTREEFILE} > ${DEPENDSFILE}
+ ${AWK} -f ${PKGSRCDIR}/mk/bulk/tflat up ${DEPENDSTREEFILE} > ${SUPPORTSFILE}
+ ${AWK} -f ${PKGSRCDIR}/mk/bulk/tflat down ${DEPENDSTREEFILE} > ${DEPENDSFILE}
# remove the bulk cache files
clean-bulk-cache:
@@ -273,7 +273,7 @@ bulk-package:
${ECHO_MSG} "BULK> Cleaning package and its depends" ;\
if [ "${USE_BULK_CACHE}" = "yes" ]; then \
for pkgdir in ${PKGPATH} `${GREP} "^${PKGPATH} " ${DEPENDSFILE} | ${SED} -e 's;^.*:;;g'`; do \
- ${DO} (cd ${_PKGSRCDIR}/$$pkgdir && ${MAKE} clean) ; \
+ ${DO} (cd ${PKGSRCDIR}/$$pkgdir && ${MAKE} clean) ; \
done ;\
else \
${ECHO_MSG} ${MAKE} clean CLEANDEPENDS=YES;\
@@ -361,25 +361,25 @@ bulk-package:
if [ -z "$$pkgname" ]; then pkgname=unknown ; fi ; \
${ECHO_MSG} "BULK> marking package that requires ${PKGNAME} as broken: $$pkgname ($$pkgdir)";\
pkgerr="-1"; \
- pkgignore=`(cd ${_PKGSRCDIR}/$$pkgdir && ${MAKE} show-var VARNAME=PKG_FAIL_REASON)`; \
- pkgskip=`(cd ${_PKGSRCDIR}/$$pkgdir && ${MAKE} show-var VARNAME=PKG_SKIP_REASON)`; \
- if [ ! -z "$${pkgignore}$${pkgskip}" -a ! -f ${_PKGSRCDIR}/$$pkgdir/${BROKENFILE} ]; then \
- ${ECHO_MSG} "BULK> $$pkgname ($$pkgdir) may not be packaged because:" >> ${_PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
- ${ECHO_MSG} "BULK> $$pkgignore" >> ${_PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
- ${ECHO_MSG} "BULK> $$pkgskip" >> ${_PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
- if [ -z "`(cd ${_PKGSRCDIR}/$$pkgdir && ${MAKE} show-var VARNAME=BROKEN)`" ]; then \
+ pkgignore=`(cd ${PKGSRCDIR}/$$pkgdir && ${MAKE} show-var VARNAME=PKG_FAIL_REASON)`; \
+ pkgskip=`(cd ${PKGSRCDIR}/$$pkgdir && ${MAKE} show-var VARNAME=PKG_SKIP_REASON)`; \
+ if [ ! -z "$${pkgignore}$${pkgskip}" -a ! -f ${PKGSRCDIR}/$$pkgdir/${BROKENFILE} ]; then \
+ ${ECHO_MSG} "BULK> $$pkgname ($$pkgdir) may not be packaged because:" >> ${PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
+ ${ECHO_MSG} "BULK> $$pkgignore" >> ${PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
+ ${ECHO_MSG} "BULK> $$pkgskip" >> ${PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
+ if [ -z "`(cd ${PKGSRCDIR}/$$pkgdir && ${MAKE} show-var VARNAME=BROKEN)`" ]; then \
pkgerr="0"; \
else \
pkgerr="1"; \
fi; \
fi; \
${ECHO_MSG} "BULK> $$pkgname ($$pkgdir) is broken because it depends upon ${PKGNAME} (${PKGPATH}) which is broken." \
- >> ${_PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
+ >> ${PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
${ECHO_MSG} "Please view the <a href=\"../../${PKGPATH}/${BROKENFILE}\">build log for ${PKGNAME}</a>" \
- >> ${_PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
+ >> ${PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
nbrokenby=`expr $$nbrokenby + 1`;\
- if ${GREP} -q " $$pkgdir/${BROKENFILE}" ${_PKGSRCDIR}/${BROKENFILE} ; then :; else \
- ${ECHO} " $$pkgerr $$pkgdir/${BROKENFILE} 0 " >> ${_PKGSRCDIR}/${BROKENFILE} ;\
+ if ${GREP} -q " $$pkgdir/${BROKENFILE}" ${PKGSRCDIR}/${BROKENFILE} ; then :; else \
+ ${ECHO} " $$pkgerr $$pkgdir/${BROKENFILE} 0 " >> ${PKGSRCDIR}/${BROKENFILE} ;\
fi ;\
done ;\
fi ;\
@@ -387,7 +387,7 @@ bulk-package:
if [ -f ${INTERACTIVE_COOKIE} ]; then \
nerrors="0"; \
fi; \
- ${ECHO_MSG} " $$nerrors ${PKGPATH}/${BROKENFILE} $$nbrokenby " >> ${_PKGSRCDIR}/${BROKENFILE} \
+ ${ECHO_MSG} " $$nerrors ${PKGPATH}/${BROKENFILE} $$nbrokenby " >> ${PKGSRCDIR}/${BROKENFILE} \
) 2>&1 | ${TEE} -a ${BROKENFILE}; \
fi ; \
case ${_PRESERVE_WRKDIR} in \
@@ -395,7 +395,7 @@ bulk-package:
*) ${ECHO_MSG} "BULK> Cleaning packages and its depends"; \
if [ "${USE_BULK_CACHE}" = "yes" ]; then \
for pkgdir in ${PKGPATH} `${GREP} "^${PKGPATH} " ${DEPENDSFILE} | ${SED} -e 's;^.*:;;g'`; do \
- ${DO} (cd ${_PKGSRCDIR}/$$pkgdir && ${MAKE} clean) ; \
+ ${DO} (cd ${PKGSRCDIR}/$$pkgdir && ${MAKE} clean) ; \
done; \
else \
${ECHO_MSG} ${MAKE} clean CLEANDEPENDS=YES;\
diff --git a/mk/defaults/mk.conf b/mk/defaults/mk.conf
index 08d12e13803..d81c3bb9eb7 100644
--- a/mk/defaults/mk.conf
+++ b/mk/defaults/mk.conf
@@ -1,4 +1,4 @@
-# $NetBSD: mk.conf,v 1.2 2004/10/06 20:59:40 jlam Exp $
+# $NetBSD: mk.conf,v 1.3 2004/10/07 02:01:39 jlam Exp $
#
# A file providing defaults for pkgsrc and the packages collection.
@@ -218,7 +218,7 @@ BSDXSRCDIR?= /usr/xsrc
# Possible: any path
# Default: /usr/xsrc
-DISTDIR?= ${_PKGSRCDIR}/distfiles
+DISTDIR?= ${PKGSRCDIR}/distfiles
# Directory where original distribution
# files are stored.
# Possible: any path you like
@@ -284,7 +284,7 @@ RCD_SCRIPTS_DIR?= /etc/rc.d
# Possible: any path you like
# Default: /etc/rc.d
-PACKAGES?= ${_PKGSRCDIR}/packages
+PACKAGES?= ${PKGSRCDIR}/packages
# Store generated packages on a per-architecture base
# Possible: any path you like
# Default: /usr/pkgsrc/packages
diff --git a/mk/platform/SunOS.mk b/mk/platform/SunOS.mk
index 7ec8b9b22cb..b88dcf1f2a5 100644
--- a/mk/platform/SunOS.mk
+++ b/mk/platform/SunOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: SunOS.mk,v 1.1 2004/10/06 20:51:47 jlam Exp $
+# $NetBSD: SunOS.mk,v 1.2 2004/10/07 02:01:39 jlam Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -170,7 +170,7 @@ _STRIPFLAG_INSTALL?= -s # install(1) option to strip
@echo "ERROR: pkgsrc now requires a more functional sed(1) than Solaris provides."
@echo "you can satisfy this requirement by running:"
@echo ""
- @echo " cd ${_PKGSRCDIR}/textproc/nbsed; ${MAKE} install"
+ @echo " cd ${PKGSRCDIR}/textproc/nbsed; ${MAKE} install"
@echo ""
@echo "this will install ${LOCALBASE}/bin/nbsed and eliminate this message."
@echo "(nbsed is already installed by recent bootstrap-pkgsrc)."
diff --git a/net/ppp-mppe/Makefile b/net/ppp-mppe/Makefile
index 5ba3e558791..21bb0a52a19 100644
--- a/net/ppp-mppe/Makefile
+++ b/net/ppp-mppe/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2004/05/23 15:09:06 heinz Exp $
+# $NetBSD: Makefile,v 1.27 2004/10/07 02:01:38 jlam Exp $
DISTNAME= ppp-2.3.9
PKGNAME= ppp-mppe-2.3.9
@@ -14,9 +14,6 @@ CONFLICTS+= ppp-2.*
ONLY_FOR_PLATFORM= NetBSD-*-*
-OPENSSL_VERS= 0.9.6m
-OPENSSL_SRC= ${_PKGSRCDIR}/security/openssl/${WRKDIR:T}/openssl-${OPENSSL_VERS}
-
HAS_CONFIGURE= yes
MANCOMPRESSED_IF_MANZ= yes
@@ -24,6 +21,9 @@ MANCOMPRESSED_IF_MANZ= yes
BUILD_DEFS+= MANINSTALL
+OPENSSL_VERS= 0.9.6m
+OPENSSL_SRC= ${PKGSRCDIR}/security/openssl/${WRKDIR:T}/openssl-${OPENSSL_VERS}
+
post-extract:
if [ ! -r ${OPENSSL_SRC}/crypto/rc4 ]; then \
cd ../../security/openssl && ${MAKE} extract; \
diff --git a/pkgtools/pkg_regress/Makefile b/pkgtools/pkg_regress/Makefile
index 03174c55a95..eec099930ef 100644
--- a/pkgtools/pkg_regress/Makefile
+++ b/pkgtools/pkg_regress/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2004/08/28 00:26:57 gavan Exp $
+# $NetBSD: Makefile,v 1.2 2004/10/07 02:01:38 jlam Exp $
DISTNAME= pkg_regress-0.0
CATEGORIES= pkgtools
@@ -22,7 +22,7 @@ INSTALLATION_DIRS= sbin
do-build:
${SED} -e 's#@MAKE@#${MAKE}#g' \
- -e 's#@PKGSRCDIR@#${_PKGSRCDIR}#g' \
+ -e 's#@PKGSRCDIR@#${PKGSRCDIR}#g' \
-e 's#@SH@#${SH}#g' \
-e 's#@EGREP@#${EGREP}#g' \
${FILESDIR}/pkg_regress.sh >${WRKSRC}/pkg_regress.sh
diff --git a/pkgtools/pkgclean/Makefile b/pkgtools/pkgclean/Makefile
index 7a07d7fc781..ec3484bcfd0 100644
--- a/pkgtools/pkgclean/Makefile
+++ b/pkgtools/pkgclean/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/06/22 20:02:41 xtraeme Exp $
+# $NetBSD: Makefile,v 1.2 2004/10/07 02:01:38 jlam Exp $
DISTNAME= pkgclean-20040622
CATEGORIES= pkgtools
@@ -33,7 +33,7 @@ do-install:
SUBST_CLASSES= path
SUBST_STAGE.path= post-patch
SUBST_FILES.path= pkgclean.c pkgclean.1
-SUBST_SED.path= -e "s,@PKGSRCDIR@,${_PKGSRCDIR},g"
+SUBST_SED.path= -e "s,@PKGSRCDIR@,${PKGSRCDIR},g"
SUBST_MESSAGE.path= "Adjusting pkgsrc directory."
.include "../../mk/bsd.pkg.mk"
diff --git a/pkgtools/pkgdep/Makefile b/pkgtools/pkgdep/Makefile
index 8d10320e339..3b5b8d32662 100644
--- a/pkgtools/pkgdep/Makefile
+++ b/pkgtools/pkgdep/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2004/01/20 12:23:57 agc Exp $
+# $NetBSD: Makefile,v 1.9 2004/10/07 02:01:38 jlam Exp $
#
DISTNAME= pkgdep-1.0
@@ -18,7 +18,7 @@ NO_CONFIGURE= yes
do-build:
${CP} ${FILESDIR}/pkgdep.pl ${WRKDIR}/pkgdep
-# ${SED} -e 's|/usr/pkgsrc|${_PKGSRCDIR}|' \
+# ${SED} -e 's|/usr/pkgsrc|${PKGSRCDIR}|' \
# ${FILESDIR}/pkgdep.pl > ${WRKDIR}/pkgdep
do-install:
diff --git a/pkgtools/pkgdepgraph/Makefile b/pkgtools/pkgdepgraph/Makefile
index 5a3fe84a156..f920f29ac50 100644
--- a/pkgtools/pkgdepgraph/Makefile
+++ b/pkgtools/pkgdepgraph/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2004/07/28 01:42:43 atatat Exp $
+# $NetBSD: Makefile,v 1.18 2004/10/07 02:01:38 jlam Exp $
#
DISTNAME= pkgdepgraph-2.7
@@ -33,14 +33,14 @@ do-build:
.for FILE in pkgdepgraph
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
-e 's|@PKG_DBDIR@|${PKG_DBDIR}|g' \
- -e 's|@PKGSRCDIR@|${_PKGSRCDIR}|g' \
+ -e 's|@PKGSRCDIR@|${PKGSRCDIR}|g' \
-e 's|@DISTVER@|${DISTVER}|g' \
< ${WRKSRC}/${FILE}.pl \
> ${WRKSRC}/${FILE}
.endfor
.for FILE in pkgdepgraph.1 pkgdepgraph.0
${SED} -e 's|@PKG_DBDIR@|${PKG_DBDIR}|g' \
- -e 's|@PKGSRCDIR@|${_PKGSRCDIR}|g' \
+ -e 's|@PKGSRCDIR@|${PKGSRCDIR}|g' \
< ${WRKSRC}/${FILE}.in \
> ${WRKSRC}/${FILE}
.endfor
diff --git a/pkgtools/pkgfind/Makefile b/pkgtools/pkgfind/Makefile
index 53633829e88..abfed65cf7d 100644
--- a/pkgtools/pkgfind/Makefile
+++ b/pkgtools/pkgfind/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/06/22 20:01:01 xtraeme Exp $
+# $NetBSD: Makefile,v 1.2 2004/10/07 02:01:38 jlam Exp $
DISTNAME= pkgfind-20040622
CATEGORIES= pkgtools
@@ -33,7 +33,7 @@ do-install:
SUBST_CLASSES= path
SUBST_STAGE.path= post-patch
SUBST_FILES.path= pkgfind.c pkgfind.1
-SUBST_SED.path= -e "s,/usr/pkgsrc,${_PKGSRCDIR},g"
+SUBST_SED.path= -e "s,/usr/pkgsrc,${PKGSRCDIR},g"
SUBST_MESSAGE.path= "Adjusting pkgsrc directory."
.include "../../mk/bsd.pkg.mk"
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index 3f26c635f56..157e4dd6075 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.204 2004/09/24 15:33:26 wiz Exp $
+# $NetBSD: Makefile,v 1.205 2004/10/07 02:01:38 jlam Exp $
#
DISTNAME= pkglint-3.91
@@ -22,7 +22,7 @@ NO_CHECKSUM= yes
NO_CONFIGURE= yes
USE_LANGUAGES= # empty
-MAKE_ENV= PKGSRCDIR=${_PKGSRCDIR:Q}
+MAKE_ENV= PKGSRCDIR=${PKGSRCDIR:Q}
DISTVER= ${DISTNAME:S/pkglint-//}
@@ -42,7 +42,7 @@ do-extract:
do-build:
.for FILE in ${SUBST_FILES}
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
- -e 's|@PORTSDIR@|${_PKGSRCDIR}|g' \
+ -e 's|@PORTSDIR@|${PKGSRCDIR}|g' \
-e 's|@DISTVER@|${DISTVER}|g' \
-e 's|@MAKE@|${MAKE}|g' \
-e 's|@PERL@|${PERL5}|g' \
diff --git a/print/ja-ptex-bin/Makefile b/print/ja-ptex-bin/Makefile
index 541f3053536..ec4fe1134b7 100644
--- a/print/ja-ptex-bin/Makefile
+++ b/print/ja-ptex-bin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2004/05/23 15:09:06 heinz Exp $
+# $NetBSD: Makefile,v 1.13 2004/10/07 02:01:38 jlam Exp $
DISTNAME= ptex-src-${PTEX_VERS}
PKGNAME= ja-ptex-bin-${PTEX_VERS}
@@ -37,7 +37,7 @@ DF_TETEX_BIN= tetex-src-${TETEX_BIN_VERS}${EXTRACT_SUFX}
DF_DVIPSK_PATCH= dvipsk-jpatch-${DVIPSK_PATCH_VERS}${EXTRACT_SUFX}
DF_MENDEXK= mendexk${MENDEXK_VERS}${EXTRACT_SUFX}
-WRKDIR_= ${_PKGSRCDIR}/print/teTeX-bin/${WRKDIR:T}
+WRKDIR_= ${PKGSRCDIR}/print/teTeX-bin/${WRKDIR:T}
TETEX_DIR= ${WRKDIR_}/tetex-src-${TETEX_BIN_VERS}
WRKSRC= ${TETEX_DIR}
WRKSRC_PTEX= ${WRKSRC}/texk/web2c/${DISTNAME:S/-src//}
diff --git a/print/texfamily/Makefile b/print/texfamily/Makefile
index 76ed3e8bed6..12879195dea 100644
--- a/print/texfamily/Makefile
+++ b/print/texfamily/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2004/05/23 15:09:06 heinz Exp $
+# $NetBSD: Makefile,v 1.9 2004/10/07 02:01:38 jlam Exp $
DISTNAME= TeXfamily-1.2.1
PKGREVISION= 5
@@ -31,7 +31,7 @@ DEPENDS+= TeXfamily-share>=1.2.1nb3:../../print/texfamily-share
DEPENDS+= ja-vflib-lib-[0-9]*:../../print/ja-vflib-lib
DIST_SUBDIR= TeXfamily
-TETEX_DIR= ${_PKGSRCDIR}/print/teTeX1-bin/${WRKDIR:T}/teTeX-1.0
+TETEX_DIR= ${PKGSRCDIR}/print/teTeX1-bin/${WRKDIR:T}/teTeX-1.0
WRKSRC= ${TETEX_DIR}
EXTRACT_ONLY= # none
diff --git a/security/audit-packages/Makefile b/security/audit-packages/Makefile
index b5f35c580e5..c4a629b1ff4 100644
--- a/security/audit-packages/Makefile
+++ b/security/audit-packages/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2004/06/06 08:28:54 agc Exp $
+# $NetBSD: Makefile,v 1.50 2004/10/07 02:01:38 jlam Exp $
DISTNAME= audit-packages-1.32
CATEGORIES= security pkgtools
@@ -27,7 +27,7 @@ do-build:
-e 's|@AWK@|${AWK}|g' \
-e 's|@FETCH_CMD@|${FETCH_CMD}|g' \
-e 's|@FETCH_CMD_SHORT@|${FETCH_CMD:T}|g' \
- -e 's|@PKGSRCDIR@|${_PKGSRCDIR}|g' \
+ -e 's|@PKGSRCDIR@|${PKGSRCDIR}|g' \
-e 's|@PKG_TOOLS_BIN@|${PKG_TOOLS_BIN}|g' \
-e 's|@SH@|${SH}|g' \
-e 's|@DIGEST@|${DIGEST}|g' \