summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2003-09-10 21:44:46 +0000
committeritojun <itojun@pkgsrc.org>2003-09-10 21:44:46 +0000
commit595841793922bbfa105979a36d9752bd76824dcb (patch)
tree5dbb0012723f690bed8d3a04a7fe32b2e55fb7aa /graphics
parent613ec7395960d6442faa18871ea8fb1ee33ddafd (diff)
downloadpkgsrc-595841793922bbfa105979a36d9752bd76824dcb.tar.gz
resize_image, fast image resizing tool
Diffstat (limited to 'graphics')
-rw-r--r--graphics/resize_image/DESCR5
-rw-r--r--graphics/resize_image/Makefile19
-rw-r--r--graphics/resize_image/PLIST2
-rw-r--r--graphics/resize_image/distinfo7
-rw-r--r--graphics/resize_image/patches/patch-aa43
-rw-r--r--graphics/resize_image/patches/patch-ab54
-rw-r--r--graphics/resize_image/patches/patch-ac10
7 files changed, 140 insertions, 0 deletions
diff --git a/graphics/resize_image/DESCR b/graphics/resize_image/DESCR
new file mode 100644
index 00000000000..5dc7348d245
--- /dev/null
+++ b/graphics/resize_image/DESCR
@@ -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 --git a/graphics/resize_image/Makefile b/graphics/resize_image/Makefile
new file mode 100644
index 00000000000..7ffcbb3aff7
--- /dev/null
+++ b/graphics/resize_image/Makefile
@@ -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
+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 --git a/graphics/resize_image/PLIST b/graphics/resize_image/PLIST
new file mode 100644
index 00000000000..327f06dd9ab
--- /dev/null
+++ b/graphics/resize_image/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/10 21:44:46 itojun Exp $
+bin/resize_image
diff --git a/graphics/resize_image/distinfo b/graphics/resize_image/distinfo
new file mode 100644
index 00000000000..a7235af2e68
--- /dev/null
+++ b/graphics/resize_image/distinfo
@@ -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 --git a/graphics/resize_image/patches/patch-aa b/graphics/resize_image/patches/patch-aa
new file mode 100644
index 00000000000..249acbdf14d
--- /dev/null
+++ b/graphics/resize_image/patches/patch-aa
@@ -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 --git a/graphics/resize_image/patches/patch-ab b/graphics/resize_image/patches/patch-ab
new file mode 100644
index 00000000000..68e75365d19
--- /dev/null
+++ b/graphics/resize_image/patches/patch-ab
@@ -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 --git a/graphics/resize_image/patches/patch-ac b/graphics/resize_image/patches/patch-ac
new file mode 100644
index 00000000000..18493f62dc7
--- /dev/null
+++ b/graphics/resize_image/patches/patch-ac
@@ -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)