View | Details | Raw Unified | Return to bug 28135
Collapse All | Expand All

(-)Makefile (-5 / +5 lines)
Lines 6-15 Link Here
6
#
6
#
7
7
8
PORTNAME=	gliv
8
PORTNAME=	gliv
9
PORTVERSION=	1.0b7
9
PORTVERSION=	1.0.2
10
CATEGORIES=	graphics
10
CATEGORIES=	graphics
11
MASTER_SITES=	http://gliv.tuxfamily.org/
11
MASTER_SITES=	http://gliv.tuxfamily.org/
12
DISTNAME=	GLiv-1.0beta7
13
12
14
MAINTAINER=	ishmael27@home.com
13
MAINTAINER=	ishmael27@home.com
15
14
Lines 21-29 Link Here
21
USE_MESA=	yes
20
USE_MESA=	yes
22
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
23
USE_X_PREFIX=	yes
22
USE_X_PREFIX=	yes
24
CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib -lgnugetopt" \
23
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
25
		CPPFLAGS="-I${LOCALBASE}/include"
24
		LDFLAGS="-lm" \
25
		LIBS="-L${LOCALBASE}/lib -lgnugetopt"
26
26
27
MAN1=		GLiv.1
27
MAN1=		gliv.1
28
28
29
.include <bsd.port.mk>
29
.include <bsd.port.mk>
(-)distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (GLiv-1.0beta7.tar.bz2) = 3ec72e4c3a517d79c4511a7c3791a5dc
1
MD5 (gliv-1.0.2.tar.bz2) = 57aa28624da75a85b8b9584b4cbad7ad
(-)pkg-plist (-1 / +1 lines)
Line 1 Link Here
1
bin/GLiv
1
bin/gliv
(-)patch-cmdline.c (+45 lines)
Added Link Here
1
--- cmdline.c.orig	Fri Jun  8 10:59:27 2001
2
+++ cmdline.c	Wed Jun 13 19:41:21 2001
3
@@ -44,7 +44,6 @@
4
    -s      --shuffle          Show images in random order (default=off)\n\
5
    -l      --load-requested   Load only when requested (default=off)\n\
6
    -v      --verbose          Verbose mode (default=off)\n\
7
-   -R      --recursive        Process directories recursively (default=off)\n\
8
    -i      --info             Show infos about displayed image (default=off)\n\
9
    -m      --maximize         Maximize image to fit screen (default=off)\n\
10
    -dINT   --delay=INT        Delay before hiding the cursor\n\
11
@@ -80,7 +79,6 @@
12
   args_info->shuffle_given = 0 ;
13
   args_info->load_requested_given = 0 ;
14
   args_info->verbose_given = 0 ;
15
-  args_info->recursive_given = 0 ;
16
   args_info->info_given = 0 ;
17
   args_info->maximize_given = 0 ;
18
   args_info->delay_given = 0 ;
19
@@ -89,7 +87,6 @@
20
   args_info->shuffle_flag = 0;\
21
   args_info->load_requested_flag = 0;\
22
   args_info->verbose_flag = 0;\
23
-  args_info->recursive_flag = 0;\
24
   args_info->info_flag = 0;\
25
   args_info->maximize_flag = 0;\
26
 }
27
@@ -109,7 +106,6 @@
28
         { "shuffle",	0, NULL, 's' },
29
         { "load-requested",	0, NULL, 'l' },
30
         { "verbose",	0, NULL, 'v' },
31
-        { "recursive",	0, NULL, 'R' },
32
         { "info",	0, NULL, 'i' },
33
         { "maximize",	0, NULL, 'm' },
34
         { "delay",	1, NULL, 'd' },
35
@@ -146,10 +142,6 @@
36
 
37
         case 'v':	/* Verbose mode.  */
38
           args_info->verbose_flag = !(args_info->verbose_flag);
39
-          break;
40
-
41
-        case 'R':	/* Process directories recursively.  */
42
-          args_info->recursive_flag = !(args_info->recursive_flag);
43
           break;
44
 
45
         case 'i':	/* Show infos about displayed image.  */
(-)patch-cmdline.h (+18 lines)
Added Link Here
1
--- cmdline.h.orig	Fri Jun  8 10:59:27 2001
2
+++ cmdline.h	Wed Jun 13 19:53:13 2001
3
@@ -24,7 +24,6 @@
4
   int shuffle_flag;	/* Show images in random order (default=off).  */
5
   int load_requested_flag;	/* Load only when requested (default=off).  */
6
   int verbose_flag;	/* Verbose mode (default=off).  */
7
-  int recursive_flag;	/* Process directories recursively (default=off).  */
8
   int info_flag;	/* Show infos about displayed image (default=off).  */
