summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-01-27 04:16:47 +0000
committertv <tv@pkgsrc.org>2005-01-27 04:16:47 +0000
commit974ce33409fff361ca7b297ec815df3fc0be45cb (patch)
treee2af828ce911dfb60ef7fc53477fbe06f6d1e56a /mk/bsd.prefs.mk
parent0c5b9bca97fe12b03f08f8fe37882d6913385d19 (diff)
downloadpkgsrc-974ce33409fff361ca7b297ec815df3fc0be45cb.tar.gz
Cleanup: wrapper-defs.mk is no longer optional; remove its conditional.
(...and if it were optional, it should have been an .sinclude anyway.) Sanity: If mk/platform/${OPSYS}.mk is missing, don't assume NetBSD is it. pkgsrc now depends on a valid platform file for an OS, so require it. (Still includes NetBSD.mk, but sets PKG_FAIL_REASON.)
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk9
1 files changed, 4 insertions, 5 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index c283dc1e57a..c78988bee8a 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.178 2005/01/27 04:05:08 tv Exp $
+# $NetBSD: bsd.prefs.mk,v 1.179 2005/01/27 04:16:47 tv Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -280,8 +280,9 @@ SHAREMODE?= ${DOCMODE}
# 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)
+.else
. include "${_PKGSRC_TOPDIR}/mk/platform/NetBSD.mk"
+PKG_FAIL_REASON+= "missing mk/platform/${OPSYS}.mk"
.endif
PKGDIRMODE?= 755
@@ -540,8 +541,6 @@ PKG_OPTIONS?= # empty
PREPEND_PATH+= ${LOCALBASE}/bin ${USE_IMAKE:D${X11BASE}/bin}
# Wrapper framework definitions
-.if exists(${PKGSRCDIR}/mk/wrapper/wrapper-defs.mk)
-. include "${PKGSRCDIR}/mk/wrapper/wrapper-defs.mk"
-.endif
+.include "${PKGSRCDIR}/mk/wrapper/wrapper-defs.mk"
.endif # BSD_PKG_MK