Subject: Re: cdrecord?
To: Erik Bertelsen <erik@mediator.uni-c.dk>
From: SUNAGAWA Keiki <Keiki_SUNAGAWA@yokogawa.co.jp>
List: tech-pkg
Date: 03/10/2000 08:53:17
Hi,

Erik Bertelsen <erik@mediator.uni-c.dk> wrote:

Erik> If I softlink macppc-netbsd-cc to powerpc-netbsd-cc in
Erik> the OBJ directories, the installation can complete.

Apply this patch to pkgsrc Makefile and create new patch
file patch-af.  `make install' was ok on macppc and sparc,
but I didn't have time to check if it runs correctly last
night.

--
SUNAGAWA Keiki <Keiki_SUNAGAWA@yokogawa.co.jp>


Index: Makefile
===================================================================
RCS file: /usr/pkgsrc/sysutils/cdrecord/Makefile,v
retrieving revision 1.27
diff -c -r1.27 Makefile
*** Makefile	2000/03/03 15:22:15	1.27
--- Makefile	2000/03/09 14:07:56
***************
*** 12,18 ****
  USE_GMAKE=	yes
  
  WRKSRC=		${WRKDIR}/${DISTNAME:C/a.*//}
! TARGET_ARCH=	${MACHINE}-netbsd-cc
  TARGET_DIR=	OBJ/${TARGET_ARCH}
  
  post-configure:
--- 12,18 ----
  USE_GMAKE=	yes
  
  WRKSRC=		${WRKDIR}/${DISTNAME:C/a.*//}
! TARGET_ARCH=	${MACHINE_ARCH}-netbsd-cc
  TARGET_DIR=	OBJ/${TARGET_ARCH}
  
  post-configure:


===========

$NetBSD$

--- RULES/mk-gmake.id.orig	Thu Mar  9 22:36:18 2000
+++ RULES/mk-gmake.id	Thu Mar  9 22:36:52 2000
@@ -41,7 +41,7 @@
 _ARCHCMD=	(arch || /usr/ucb/arch || true)	2> /dev/null
 
 XP_ARCH:=	$(shell $(_MACHCMD) | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')
-XK_ARCH:=	$(shell uname -m    | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')
+XK_ARCH:=	$(shell uname -p    | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')
 XM_ARCH:=	$(shell $(_ARCHCMD) | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')
 
 P_ARCH=		$(XP_ARCH)