9
   int maximize_flag;	/* Maximize image to fit screen (default=off).  */
10
   int delay_arg;	/* Delay before hiding the cursor.  */
11
@@ -35,7 +34,6 @@
12
   int shuffle_given ;	/* Whether shuffle was given.  */
13
   int load_requested_given ;	/* Whether load-requested was given.  */
14
   int verbose_given ;	/* Whether verbose was given.  */
15
-  int recursive_given ;	/* Whether recursive was given.  */
16
   int info_given ;	/* Whether info was given.  */
17
   int maximize_given ;	/* Whether maximize was given.  */
18
   int delay_given ;	/* Whether delay was given.  */
(-)patch-gliv.1 (+12 lines)
Added Link Here
1
--- gliv.1.orig	Fri Jun  8 17:17:03 2001
2
+++ gliv.1	Wed Jun 13 19:45:13 2001
3
@@ -29,9 +29,6 @@
4
 \fB\-v, \-\-verbose\fR
5
 Print some information (default=off). Use it to know more about your hardware and to see \fIgliv\fR loading and unloading images.
6
 .TP 
7
-\fB\-R, \-\-recursive\fR
8
-Processe directories recursively (default=off). If you specify a directory in the command line \fIgliv\fR will open every image in this directory and its subdirectories.
9
-.TP 
10
 \fB\-i, \-\-info\fR
11
 Show infos about displayed image (default=off). With this option, \fIgliv\fR will by default print the info lines you can obtain by typing 'i'.
12
 .TP 
(-)patch-gliv.c (+54 lines)
Added Link Here
1
--- gliv.c.orig	Tue Jun 12 14:40:17 2001
2
+++ gliv.c	Wed Jun 13 19:42:54 2001
3
@@ -120,37 +120,6 @@
4
 }
5
 
6
 /***************************************
7
- *  Adds a filename to the list. This  *
8
- *function is only used by ftw when the*
9
- *	    -R flag is given.	       *
10
- ***************************************/
11
-static int add_to_list(const char *file, const struct stat *st, int flag)
12
-{
13
-    if (flag == FTW_F) {
14
-	/* It is not a directory, we don't care if it is an image or not. */
15
-	total++;
16
-	names = realloc(names, total * sizeof(char *));
17
-	names[total - 1] = strdup(file);
18
-    }
19
-    return 0;
20
-}
21
-
22
-/***************************************
23
- *  Recursively adds all files to the  *
24
- * list by descending directories. The *
25
- * image list is the variable 'names'. *
26
- ***************************************/
27
-static void build_image_list(char **array, unsigned int nb)
28
-{
29
-    unsigned int i;
30
-
31
-    for (i = 0; i < nb; i++) {
32
-	ftw(array[i], add_to_list, 8);
33
-	free(array[i]);
34
-    }
35
-}
36
-
37
-/***************************************
38
  *   Sets global variables according   *
39
  *     to  command-line arguments.     *
40
  ***************************************/
41
@@ -166,13 +135,8 @@
42
     rt.info = args->info_flag;
43
     rt.maximize = args->maximize_flag;
44
 
45
-    if (args->recursive_flag) {
46
-	build_image_list(args->inputs, args->inputs_num);
47
-	free(args->inputs);
48
-    } else {
49
 	total = args->inputs_num;
50
 	names = args->inputs;
51
-    }
52
 
53
     if (total < 2)
54
 	/* Don't use a thread for only one image. */
(-)patch-gliv.ggo (+10 lines)
Added Link Here
1
--- gliv.ggo.orig	Fri Jun  8 10:59:27 2001
2
+++ gliv.ggo	Wed Jun 13 19:46:09 2001
3
@@ -2,7 +2,6 @@
4
 option "shuffle"	s "Show images in random order"      flag off
5
 option "load-requested" l "Load only when requested"	     flag off
6
 option "verbose"	v "Verbose mode"		     flag off
7
-option "recursive"	R "Process directories recursively"  flag off
8
 option "info"		i "Show infos about displayed image" flag off
9
 option "maximize"	m "Maximize image to fit screen"     flag off
10
 option "delay"		d "Delay before hiding the cursor"   int  no
(-)patch-gliv.h (+10 lines)
Added Link Here
1
--- gliv.h.orig	Sun Jun 10 13:46:58 2001
2
+++ gliv.h	Wed Jun 13 19:42:26 2001
3
@@ -11,7 +11,6 @@
4
 #include <unistd.h>
5
 #include <pthread.h>
6
 #include <signal.h>
7
-#include <ftw.h>
8
 #include "cmdline.h"
9
 
10
 /***************************************

Return to bug 28135