summaryrefslogtreecommitdiff
path: root/sysutils/gworkspace/Makefile
diff options
context:
space:
mode:
authorjmc <jmc@pkgsrc.org>2003-03-07 07:34:43 +0000
committerjmc <jmc@pkgsrc.org>2003-03-07 07:34:43 +0000
commit8c2aead1de424c7d1a12b5cc9a61b41620420087 (patch)
tree5acfb08562b4bf568b13358d5e78c1f4cf8316fd /sysutils/gworkspace/Makefile
parenta0020ab00f68b3753637f348be72ab037bfee9ef (diff)
downloadpkgsrc-8c2aead1de424c7d1a12b5cc9a61b41620420087.tar.gz
Provide a PLIST_SUBST pattern for the machine specific directory installs
Diffstat (limited to 'sysutils/gworkspace/Makefile')
-rw-r--r--sysutils/gworkspace/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/sysutils/gworkspace/Makefile b/sysutils/gworkspace/Makefile
index ef0b4954cdd..55dfb6b1447 100644
--- a/sysutils/gworkspace/Makefile
+++ b/sysutils/gworkspace/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2002/09/28 02:19:51 rh Exp $
+# $NetBSD: Makefile,v 1.2 2003/03/07 07:34:43 jmc Exp $
#
.include "Makefile.common"
@@ -8,5 +8,17 @@ COMMENT= GNUstep Workspace manager
pre-install:
${CP} ${FILESDIR}/GNUmakefile ${WRKSRC}/GWLib
+#
+# Gnustep seems to use it's own idea of architecture names and at least for
+# i386 is using ix86. For other archs default for MACHINE_ARCH.
+# Tested specifically on x86 and powerpc
+.if (${MACHINE_ARCH} == "i386")
+PLIST_SUBST+= ARCH="ix86"
+PLIST_SUBST+= ARCH_LOC="ix86/${LOWER_OPSYS}elf"
+.else
+PLIST_SUBST+= ARCH="${MACHINE_ARCH}"
+PLIST_SUBST+= ARCH_LOC="${MACHINE_ARCH}/${LOWER_OPSYS}"
+.endif
+
.include "../../sysutils/GWLib/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"