pkgsrc/archivers/star/patches/patch-aa
cjep c49fd74723 Make this package build on arm. The same principle should apply to
other CPU families, but I haven't tested those.
2002-09-25 06:35:48 +00:00

19 lines
555 B
Text

$NetBSD: patch-aa,v 1.1 2002/09/25 06:35:49 cjep Exp $
--- RULES/mk-gmake.id.orig Sun Dec 6 12:51:19 1998
+++ RULES/mk-gmake.id Tue Sep 24 21:07:24 2002
@@ -44,8 +44,14 @@
XK_ARCH:= $(shell uname -m | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')
XM_ARCH:= $(shell $(_ARCHCMD) | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')
+__OS:= $(shell uname -s)
+
P_ARCH= $(XP_ARCH)
+ifeq ($(__OS),NetBSD)
+K_ARCH= $(XP_ARCH)
+else
K_ARCH= $(XK_ARCH)
+endif
M_ARCH= $(XM_ARCH)
_XP_ARCH= $(XP_ARCH:unknown=$(K_ARCH))