From owner-freebsd-ports Sat Dec 16 15:42:30 2000 From owner-freebsd-ports@FreeBSD.ORG Sat Dec 16 15:42:27 2000 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 2128037B400 for ; Sat, 16 Dec 2000 15:42:27 -0800 (PST) Received: from bonsai.knology.net (user-24-214-88-8.knology.net [24.214.88.8]) by mail.hiwaay.net (8.11.0/8.11.0) with ESMTP id eBGNgPu03699 for ; Sat, 16 Dec 2000 17:42:25 -0600 (CST) Received: (from steve@localhost) by bonsai.knology.net (8.11.1/8.11.1) id eBGNgPL12454 for ports@freebsd.org; Sat, 16 Dec 2000 17:42:25 -0600 (CST) (envelope-from steve) Date: Sat, 16 Dec 2000 17:42:24 -0600 From: Steve Price To: ports@freebsd.org Subject: bsd.port.mk patch for NOPORTDOCS Message-ID: <20001216174224.R54249@bonsai.knology.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 4.2-STABLE i386 Sender: steve@hiwaay.net Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org What are people's thoughts on including something like the following patch in bsd.port.mk? It moves the same 5 lines that are repeated in a lot of our port's Makefiles to bsd.port.mk so that we don't have to keep duplicating them. -steve Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.360 diff -u -r1.360 bsd.port.mk --- bsd.port.mk 2000/11/16 13:06:25 1.360 +++ bsd.port.mk 2000/12/16 23:36:07 @@ -739,6 +739,12 @@ PLIST_SUB+= OSREL=${OSREL} PREFIX=%D LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} +.if defined(NOPORTDOCS) +PLIST_SUB+= PORTDOCS="@comment " +.else +PLIST_SUB+= PORTDOCS="" +.endif + CONFIGURE_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT} SCRIPTS_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT} MAKE_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT} To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message