pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk PKGNAME_NOREV is used to define the DIST_SUBDIR in ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9a5b959fed88
branches: trunk
changeset: 542621:9a5b959fed88
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri May 23 12:31:24 2008 +0000
description:
PKGNAME_NOREV is used to define the DIST_SUBDIR in some places, so
ensure it is defined with the rest of the PKGNAME_* variables before
including the phase variable files.
diffstat:
mk/bsd.pkg.mk | 50 +++++++++++++++++++++++++++++++-------------------
1 files changed, 31 insertions(+), 19 deletions(-)
diffs (71 lines):
diff -r c20f0717199b -r 9a5b959fed88 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Thu May 22 22:56:33 2008 +0000
+++ b/mk/bsd.pkg.mk Fri May 23 12:31:24 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1943 2008/05/22 16:27:22 joerg Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1944 2008/05/23 12:31:24 joerg Exp $
#
# This file is in the public domain.
#
@@ -21,6 +21,36 @@
.include "misc/common.mk"
+############################################################################
+# Transform package Makefile variables and set defaults
+# This is the early set used directly or indirectly in
+# the phase variables.
+############################################################################
+
+##### PKGBASE, PKGNAME[_NOREV], PKGVERSION
+
+PKGBASE?= ${PKGNAME:C/-[^-]*$//}
+PKGVERSION?= ${PKGNAME:C/^.*-//}
+PKGVERSION?= ${PKGNAME:C/^.*-//}
+.if defined(PKGREVISION) && !empty(PKGREVISION) && (${PKGREVISION} != "0")
+. if defined(PKGNAME)
+PKGNAME_NOREV:= ${PKGNAME}
+PKGNAME:= ${PKGNAME}nb${PKGREVISION}
+. else
+PKGNAME?= ${DISTNAME}nb${PKGREVISION}
+PKGNAME_NOREV= ${DISTNAME}
+. endif
+.else
+PKGNAME?= ${DISTNAME}
+PKGNAME_NOREV= ${PKGNAME}
+.endif
+PKGVERSION_NOREV= ${PKGNAME_NOREV:C/^.*-//}
+
+####
+
+############################################################################
+# Allow various phases to define the default variables
+############################################################################
.if defined(EMUL_PLATFORMS) && !empty(EMUL_PLATFORMS)
. include "emulator/emulator.mk"
.endif
@@ -57,24 +87,6 @@
ACCEPTABLE_LICENSES= ${ACCEPTABLE_LICENCES}
.endif
-##### PKGBASE, PKGNAME[_NOREV], PKGVERSION
-
-PKGBASE?= ${PKGNAME:C/-[^-]*$//}
-PKGVERSION?= ${PKGNAME:C/^.*-//}
-PKGVERSION?= ${PKGNAME:C/^.*-//}
-.if defined(PKGREVISION) && !empty(PKGREVISION) && (${PKGREVISION} != "0")
-. if defined(PKGNAME)
-PKGNAME_NOREV:= ${PKGNAME}
-PKGNAME:= ${PKGNAME}nb${PKGREVISION}
-. else
-PKGNAME?= ${DISTNAME}nb${PKGREVISION}
-PKGNAME_NOREV= ${DISTNAME}
-. endif
-.else
-PKGNAME?= ${DISTNAME}
-PKGNAME_NOREV= ${PKGNAME}
-.endif
-PKGVERSION_NOREV= ${PKGNAME_NOREV:C/^.*-//}
# A meta-package is a package that does not have any files and whose
# only purpose is to depend on other packages, giving that collection
Home |
Main Index |
Thread Index |
Old Index