summaryrefslogtreecommitdiff
path: root/parallel/sge
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-04-28 23:17:53 +0000
committerjlam <jlam@pkgsrc.org>2005-04-28 23:17:53 +0000
commit7c4f04bbef2ef6c393179bc18ef2771811849d46 (patch)
tree3b408a3a3e9c5ccf508c0773e2f9ec765705b8bc /parallel/sge
parentc58b011808fe326dcd96025903bf6b0a84c57a6d (diff)
downloadpkgsrc-7c4f04bbef2ef6c393179bc18ef2771811849d46.tar.gz
Avoid using != to define some variables .. just use :sh instead to defer
evaluation until the make targets are invoked. This avoids needing ${ECHO} and ${TR} in the top-level make.
Diffstat (limited to 'parallel/sge')
-rw-r--r--parallel/sge/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/parallel/sge/Makefile b/parallel/sge/Makefile
index 64339b0a271..4ea7728fc67 100644
--- a/parallel/sge/Makefile
+++ b/parallel/sge/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2005/04/11 21:47:04 tv Exp $
+# $NetBSD: Makefile,v 1.7 2005/04/28 23:17:53 jlam Exp $
#
DISTNAME= sge-5.3p6
@@ -44,14 +44,15 @@ CONFIG_SUB_OVERRIDE= source/3rdparty/qmake/config.sub \
# SGE_ARCH should match the putput of ${WRKSRC}/source/dist/util/arch
# SGE_BUILDARCH should match whats in ${WRKSRC}/source/aimk
-UPPER_OPSYS!= ${ECHO} "${OPSYS}" | ${TR} a-z A-Z
+UPPER_OPSYS_cmd= ${ECHO} "${OPSYS}" | ${TR} a-z A-Z
+UPPER_OPSYS= ${UPPER_OPSYS_cmd:sh}
.if ${OPSYS} == "NetBSD"
SGE_ARCH= nbsd-${MACHINE_ARCH}
-SGE_BUILDARCH!= ${ECHO} "${OPSYS}_${MACHINE_ARCH}" | ${TR} a-z A-Z
+SGE_BUILDARCH_cmd= ${ECHO} "${OPSYS}_${MACHINE_ARCH}" | ${TR} a-z A-Z
.elif ${OPSYS} == "FreeBSD"
SGE_ARCH= fbsd-${MACHINE_ARCH}
-SGE_BUILDARCH!= ${ECHO} "${OPSYS}_${MACHINE_ARCH}" | ${TR} a-z A-Z
+SGE_BUILDARCH_cmd= ${ECHO} "${OPSYS}_${MACHINE_ARCH}" | ${TR} a-z A-Z
.elif ${OPSYS} == "SunOS"
. if ${MACHINE_ARCH} == "i386"
SGE_ARCH= solaris86
@@ -63,13 +64,14 @@ SGE_ARCH= solaris64
SGE_ARCH= solaris
. endif
. endif
-SGE_BUILDARCH!= ${ECHO} "${SGE_ARCH}" | ${TR} a-z A-Z
+SGE_BUILDARCH_cmd= ${ECHO} "${SGE_ARCH}" | ${TR} a-z A-Z
.elif ${OPSYS} == "Darwin"
SGE_ARCH= darwin
SGE_BUILDARCH= DARWIN
.else
PKG_FAIL_REASON= "SGE_ARCH and SGE_BUILDARCH need to be confgured for your OS"
.endif
+SGE_BUILDARCH?= ${SGE_BUILDARCH_cmd:sh}
LDFLAGS+= -R${SGE_ROOT}/lib/${SGE_ARCH}
BUILDLINK_PASSTHRU_RPATHDIRS+= ${SGE_ROOT}/lib/${SGE_ARCH}