summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-07-30 10:31:20 +0000
committerjlam <jlam@pkgsrc.org>2003-07-30 10:31:20 +0000
commitca8050d834da261fa32e35c8ddd79320ae773a0c (patch)
tree904103feb710eeeb1757abd27d334238627104a1
parentd4811d62c791d77b1bb318f1f15d1950ecc26b75 (diff)
downloadpkgsrc-ca8050d834da261fa32e35c8ddd79320ae773a0c.tar.gz
If a HEADER file exists in the package directory, then assume it's meant
for the HEADER_EXTRA_TMPL variable.
-rw-r--r--mk/bsd.pkg.install.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk
index 3ee014c195e..8d40a609be6 100644
--- a/mk/bsd.pkg.install.mk
+++ b/mk/bsd.pkg.install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.install.mk,v 1.41 2003/07/30 10:27:05 jlam Exp $
+# $NetBSD: bsd.pkg.install.mk,v 1.42 2003/07/30 10:31:20 jlam Exp $
#
# This Makefile fragment is included by package Makefiles to use the common
# INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply:
@@ -25,7 +25,11 @@ INSTALL_FILE= ${WRKDIR}/.INSTALL
# install/deinstall logic.
#
_HEADER_TMPL?= ${.CURDIR}/../../mk/install/header
+.if !defined(HEADER_EXTRA_TMPL) && exists(${.CURDIR}/HEADER)
+HEADER_EXTRA_TMPL?= ${.CURDIR}/HEADER
+.else
HEADER_EXTRA_TMPL?= # empty
+.endif
.if !defined(DEINSTALL_EXTRA_TMPL) && exists(${.CURDIR}/DEINSTALL)
DEINSTALL_EXTRA_TMPL?= ${.CURDIR}/DEINSTALL
.else