From owner-freebsd-bugs Mon Jul 1 8:20:14 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E63A337B400 for ; Mon, 1 Jul 2002 08:20:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A448043E1A for ; Mon, 1 Jul 2002 08:20:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g61FK5JU051536 for ; Mon, 1 Jul 2002 08:20:05 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g61FK55d051535; Mon, 1 Jul 2002 08:20:05 -0700 (PDT) Date: Mon, 1 Jul 2002 08:20:05 -0700 (PDT) Message-Id: <200207011520.g61FK55d051535@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: misc/39765: bsd.incs.mk, INCDIR or INCSDIR ? Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/39765; it has been noted by GNATS. From: Ruslan Ermilov To: Ying-Chieh Liao Cc: bug-followup@FreeBSD.org Subject: Re: misc/39765: bsd.incs.mk, INCDIR or INCSDIR ? Date: Mon, 1 Jul 2002 18:16:34 +0300 On Mon, Jun 24, 2002 at 03:18:40PM +0800, Ying-Chieh Liao wrote: > > ports/graphics/libmng uses bsd.lib.mk, which uses bsd.incs.mk > if we use INCDIR to specify where to install include files > stable will install them into /usr/local/include <- correct > but current installs into /usr/include > if we use INCSDIR , > stable will install them into /usr/include > but current installs into /usr/local/include <- correct > Here's the technique we used with many similar ports: %%% Index: Makefile.bsd =================================================================== RCS file: /home/ncvs/ports/graphics/libmng/files/Makefile.bsd,v retrieving revision 1.4 diff -u -r1.4 Makefile.bsd --- Makefile.bsd 16 Jul 2001 21:23:11 -0000 1.4 +++ Makefile.bsd 1 Jul 2002 15:14:12 -0000 @@ -11,7 +11,8 @@ CFLAGS+= -I${INCDIR} -DMNG_FULL_CMS INCS= libmng.h libmng_conf.h libmng_types.h -INCDIR= ${LOCALBASE}/include +INCSDIR= ${LOCALBASE}/include +INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk LIBDIR= ${LOCALBASE}/lib .include %%% Cheers, -- Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message