summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg>2007-07-17 09:20:18 +0000
committerjoerg <joerg>2007-07-17 09:20:18 +0000
commit4fc57b98c771a72dd74504ae4706e0866d2f3402 (patch)
tree4ee6ffbd73448562750c27ce7c3eae26c59b4d7e
parent3083b5d1fd68d74c0362b1fc42e9a6a98f1159cb (diff)
downloadpkgsrc-4fc57b98c771a72dd74504ae4706e0866d2f3402.tar.gz
Drop trailing components like -RELEASE for FreeBSD like we do for
DragonFly. This fixes the version number of lsof as side effect.
-rw-r--r--mk/bsd.prefs.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 4c387094933..f131d435532 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.251 2007/05/29 14:48:49 rillig Exp $
+# $NetBSD: bsd.prefs.mk,v 1.252 2007/07/17 09:20:18 joerg Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -129,6 +129,7 @@ MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q}
LOWER_VENDOR?= pc
.elif ${OPSYS} == "FreeBSD"
+OS_VERSION:= ${OS_VERSION:C/-.*$//}
LOWER_OPSYS?= freebsd
LOWER_ARCH!= ${UNAME} -p
. if ${LOWER_ARCH} == "amd64"