From 556ee55ca31ec5da1c84de6cd8a99550d5185aa3 Mon Sep 17 00:00:00 2001 From: bapt Date: Wed, 8 Oct 2014 17:11:52 +0000 Subject: Check CATEGORIES sanity directly from bsd.sanity.mk Differential Revision: https://reviews.freebsd.org/D917 Reviewed by: bdrewery --- Mk/bsd.sanity.mk | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Mk/bsd.sanity.mk') diff --git a/Mk/bsd.sanity.mk b/Mk/bsd.sanity.mk index 12c271d6b7b2..5ae8c237662c 100644 --- a/Mk/bsd.sanity.mk +++ b/Mk/bsd.sanity.mk @@ -7,6 +7,15 @@ WARNING+= "WITHOUT_NLS is deprecated use OPTIONS_UNSET=NLS instead" .endif +.if defined(PKGORIGIN) +.for _c in ${CATEGORIES} +_CAT?= ${_c} +.endfor +.if ${.CURDIR:H:T} != ${_CAT} +DEV_ERROR+= "The first entry in CATEGORIES should be the directory where the port lives" +.endif +.endif + #.if defined(WITHOUT_X11) #WARNING+= "WITHOUT_X11 is deprecated use X11 option instead" #.endif -- cgit