sysutils/dvd+rw-tools: Add dports patches for dragonfly support
This commit is contained in:
parent
e602d06cfa
commit
41eeb919fb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342814
10
sysutils/dvd+rw-tools/files/patch-Makefile.m4
Normal file
10
sysutils/dvd+rw-tools/files/patch-Makefile.m4
Normal file
@ -0,0 +1,10 @@
|
||||
--- Makefile.m4.orig 2013-01-15 00:37:00.032987000 +0100
|
||||
+++ Makefile.m4 2013-01-15 00:44:01.343576000 +0100
|
||||
@@ -13,6 +13,7 @@
|
||||
ifelse(substr(OS,0,7),[MINGW32],[define([OS],[MINGW32])])
|
||||
ifelse(OS,NetBSD,[define([OS],[BSD])CXXFLAGS+=-D__unix])
|
||||
ifelse(OS,OpenBSD,[define([OS],[BSD])])
|
||||
+ifelse(OS,DragonFly,[define([OS],[BSD])LDLIBS=-lcam])
|
||||
ifelse(OS,FreeBSD,[define([OS],[BSD])LDLIBS=-lcam])
|
||||
ifelse(OS,IRIX64,[define([OS],[IRIX])])
|
||||
|
30
sysutils/dvd+rw-tools/files/patch-growisofs.c
Normal file
30
sysutils/dvd+rw-tools/files/patch-growisofs.c
Normal file
@ -0,0 +1,30 @@
|
||||
--- growisofs.c.orig 2008-03-04 10:15:03.000000000 +0100
|
||||
+++ growisofs.c 2013-01-15 00:53:04.894335000 +0100
|
||||
@@ -409,7 +409,7 @@
|
||||
# define _GNU_SOURCE
|
||||
# endif
|
||||
#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || \
|
||||
- (defined(__APPLE__) && defined(__MACH__))
|
||||
+ (defined(__APPLE__) && defined(__MACH__)) || defined(__DragonFly__)
|
||||
# define off64_t off_t
|
||||
# if !defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) || \
|
||||
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__<1050
|
||||
@@ -995,7 +995,7 @@
|
||||
goto open_rw;
|
||||
}
|
||||
|
||||
-#elif defined(__FreeBSD__)
|
||||
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
|
||||
#include <sys/cdio.h>
|
||||
#include <camlib.h>
|
||||
@@ -2940,7 +2940,9 @@
|
||||
# ifdef __FreeBSD__
|
||||
syscall(SYS_mlockall,3);
|
||||
# else
|
||||
+# if !defined(__DragonFly__)
|
||||
mlockall(MCL_CURRENT|MCL_FUTURE);
|
||||
+# endif
|
||||
# endif
|
||||
} while (0);
|
||||
|
12
sysutils/dvd+rw-tools/files/patch-mp.h
Normal file
12
sysutils/dvd+rw-tools/files/patch-mp.h
Normal file
@ -0,0 +1,12 @@
|
||||
--- mp.h.orig 2008-02-24 18:56:07.000000000 +0100
|
||||
+++ mp.h 2013-01-15 00:54:45.484476000 +0100
|
||||
@@ -46,7 +46,9 @@
|
||||
|
||||
if (pthread_attr_init(&attr)==0 &&
|
||||
pthread_attr_setstacksize(&attr,stack_sz)==0 &&
|
||||
+#if !defined(__DragonFly__)
|
||||
pthread_attr_setscope(&attr,PTHREAD_SCOPE_SYSTEM)==0 &&
|
||||
+#endif
|
||||
pthread_create(&h,&attr,(void *(*)(void *))func,arg)==0 )
|
||||
return (void *)h;
|
||||
|
11
sysutils/dvd+rw-tools/files/patch-transport.hxx
Normal file
11
sysutils/dvd+rw-tools/files/patch-transport.hxx
Normal file
@ -0,0 +1,11 @@
|
||||
--- transport.hxx.orig 2013-01-15 00:38:53.673146000 +0100
|
||||
+++ transport.hxx 2013-01-15 00:39:31.283199000 +0100
|
||||
@@ -483,7 +483,7 @@
|
||||
{ return 1; }
|
||||
};
|
||||
|
||||
-#elif defined(__FreeBSD__)
|
||||
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <camlib.h>
|
Loading…
Reference in New Issue
Block a user