forked from Lainports/freebsd-ports
This is a partial revert of commit 60955c0a09 which removed transcode
and ports depending on it for not building with -fno-common.
multimedia/transcode: Revert removal of port
The transcode port has been fixed to build with -fno-common by adding
1 "extern" and 3 "static" keywords to prevent some global symbols to
be defined in multiple files that are linked into one binary.
While here fix a few issues reported by "make stage-qa".
multimedia/dvdrip: remove DEPRECATED
multimedia/mkxvcd: remove DEPRECATED
multimedia/subtitleripper: remove DEPRECATED
While here add TIMESTAMP to distinfo of these ports and make portlint
and portclippy happy.
multimedia/transcode: Add TIMESTAMP to distinfo
33 lines
1.2 KiB
C
33 lines
1.2 KiB
C
--- libtc/tc_functions.c.orig 2008-08-09 17:24:38.000000000 -0400
|
|
+++ libtc/tc_functions.c 2009-02-01 22:13:42.000000000 -0500
|
|
@@ -534,6 +534,15 @@
|
|
/* char device could be several things, depending on system */
|
|
/* *BSD DVD device? v4l? bktr? sunau? */
|
|
if(S_ISCHR(fbuf.st_mode)) {
|
|
+#ifdef __FreeBSD__
|
|
+ if (strstr(name, "bktr") || strstr(name, "tuner") || strstr(name, "wbi"))
|
|
+ return TC_PROBE_PATH_BKTR;
|
|
+ else if (strstr(name, "dsp") || strstr(name, "audio") || strstr(name, "music"))
|
|
+ return TC_PROBE_PATH_OSS;
|
|
+ else
|
|
+ return TC_PROBE_PATH_ABSPATH;
|
|
+#endif
|
|
+
|
|
switch (major(fbuf.st_rdev)) {
|
|
#ifdef OS_BSD
|
|
# ifdef __OpenBSD__
|
|
@@ -544,14 +553,6 @@
|
|
case 49: /* bktr */
|
|
return TC_PROBE_PATH_BKTR;
|
|
# endif
|
|
-# ifdef __FreeBSD__
|
|
- case 4: /* acd */
|
|
- return TC_PROBE_PATH_ABSPATH;
|
|
- case 229: /* bktr */
|
|
- return TC_PROBE_PATH_BKTR;
|
|
- case 0: /* OSS */
|
|
- return TC_PROBE_PATH_OSS;
|
|
-# endif
|
|
default: /* libdvdread uses "raw" disk devices here */
|
|
return TC_PROBE_PATH_ABSPATH;
|
|
#else
|