diff options
author | richard <richard@pkgsrc.org> | 2013-10-16 16:47:29 +0000 |
---|---|---|
committer | richard <richard@pkgsrc.org> | 2013-10-16 16:47:29 +0000 |
commit | d7334db97d532abd7b7ef2cf8b741436152ace53 (patch) | |
tree | ae33b10f080ff7ed7bdb5aa7af7e549d186243a3 /lang/sun-jre7/builtin.mk | |
parent | bcb950d2d60a36d6059f9bf23d8e3a33c77599e4 (diff) | |
download | pkgsrc-d7334db97d532abd7b7ef2cf8b741436152ace53.tar.gz |
improve builtin versioning and update BUILDLINK_JAVA_PREFIX accordingly for sun-jre7
Diffstat (limited to 'lang/sun-jre7/builtin.mk')
-rw-r--r-- | lang/sun-jre7/builtin.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lang/sun-jre7/builtin.mk b/lang/sun-jre7/builtin.mk index 94b449f39d5..394914bedad 100644 --- a/lang/sun-jre7/builtin.mk +++ b/lang/sun-jre7/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.1 2012/12/11 14:47:17 ryoon Exp $ +# $NetBSD: builtin.mk,v 1.2 2013/10/16 16:47:29 richard Exp $ BUILTIN_PKG:= sun-jre7 @@ -30,8 +30,9 @@ MAKEVARS+= IS_BUILTIN.sun-jre7 !empty(IS_BUILTIN.sun-jre7:M[yY][eE][sS]) && \ empty(JAVAVM7:M__nonexistent__) -BUILTIN_VERSION.sun-jre7!= ${JAVAVM7}/bin/java -version 2>&1 | ${HEAD} -1 | \ - ${AWK} -F \" '{print $$2}' | ${AWK} -F _ '{print $$1}' +BUILTIN_VERSION.sun-jre7!= ${JAVAVM7}/bin/java -version 2>&1 | \ + ${AWK} -F \" '{print $$2; exit}' | \ + ${AWK} '{sub(/^1\./,"");sub(/_/,".");print $$1}' BUILTIN_PKG.sun-jre7= sun-jre7-${BUILTIN_VERSION.sun-jre7} .endif |