diff options
author | linimon <linimon@FreeBSD.org> | 2011-07-21 13:04:39 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2011-07-21 13:04:39 +0800 |
commit | fded8db6f266115a56d1376a8988ad6ce99df554 (patch) | |
tree | 5ff7d98e1194fc133d7e4b9827a369a282ed7093 /Mk/bsd.port.subdir.mk | |
parent | b52944915a792d1df1b4539b6ffef32bb06c623c (diff) | |
download | freebsd-ports-gnome-fded8db6f266115a56d1376a8988ad6ce99df554.tar.gz freebsd-ports-gnome-fded8db6f266115a56d1376a8988ad6ce99df554.tar.zst freebsd-ports-gnome-fded8db6f266115a56d1376a8988ad6ce99df554.zip |
Fix INDEXFILE for upcoming 10.0 branch.
PR: ports/158750
Submitted by: crees
Tested on: pointyhat-west
Diffstat (limited to 'Mk/bsd.port.subdir.mk')
-rw-r--r-- | Mk/bsd.port.subdir.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk index 0456e41e01da..556e9e543fa0 100644 --- a/Mk/bsd.port.subdir.mk +++ b/Mk/bsd.port.subdir.mk @@ -70,8 +70,8 @@ ARCH!= ${UNAME} -p .if !defined(OSVERSION) .if exists(/usr/include/sys/param.h) OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < /usr/include/sys/param.h -.elif exists(/usr/src/sys/sys/param.h) -OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < /usr/src/sys/sys/param.h +.elif exists(${SRC_BASE}/sys/sys/param.h) +OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${SRC_BASE}/sys/sys/param.h .else OSVERSION!= ${SYSCTL} -n kern.osreldate .endif @@ -144,7 +144,7 @@ PKGINSTALLVER!= ${PKG_INFO} -P 2>/dev/null | ${SED} -e 's/.*: //' .endif INDEXDIR?= ${PORTSDIR} -INDEXFILE?= INDEX-${OSVERSION:C/([0-9]).*/\1/} +INDEXFILE?= INDEX-${OSVERSION:C/([0-9]*)[0-9]{5}/\1/} # local customization of the ports tree .if exists(${.CURDIR}/Makefile.local) |