Date: Mon, 4 Nov 2002 13:54:32 -0800 (PST) From: DougB@FreeBSD.org To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/44895: I need MANPREFIX defined in MAKE_ENV Message-ID: <200211042154.gA4LsWC9043797@12-234-90-219.client.attbi.com>
next in thread | raw e-mail | index | archive | help
>Number: 44895 >Category: ports >Synopsis: I need MANPREFIX defined in MAKE_ENV >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Nov 04 14:00:04 PST 2002 >Closed-Date: >Last-Modified: >Originator: Doug >Release: FreeBSD 4.7-STABLE i386 >Organization: AAAG >Environment: System: Ports >Description: I recently created a patch for bsd.port.mk that properly defines MANPREFIX when PREFIX = /usr. However, when I started using it in my ports, I noticed it wasn't defined in MAKE_ENV, so I have to add 'MAKE_ENV+= MANPREFIX=${MANPREFIX}' in my port's Makefile. The attached patch solves this issue. The reason I think this is worth putting in bsd.port.mk is that some of us are working on more ports that replace functionality in the base system, so being able to use this transparently would be quite convenient. I also think that other ports would probably benefit. >How-To-Repeat: Define PREFIX=/usr, and attempt to use MANPREFIX in your port. >Fix: Apply the following patch: Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.416 diff -u -r1.416 bsd.port.mk --- bsd.port.mk 28 Jun 2002 12:20:03 -0000 1.416 +++ bsd.port.mk 1 Jul 2002 04:23:27 -0000 @@ -1101,7 +1101,7 @@ MAKE_FLAGS?= -f MAKEFILE?= Makefile -MAKE_ENV+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MOTIFLIB="${MOTIFLIB}" LIBDIR="${LIBDIR}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" +MAKE_ENV+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MOTIFLIB="${MOTIFLIB}" LIBDIR="${LIBDIR}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" MANPREFIX="${MANPREFIX}" .if ${OSVERSION} < 500016 PTHREAD_CFLAGS= -D_THREAD_SAFE >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211042154.gA4LsWC9043797>