Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151034481
D796.id1684.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D796.id1684.diff
View Options
Index: share/mk/bsd.port.mk
===================================================================
--- share/mk/bsd.port.mk
+++ share/mk/bsd.port.mk
@@ -1,6 +1,20 @@
# $FreeBSD$
-PORTSDIR?= /usr/ports
+.if !defined(PORTSDIR)
+PORTSDIR!= while :; do \
+ curdir=`pwd`; \
+ if [ -f "Mk/bsd.port.mk" ]; then \
+ echo $$curdir; \
+ break; \
+ fi; \
+ if [ "$$curdir" = "/" ]; then \
+ echo "/usr/ports"; \
+ break; \
+ fi; \
+ cd ..; \
+ done
+.endif
+
BSDPORTMK?= ${PORTSDIR}/Mk/bsd.port.mk
# Needed to keep bsd.own.mk from reading in /etc/src.conf
Index: share/mk/bsd.port.subdir.mk
===================================================================
--- share/mk/bsd.port.subdir.mk
+++ share/mk/bsd.port.subdir.mk
@@ -1,6 +1,20 @@
# $FreeBSD$
-PORTSDIR?= /usr/ports
+.if !defined(PORTSDIR)
+PORTSDIR!= while :; do \
+ curdir=`pwd`; \
+ if [ -f "Mk/bsd.port.mk" ]; then \
+ echo $$curdir; \
+ break; \
+ fi; \
+ if [ "$$curdir" = "/" ]; then \
+ echo "/usr/ports"; \
+ break; \
+ fi; \
+ cd ..; \
+ done
+.endif
+
BSDPORTSUBDIRMK?= ${PORTSDIR}/Mk/bsd.port.subdir.mk
.include "${BSDPORTSUBDIRMK}"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 2:06 PM (9 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30975004
Default Alt Text
D796.id1684.diff (1 KB)
Attached To
Mode
D796: Root the lib32 object tree under the overall object tree.
Attached
Detach File
Event Timeline
Log In to Comment