aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/fli2gif
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2010-06-03 23:54:29 +0800
committerpav <pav@FreeBSD.org>2010-06-03 23:54:29 +0800
commit53f4b372e0b67aa39ec24b0473e3454201de1c92 (patch)
treefddadccc505dc31b17790691a28204f894c9d8af /graphics/fli2gif
parent37d148ed9c0d6a016f957b09a710ba200db77dae (diff)
downloadfreebsd-ports-gnome-53f4b372e0b67aa39ec24b0473e3454201de1c92.tar.gz
freebsd-ports-gnome-53f4b372e0b67aa39ec24b0473e3454201de1c92.tar.zst
freebsd-ports-gnome-53f4b372e0b67aa39ec24b0473e3454201de1c92.zip
- Convert unzip -a to USE_DOS2UNIX
PR: ports/146533 Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>
Diffstat (limited to 'graphics/fli2gif')
-rw-r--r--graphics/fli2gif/Makefile7
-rw-r--r--graphics/fli2gif/files/patch-fli2gif.c (renamed from graphics/fli2gif/files/patch-ab)21
2 files changed, 23 insertions, 5 deletions
diff --git a/graphics/fli2gif/Makefile b/graphics/fli2gif/Makefile
index 0668816c9d5d..53be87f5cd1a 100644
--- a/graphics/fli2gif/Makefile
+++ b/graphics/fli2gif/Makefile
@@ -12,15 +12,16 @@ CATEGORIES= graphics
MASTER_SITES= http://jeff.bovine.net/download/fli2gif/
DISTNAME= ${PORTNAME}b
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= spam@rm-rf.kiev.ua
COMMENT= Automatic Flic to animated GIF convertor
NO_WRKSUBDIR= yes
USE_ZIP= yes
+USE_DOS2UNIX= fli2gif.cpp FLI2GIF.TXT
post-extract:
- @cd ${WRKSRC} && unzip -q -aa source.zip \
+ @cd ${WRKSRC} && ${UNZIP_CMD} -q source.zip \
&& ${LN} -sf GIF.CPP gif.cpp \
&& ${LN} -sf FLIPLAY.CPP fliplay.cpp
@@ -31,7 +32,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fli2gif ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/*.TXT ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/FLI2GIF.TXT ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/graphics/fli2gif/files/patch-ab b/graphics/fli2gif/files/patch-fli2gif.c
index 4f1830c38489..4133156dd394 100644
--- a/graphics/fli2gif/files/patch-ab
+++ b/graphics/fli2gif/files/patch-fli2gif.c
@@ -1,5 +1,4 @@
---- fli2gif.cpp.orig Fri Sep 6 00:10:14 1996
-+++ fli2gif.cpp Fri Nov 1 06:18:18 2002
+Index: fli2gif.cpp
@@ -43,7 +43,9 @@
// ******************
#include <stdio.h>
@@ -11,6 +10,15 @@
#include <string.h>
#if defined(__TURBOC__) || defined(_MSC_VER)
#include <conio.h>
+@@ -81,7 +83,7 @@
+ // *** Function prototypes ***
+ // *****************************
+ void handle_error(int errorcode);
+-char *add_extension(char *filename, char *extension, BOOL enforce);
++char *add_extension(char *filename, const char *extension, BOOL enforce);
+
+
+ // **************************
@@ -95,7 +97,7 @@
//############################################################################
//############################################################################
@@ -38,3 +46,12 @@
#endif
")\n\n");
{
+@@ -389,7 +393,7 @@
+ // Takes a user-entered filename and adds the specified extension if an
+ // entension is not explicitly stated in the passed filename. A pointer
+ // to a static buffer is returned.
+-char *add_extension(char *filename, char *extension, BOOL enforce)
++char *add_extension(char *filename, const char *extension, BOOL enforce)
+ {
+ static char Path[_MAX_PATH];
+