diff options
author | Munechika SUMIKAWA <sumikawa@FreeBSD.org> | 1999-09-27 17:39:02 +0000 |
---|---|---|
committer | Munechika SUMIKAWA <sumikawa@FreeBSD.org> | 1999-09-27 17:39:02 +0000 |
commit | d75016cec0704d40bce6f4f863b71d8358805c00 (patch) | |
tree | 674fddee485d85f3b9de28db889bee81ac22b461 /graphics/enfle | |
parent | Make a warning into a BROKEN for < 400000 and move it out of pre-fetch (diff) |
This program aims to view many pictures easily. You cannot expect
versatile performance, such as xv, gimp. This software is only to view
pictures in succession. So far, this can treat JPEG, PNG, MAG, BMP,
XPM, PNM, and several special formats.
WWW: http://enfle.fennel.org/
PR: 13822
Submitted by: Yuuki SAWADA <mami@whale.cc.muroran-it.ac.jp>
Reviewed by: ports-jp@jp.freebsd.org
Notes
Notes:
svn path=/head/; revision=22017
Diffstat (limited to 'graphics/enfle')
-rw-r--r-- | graphics/enfle/Makefile | 24 | ||||
-rw-r--r-- | graphics/enfle/distinfo | 1 | ||||
-rw-r--r-- | graphics/enfle/files/patch-aa | 101 | ||||
-rw-r--r-- | graphics/enfle/files/patch-ab | 32 | ||||
-rw-r--r-- | graphics/enfle/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/enfle/pkg-descr | 9 | ||||
-rw-r--r-- | graphics/enfle/pkg-plist | 82 |
7 files changed, 250 insertions, 0 deletions
diff --git a/graphics/enfle/Makefile b/graphics/enfle/Makefile new file mode 100644 index 000000000000..c630be376e47 --- /dev/null +++ b/graphics/enfle/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: enfle +# Version required: 19990926 +# Date created: Tue Sep 28 02:25:17 JST 1999 +# Whom: Yuuki SAWADA <mami@whale.cc.muroran-it.ac.jp> +# +# $FreeBSD$ +# + +DISTNAME= enfle-19990926 +CATEGORIES= graphics +MASTER_SITES= http://enfle.fennel.org/ + +MAINTAINER= mami@whale.cc.muroran-it.ac.jp + +LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png \ + jpeg.9:${PORTSDIR}/graphics/jpeg + +USE_GMAKE= yes +USE_X_PREFIX= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-all-plugins\ + --enable-plugins-dir + +.include <bsd.port.mk> diff --git a/graphics/enfle/distinfo b/graphics/enfle/distinfo new file mode 100644 index 000000000000..fd34be491d54 --- /dev/null +++ b/graphics/enfle/distinfo @@ -0,0 +1 @@ +MD5 (enfle-19990926.tar.gz) = ba11e3a0a3971686cd0f6949c17dbaa5 diff --git a/graphics/enfle/files/patch-aa b/graphics/enfle/files/patch-aa new file mode 100644 index 000000000000..32c8c59b05a8 --- /dev/null +++ b/graphics/enfle/files/patch-aa @@ -0,0 +1,101 @@ +--- plugins/archiver/misc/misc.c.orig Sat Sep 25 17:08:18 1999 ++++ plugins/archiver/misc/misc.c Mon Sep 27 23:26:35 1999 +@@ -70,7 +70,7 @@ + + p->version = 1; + p->type = _Archiver; +- p->pluginname = "Misc Format Archiver Plugin version 0.2"; ++ p->pluginname = "Misc Format Archiver Plugin version 0.3"; + p->pluginshortname = FORMAT_NAME; + p->author = "TAJIRI Yasuhiro"; + p->dlhandle = NULL; /* set by plugin_load */ +@@ -279,7 +279,8 @@ + FILE * fp; + char buf[257]; + +- fp = fopen(filename,"r"); ++ if ((fp = fopen(filename,"r")) == NULL) ++ return 1; + buf[256]=0; + while(fgets(buf,256,fp)!=NULL){ + int count = strlen(buf); +@@ -298,12 +299,12 @@ + misc_archive_open(Archive *ar) + { + struct fmt_entry *e; +- char tmpsh[20]; ++ char tmpsh[256]; + static char *preName=NULL; + /* char curTmpDir[500]; */ + FILE* fp; + pid_t pid_child; +- MISC_info *info; ++ MISC_info *info = NULL; + char rcfile[50]; + char *home; + +@@ -312,26 +313,26 @@ + fseek(ar->fp, 0L, SEEK_END); + ar->asize = ftell(ar->fp); + fseek(ar->fp, 0L, SEEK_SET); +- ++ ar->nfiles=0; ++ ar->info=NULL; + home = getenv("HOME"); + if(home==NULL) +- return 0; ++ goto error; + if( entries == NULL){ + sprintf(rcfile,"%s/%s",home,".miscloader"); + if(load_inifile(rcfile)) +- return 0; ++ goto error; + } + if ((ar->info = calloc(1, sizeof(MISC_info))) == NULL) { + fprintf(stderr, "No enough memory for info\n"); + archive_close(ar); +- fclose(ar->fp); +- return 0; ++ goto error; + } + info = (MISC_info *)ar->info; + info->fname=NULL; + e = check_file(ar); + if(e==NULL) +- return 0; ++ goto error; + sprintf(tmpsh,"/tmp/.%s%d",getenv("USER"),(int)(getpid())); + // sprintf(tmpsh,"/tmp/.%s%d%s",getenv("USER"),(int)(getpid()),ar->filename); + tmpdir=strdup(tmpsh); +@@ -354,14 +355,13 @@ + } else if (pid_child < 0) { + fprintf(stderr, "fork failed"); + exit(0); +- return 0; ++ goto error; + } else { + int status; + // wait(&status); + waitpid(pid_child,&status,0); + } + } +- ar->nfiles=0; + scan_directory(tmpdir,ar); + if (ar->nfiles) { + ar->format = FORMAT_NAME; +@@ -369,6 +369,15 @@ + ar->close = misc_archive_close; + return 1; + } ++ error: ++ if(info!=NULL){ ++ int i; ++ for (i = 0; i < ar->nfiles; i++) ++ free(info->fname[i]); ++ free(info->fname); ++ free(ar->info); ++ } ++ fclose(ar->fp); + return 0; + } + diff --git a/graphics/enfle/files/patch-ab b/graphics/enfle/files/patch-ab new file mode 100644 index 000000000000..f81f6e9c76cb --- /dev/null +++ b/graphics/enfle/files/patch-ab @@ -0,0 +1,32 @@ +--- plugins/archiver/tar/tar.c.orig Mon Sep 27 21:42:51 1999 ++++ plugins/archiver/tar/tar.c Mon Sep 27 21:46:15 1999 +@@ -39,7 +39,7 @@ + { + p->version = 1; + p->type = _Archiver; +- p->pluginname = "TAR Format Archiver Plugin version 0.2"; ++ p->pluginname = "TAR Format Archiver Plugin version 0.3"; + p->pluginshortname = FORMAT_NAME; + p->author = "TAJIRI Yasuhiro"; + p->dlhandle = NULL; /* set by plugin_load */ +@@ -142,8 +142,10 @@ + + if (hdr[0] == '\0') + break; +- if (!tar_checksum(hdr)) ++ if (!tar_checksum(hdr)){ ++ archive_close(info->ar); + return 0; ++ } + size = octal_value(hdr + 124, 12); + flen = strlen(hdr); + if (size == 0 && flen > 0 && hdr[flen - 1] == '/') +@@ -176,7 +178,7 @@ + ar->close = tar_archive_close; + return 1; + } +- ++ archive_close(info->ar); + return 0; + } + diff --git a/graphics/enfle/pkg-comment b/graphics/enfle/pkg-comment new file mode 100644 index 000000000000..e704657d7ba4 --- /dev/null +++ b/graphics/enfle/pkg-comment @@ -0,0 +1 @@ +Simple Plugin-based Graphic Loader Enfle diff --git a/graphics/enfle/pkg-descr b/graphics/enfle/pkg-descr new file mode 100644 index 000000000000..07e4207c5c77 --- /dev/null +++ b/graphics/enfle/pkg-descr @@ -0,0 +1,9 @@ +This program aims to view many pictures easily. You cannot expect +versatile performance, such as xv, gimp. This software is only to view +pictures in succession. So far, this can treat JPEG, PNG, MAG, BMP, +XPM, PNM, and several special formats. + +WWW: http://enfle.fennel.org/ + +-- +Yuuki SAWADA <mami@whale.cc.muroran-it.ac.jp> diff --git a/graphics/enfle/pkg-plist b/graphics/enfle/pkg-plist new file mode 100644 index 000000000000..8d4a0b0acb9b --- /dev/null +++ b/graphics/enfle/pkg-plist @@ -0,0 +1,82 @@ +bin/enfle +lib/enfle/plugins/archiver/dri.a +lib/enfle/plugins/archiver/dri.la +lib/enfle/plugins/archiver/dri.so +lib/enfle/plugins/archiver/dri.so.1 +lib/enfle/plugins/archiver/pak.a +lib/enfle/plugins/archiver/pak.la +lib/enfle/plugins/archiver/pak.so +lib/enfle/plugins/archiver/pak.so.1 +lib/enfle/plugins/archiver/bz2.a +lib/enfle/plugins/archiver/bz2.la +lib/enfle/plugins/archiver/bz2.so +lib/enfle/plugins/archiver/bz2.so.1 +lib/enfle/plugins/archiver/gz.a +lib/enfle/plugins/archiver/gz.la +lib/enfle/plugins/archiver/gz.so +lib/enfle/plugins/archiver/gz.so.1 +lib/enfle/plugins/archiver/misc.a +lib/enfle/plugins/archiver/misc.la +lib/enfle/plugins/archiver/misc.so +lib/enfle/plugins/archiver/misc.so.1 +lib/enfle/plugins/archiver/tar.a +lib/enfle/plugins/archiver/tar.la +lib/enfle/plugins/archiver/tar.so +lib/enfle/plugins/archiver/tar.so.1 +lib/enfle/plugins/loader/ald.a +lib/enfle/plugins/loader/ald.la +lib/enfle/plugins/loader/ald.so +lib/enfle/plugins/loader/ald.so.1 +lib/enfle/plugins/loader/bmp.a +lib/enfle/plugins/loader/bmp.la +lib/enfle/plugins/loader/bmp.so +lib/enfle/plugins/loader/bmp.so.1 +lib/enfle/plugins/loader/grp.a +lib/enfle/plugins/loader/grp.la +lib/enfle/plugins/loader/grp.so +lib/enfle/plugins/loader/grp.so.1 +lib/enfle/plugins/loader/jpeg.a +lib/enfle/plugins/loader/jpeg.la +lib/enfle/plugins/loader/jpeg.so +lib/enfle/plugins/loader/jpeg.so.1 +lib/enfle/plugins/loader/lfg.a +lib/enfle/plugins/loader/lfg.la +lib/enfle/plugins/loader/lfg.so +lib/enfle/plugins/loader/lfg.so.1 +lib/enfle/plugins/loader/mag.a +lib/enfle/plugins/loader/mag.la +lib/enfle/plugins/loader/mag.so +lib/enfle/plugins/loader/mag.so.1 +lib/enfle/plugins/loader/png.a +lib/enfle/plugins/loader/png.la +lib/enfle/plugins/loader/png.so +lib/enfle/plugins/loader/png.so.1 +lib/enfle/plugins/loader/pnm.a +lib/enfle/plugins/loader/pnm.la +lib/enfle/plugins/loader/pnm.so +lib/enfle/plugins/loader/pnm.so.1 +lib/enfle/plugins/loader/xbm.a +lib/enfle/plugins/loader/xbm.la +lib/enfle/plugins/loader/xbm.so +lib/enfle/plugins/loader/xbm.so.1 +lib/enfle/plugins/loader/xpm.a +lib/enfle/plugins/loader/xpm.la +lib/enfle/plugins/loader/xpm.so +lib/enfle/plugins/loader/xpm.so.1 +lib/enfle/plugins/saver/jpeg.a +lib/enfle/plugins/saver/jpeg.la +lib/enfle/plugins/saver/jpeg.so +lib/enfle/plugins/saver/jpeg.so.1 +lib/enfle/plugins/saver/pms.a +lib/enfle/plugins/saver/pms.la +lib/enfle/plugins/saver/pms.so +lib/enfle/plugins/saver/pms.so.1 +lib/enfle/plugins/saver/png.a +lib/enfle/plugins/saver/png.la +lib/enfle/plugins/saver/png.so +lib/enfle/plugins/saver/png.so.1 +@dirrm lib/enfle/plugins/archiver +@dirrm lib/enfle/plugins/loader +@dirrm lib/enfle/plugins/saver +@dirrm lib/enfle/plugins +@dirrm lib/enfle |