aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroger <roger@FreeBSD.org>1999-09-10 02:14:29 +0800
committerroger <roger@FreeBSD.org>1999-09-10 02:14:29 +0800
commit0c34fbb3502a04f086b999635787894cd76129f7 (patch)
tree420e19ac6501e989e5acb1a00eff81cd02a8170b
parentc95653363bf0d9bea77ed47f56b3321ae23644d6 (diff)
downloadfreebsd-ports-graphics-0c34fbb3502a04f086b999635787894cd76129f7.tar.gz
freebsd-ports-graphics-0c34fbb3502a04f086b999635787894cd76129f7.tar.zst
freebsd-ports-graphics-0c34fbb3502a04f086b999635787894cd76129f7.zip
Add patch submitted by Randall, the FXTV author
-rw-r--r--graphics/fxtv/files/patch-ab25
-rw-r--r--multimedia/fxtv/files/patch-ab25
2 files changed, 50 insertions, 0 deletions
diff --git a/graphics/fxtv/files/patch-ab b/graphics/fxtv/files/patch-ab
new file mode 100644
index 00000000000..ce2a6bc2cee
--- /dev/null
+++ b/graphics/fxtv/files/patch-ab
@@ -0,0 +1,25 @@
+--- t/fxtv-1.00/vidsav_dlg.c Mon Sep 6 10:39:18 1999
++++ vidsav_dlg.c Wed Sep 8 16:39:04 1999
+@@ -70,7 +70,7 @@
+ /* ******************** Local defines ************** */
+
+ #define AV_RAWNAME_FMT "%s.AVraw"
+-#define SCRIPT_FNAME_FMT "./%s.sh"
++#define SCRIPT_FNAME_FMT "%s%s.sh"
+
+ #define OPTIMIZE_NUM_FRAMES 200
+
+@@ -801,9 +801,12 @@
+ char *str;
+ struct stat stat;
+ TV_INT32 i;
++ TV_BOOL has_path;
+
+ /* Open output script file */
+- sprintf( p->script_fname, SCRIPT_FNAME_FMT, p->fname_base );
++ has_path = strchr( "p->fname_base", '/' ) != NULL;
++ sprintf( p->script_fname, SCRIPT_FNAME_FMT,
++ (has_path ? "./" : ""), p->fname_base );
+
+ if ( (fp = fopen( p->script_fname, "wt" )) == NULL ) {
+ fprintf( stderr, "Failed to open for write: %s\n", p->script_fname );
diff --git a/multimedia/fxtv/files/patch-ab b/multimedia/fxtv/files/patch-ab
new file mode 100644
index 00000000000..ce2a6bc2cee
--- /dev/null
+++ b/multimedia/fxtv/files/patch-ab
@@ -0,0 +1,25 @@
+--- t/fxtv-1.00/vidsav_dlg.c Mon Sep 6 10:39:18 1999
++++ vidsav_dlg.c Wed Sep 8 16:39:04 1999
+@@ -70,7 +70,7 @@
+ /* ******************** Local defines ************** */
+
+ #define AV_RAWNAME_FMT "%s.AVraw"
+-#define SCRIPT_FNAME_FMT "./%s.sh"
++#define SCRIPT_FNAME_FMT "%s%s.sh"
+
+ #define OPTIMIZE_NUM_FRAMES 200
+
+@@ -801,9 +801,12 @@
+ char *str;
+ struct stat stat;
+ TV_INT32 i;
++ TV_BOOL has_path;
+
+ /* Open output script file */
+- sprintf( p->script_fname, SCRIPT_FNAME_FMT, p->fname_base );
++ has_path = strchr( "p->fname_base", '/' ) != NULL;
++ sprintf( p->script_fname, SCRIPT_FNAME_FMT,
++ (has_path ? "./" : ""), p->fname_base );
+
+ if ( (fp = fopen( p->script_fname, "wt" )) == NULL ) {
+ fprintf( stderr, "Failed to open for write: %s\n", p->script_fname );