FreeBSD Bugzilla – Attachment 133593 Details for
Bug 178072
[PATCH] [bsd.port.mk] look for Makefile.local in ${PORTSDIR} as well as ${.CURDIR}
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
search-for-Makefile.local-in-PORTSDIR.patch.txt
search-for-Makefile.local-in-PORTSDIR.patch.txt (text/plain), 1.14 KB, created by
Garrett Cooper
on 2013-04-23 23:56:54 UTC
(
hide
)
Description:
search-for-Makefile.local-in-PORTSDIR.patch.txt
Filename:
MIME Type:
Creator:
Garrett Cooper
Created:
2013-04-23 23:56:54 UTC
Size:
1.14 KB
patch
obsolete
>Index: Mk/bsd.port.mk >=================================================================== >--- Mk/bsd.port.mk (revision 316288) >+++ Mk/bsd.port.mk (working copy) >@@ -1260,10 +1260,16 @@ > USE_SUBMAKE= yes > .endif > >-.if exists(${MASTERDIR}/Makefile.local) >-.include "${MASTERDIR}/Makefile.local" >+__dirs= ${.CURDIR} >+.if ${PORTSDIR} != ${.CURDIR} >+__dirs+= ${PORTSDIR} >+.endif >+.for d in ${__dirs} >+.if exists($d/Makefile.local) >+.include "$d/Makefile.local" > USE_SUBMAKE= yes > .endif >+.endfor > > # where 'make config' records user configuration options > PORT_DBDIR?= /var/db/ports >Index: Mk/bsd.port.subdir.mk >=================================================================== >--- Mk/bsd.port.subdir.mk (revision 316288) >+++ Mk/bsd.port.subdir.mk (working copy) >@@ -155,9 +155,15 @@ > INDEXFILE?= INDEX-${OSVERSION:C/([0-9]*)[0-9]{5}/\1/} > > # local customization of the ports tree >-.if exists(${.CURDIR}/Makefile.local) >-.include "${.CURDIR}/Makefile.local" >+__dirs= ${.CURDIR} >+.if ${PORTSDIR} != ${.CURDIR} >+__dirs+= ${PORTSDIR} > .endif >+.for d in ${__dirs} >+.if exists($d/Makefile.local) >+.include "$d/Makefile.local" >+.endif >+.endfor > > TARGETS+= all > TARGETS+= build
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 178072
:
133592
| 133593