pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

coreclr-git: Improve style



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Thu Jun 16 01:54:30 2016 +0200
Changeset:	d93b4cd33a9e8d3cf917e6c41bfbf274628a1ca5

Modified Files:
	coreclr-git/Makefile

Log Message:
coreclr-git: Improve style

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d93b4cd33a9e8d3cf917e6c41bfbf274628a1ca5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 coreclr-git/Makefile | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diffs:
diff --git a/coreclr-git/Makefile b/coreclr-git/Makefile
index 29862c6..8deceee 100644
--- a/coreclr-git/Makefile
+++ b/coreclr-git/Makefile
@@ -23,9 +23,15 @@ CMAKE_ARGS+=	-DCORECLR_SET_RPATH:BOOL=OFF
 REPLACE_BASH+=	build.sh src/pal/tests/palsuite/runpaltests.sh
 
 CORECLR_PREFIX=	${PREFIX}/CoreCLR
-# XXX 32-bit? Please set ONLY_FOR_PLATFORM and adjust these
-CORECLR_OBJDIR=		${WRKSRC}/bin/obj/${OPSYS}.x64.Debug
-CORECLR_PRODUCTDIR=	${WRKSRC}/bin/Product/${OPSYS}.x64.Debug
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} == "x86_64"
+CORECLR_ARCH=	x64
+.endif
+
+CORECLR_OBJDIR=		${WRKSRC}/bin/obj/${OPSYS}.${CORECLR_ARCH}.Debug
+CORECLR_PRODUCTDIR=	${WRKSRC}/bin/Product/${OPSYS}.${CORECLR_ARCH}.Debug
 
 # Handle subprefix
 LDFLAGS+=	${COMPILER_RPATH_FLAG}${CORECLR_PREFIX:Q}


Home | Main Index | Thread Index | Old Index