Subject: [patch] sysutils/dvd+rw-tools needs gmake on linux-i386
To: None <pkgsrc-users@netbsd.org>
From: Csaba Henk <csaba-ml@creo.hu>
List: pkgsrc-users
Date: 08/15/2006 19:57:51
Hi,

dvd+rw-tools generates an OS specific makefile via m4 macros (the toplevel
Makefile invokes "m4 -DOS=`uname -s` Makefile.m4 | make").
The one generated for linux is for gmake, and is not consumable by bmake.
The following patch seems to make it work:

##################################################################
--- sysutils/dvd+rw-tools/Makefile.orig	2006-08-15 21:50:17.000000000 +0200
+++ sysutils/dvd+rw-tools/Makefile	2006-08-15 21:50:01.000000000 +0200
@@ -24,6 +24,12 @@
 
 LDFLAGS.NetBSD+=	-lrt # sem_* functions
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Linux"
+USE_TOOLS+=		gmake
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/growisofs ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/growisofs.1 ${PREFIX}/man/man1
##################################################################

Csaba