pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/resize_image resize_image, fast image resizin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3a0050f269ec
branches:  trunk
changeset: 461098:3a0050f269ec
user:      itojun <itojun%pkgsrc.org@localhost>
date:      Wed Sep 10 21:44:46 2003 +0000

description:
resize_image, fast image resizing tool

diffstat:

 graphics/resize_image/DESCR            |   5 +++
 graphics/resize_image/Makefile         |  19 +++++++++++
 graphics/resize_image/PLIST            |   2 +
 graphics/resize_image/distinfo         |   7 ++++
 graphics/resize_image/patches/patch-aa |  43 +++++++++++++++++++++++++++
 graphics/resize_image/patches/patch-ab |  54 ++++++++++++++++++++++++++++++++++
 graphics/resize_image/patches/patch-ac |  10 ++++++
 7 files changed, 140 insertions(+), 0 deletions(-)

diffs (168 lines):

diff -r ca681d6d4ce6 -r 3a0050f269ec graphics/resize_image/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/resize_image/DESCR       Wed Sep 10 21:44:46 2003 +0000
@@ -0,0 +1,5 @@
+resize_image is a little utility to resize images. You can read
+JPEG, GIF, Targa (TGA), PBM, PGM and PPM images.  You will need
+JPEG library to use it. You can only output in PPM or JPEG formats.
+It is written in C so if you want to compile you'll needed a C
+compiler (only tested with gcc under Linux i386).
diff -r ca681d6d4ce6 -r 3a0050f269ec graphics/resize_image/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/resize_image/Makefile    Wed Sep 10 21:44:46 2003 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/09/10 21:44:46 itojun Exp $
+#
+
+DISTNAME=      resize_image-0.6
+CATEGORIES=    graphics
+MASTER_SITES=  http://lab.erasme.org/resize_image/
+
+MAINTAINER=    packages%netbsd.org@localhost
+HOMEPAGE=      http://lab.erasme.org/resize_image/
+COMMENT=       Fast image resizing tool
+
+USE_GMAKE=     YES
+CFLAGS+=       -DUNIX
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/resize_image ${PREFIX}/bin
+
+.include "../../graphics/jpeg/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ca681d6d4ce6 -r 3a0050f269ec graphics/resize_image/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/resize_image/PLIST       Wed Sep 10 21:44:46 2003 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/10 21:44:46 itojun Exp $
+bin/resize_image
diff -r ca681d6d4ce6 -r 3a0050f269ec graphics/resize_image/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/resize_image/distinfo    Wed Sep 10 21:44:46 2003 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/09/10 21:44:46 itojun Exp $
+
+SHA1 (resize_image-0.6.tar.gz) = e26f53db67de09bc641caf1ced4742a97be0c4a4
+Size (resize_image-0.6.tar.gz) = 87249 bytes
+SHA1 (patch-aa) = b72497572209b10eba9e4a2becbfb53661031092
+SHA1 (patch-ab) = 1ef571f47e79a018dfa73d5996265059edd746d1
+SHA1 (patch-ac) = 98b9d32e7d6ba96244a27288a9b36b3a7d41fbd1
diff -r ca681d6d4ce6 -r 3a0050f269ec graphics/resize_image/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/resize_image/patches/patch-aa    Wed Sep 10 21:44:46 2003 +0000
@@ -0,0 +1,43 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/09/10 21:44:46 itojun Exp $
+
+--- Makefile.orig      2002-08-08 20:13:01.000000000 +0900
++++ Makefile   2003-09-11 06:40:40.000000000 +0900
+@@ -1,17 +1,17 @@
+ # compilateur utilisé
+-CC = gcc -O2 -DUNIX -Wall -g
++#CC = gcc -O2 -DUNIX -Wall -g
+ # compilateur utilisé quand une forte optimisation est nécessaire
+-CC_OPT = gcc -O6 -DUNIX -Wall -g
++#CC_OPT = gcc -O6 -DUNIX -Wall -g
+ 
+ # répertoire on seront placés les fichiers .o
+ OBJ_DIR = obj
+ 
+ # tout les repertoires a rajouter dans le PATH utilise pour les includes
+-INCLUDE_PATH = -Iimage -Iutils
++INCLUDE_PATH = -Iimage -Iutils -I${BUILDLINK_PREFIX.jpeg}/include
+ # tout les repertoires a rajouter dans le PATH utilise lors du linkage
+ LIBRARY_PATH = 
+ # toutes les bibliotheques a utiliser au linkage
+-LIBRARY      = -lm -ljpeg
++LIBRARY      = $(LDFLAGS) -lm -ljpeg
+ 
+ ############################################################
+ # pour le programme final (le linkage)
+@@ -38,14 +38,14 @@
+ include image/Makefile
+ 
+ resize_image : $(OBJ_DIR)/resize_image.o $(IMAGE_OBJS) $(UTILS_OBJS)
+-      $(CC) $(OBJ_DIR)/resize_image.o $(IMAGE_OBJS) $(UTILS_OBJS) $(LIBRARY_PATH)\
++      $(CC) $(CFLAGS) $(OBJ_DIR)/resize_image.o $(IMAGE_OBJS) $(UTILS_OBJS) $(LIBRARY_PATH)\
+       $(LIBRARY) -o $@
+ 
+ ############################################################
+ # pour le programmes de demonstration
+ 
+ $(OBJ_DIR)/resize_image.o : resize_image.c $(IMAGE_H) $(UTILS_H)
+-      $(CC) -c resize_image.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c resize_image.c -o $@ $(INCLUDE_PATH)
+ 
+ ############################################################
+ # pour faire le ménage
diff -r ca681d6d4ce6 -r 3a0050f269ec graphics/resize_image/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/resize_image/patches/patch-ab    Wed Sep 10 21:44:46 2003 +0000
@@ -0,0 +1,54 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/09/10 21:44:46 itojun Exp $
+
+--- image/Makefile     2002-08-08 20:13:01.000000000 +0900
++++ image/Makefile     2003-09-11 06:36:38.000000000 +0900
+@@ -35,38 +35,38 @@
+ # pour les images
+ 
+ $(OBJ_DIR)/image.o : $(IMAGE_DIR)/image.c $(IMAGE_DIR)/image.h $(UTILS_H)
+-      $(CC_OPT) -c $(IMAGE_DIR)/image.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c $(IMAGE_DIR)/image.c -o $@ $(INCLUDE_PATH)
+ 
+ $(OBJ_DIR)/image_draw_func.o : $(IMAGE_DIR)/image.h $(IMAGE_DIR)/image_draw_func.c\
+  $(IMAGE_DIR)/image_draw_func.h $(UTILS_H)
+-      $(CC_OPT) -c $(IMAGE_DIR)/image_draw_func.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c $(IMAGE_DIR)/image_draw_func.c -o $@ $(INCLUDE_PATH)
+ 
+ $(OBJ_DIR)/image_trans.o : $(IMAGE_DIR)/image_trans.c $(IMAGE_DIR)/image.h\
+  $(IMAGE_DIR)/image_draw_func.h $(IMAGE_DIR)/color.h $(UTILS_H)
+-      $(CC_OPT) -c $(IMAGE_DIR)/image_trans.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c $(IMAGE_DIR)/image_trans.c -o $@ $(INCLUDE_PATH)
+ 
+ $(OBJ_DIR)/image_filter.o : $(IMAGE_DIR)/image_filter.c $(IMAGE_DIR)/image.h\
+  $(IMAGE_DIR)/image_draw_func.h $(IMAGE_DIR)/color.h $(UTILS_H)
+-      $(CC_OPT) -c $(IMAGE_DIR)/image_filter.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c $(IMAGE_DIR)/image_filter.c -o $@ $(INCLUDE_PATH)
+ 
+ $(OBJ_DIR)/image_from_bmp.o : $(IMAGE_DIR)/image_from_bmp.c $(IMAGE_DIR)/image.h $(UTILS_H)
+-      $(CC) -c $(IMAGE_DIR)/image_from_bmp.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c $(IMAGE_DIR)/image_from_bmp.c -o $@ $(INCLUDE_PATH)
+ 
+ $(OBJ_DIR)/image_from_gif.o : $(IMAGE_DIR)/image_from_gif.c $(IMAGE_DIR)/image.h $(UTILS_H)
+-      $(CC) -c $(IMAGE_DIR)/image_from_gif.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c $(IMAGE_DIR)/image_from_gif.c -o $@ $(INCLUDE_PATH)
+ 
+ $(OBJ_DIR)/image_from_tga.o : $(IMAGE_DIR)/image_from_tga.c $(IMAGE_DIR)/image.h $(UTILS_H)
+-      $(CC) -c $(IMAGE_DIR)/image_from_tga.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c $(IMAGE_DIR)/image_from_tga.c -o $@ $(INCLUDE_PATH)
+ 
+ $(OBJ_DIR)/image_from_jpeg.o : $(IMAGE_DIR)/image_from_jpeg.c $(IMAGE_DIR)/image.h $(UTILS_H)
+-      $(CC) -c $(IMAGE_DIR)/image_from_jpeg.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c $(IMAGE_DIR)/image_from_jpeg.c -o $@ $(INCLUDE_PATH)
+ 
+ $(OBJ_DIR)/image_from_pgm.o : $(IMAGE_DIR)/image_from_pgm.c $(IMAGE_DIR)/image.h $(UTILS_H)
+-      $(CC) -c $(IMAGE_DIR)/image_from_pgm.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c $(IMAGE_DIR)/image_from_pgm.c -o $@ $(INCLUDE_PATH)
+ 
+ $(OBJ_DIR)/image_from_ppm.o : $(IMAGE_DIR)/image_from_ppm.c $(IMAGE_DIR)/image.h $(UTILS_H)
+-      $(CC) -c $(IMAGE_DIR)/image_from_ppm.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c $(IMAGE_DIR)/image_from_ppm.c -o $@ $(INCLUDE_PATH)
+ 
+ $(OBJ_DIR)/image_from_pbm.o : $(IMAGE_DIR)/image_from_pbm.c $(IMAGE_DIR)/image.h $(UTILS_H)
+-      $(CC) -c $(IMAGE_DIR)/image_from_pbm.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c $(IMAGE_DIR)/image_from_pbm.c -o $@ $(INCLUDE_PATH)
+ 
diff -r ca681d6d4ce6 -r 3a0050f269ec graphics/resize_image/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/resize_image/patches/patch-ac    Wed Sep 10 21:44:46 2003 +0000
@@ -0,0 +1,10 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/09/10 21:44:46 itojun Exp $
+
+--- utils/Makefile-    2003-09-11 06:39:20.000000000 +0900
++++ utils/Makefile     2003-09-11 06:39:34.000000000 +0900
+@@ -11,4 +11,4 @@
+ 
+ # pour gerer les listes doublements chainees
+ $(OBJ_DIR)/list.o : $(UTILS_DIR)/list.c $(UTILS_DIR)/list.h $(UTILS_DIR)/general.h
+-      $(CC_OPT) -c $(UTILS_DIR)/list.c -o $@ $(INCLUDE_PATH)
++      $(CC) $(CFLAGS) $(CPPFLAGS) -c $(UTILS_DIR)/list.c -o $@ $(INCLUDE_PATH)



Home | Main Index | Thread Index | Old Index