1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

Adding quickpics version 1.8.

A really handy tool for large image collections and digital cameras.

PR:		17316
Submitted by:	Stever <stever@transmission23.com>
This commit is contained in:
Steve Price 2000-05-01 02:51:56 +00:00
parent 393b73368a
commit 82fb56cb2f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=28203
8 changed files with 131 additions and 0 deletions

View File

@ -135,6 +135,7 @@
SUBDIR += py-opengl
SUBDIR += qcread
SUBDIR += qiv
SUBDIR += quickpics
SUBDIR += qvplay
SUBDIR += rayshade
SUBDIR += sane

View File

@ -0,0 +1,30 @@
# New ports collection makefile for: QuickPics
# Date Created: 10 March 2000
# Whom: Stever <stever@transmission23.com>
#
# $FreeBSD$
#
PORTNAME= quickpics
PORTVERSION= 1.8
CATEGORIES= graphics
MASTER_SITES= http://area23.org/QuickPics/
DISTNAME= QuickPics-${PORTVERSION}
MAINTAINER= stever@transmission23.com
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
WRKSRC= ${WRKDIR}/${DISTNAME}/src
GNU_CONFIGURE= yes
ALL_TARGET= qp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qp ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/qp
${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/qp
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (QuickPics-1.8.tar.gz) = 5f11c29d7dabeeceb56a81a0292a9dbf

View File

@ -0,0 +1,36 @@
--- Makefile.in.orig Fri Sep 18 23:23:19 1998
+++ Makefile.in Sun Apr 30 18:42:42 2000
@@ -7,18 +7,19 @@
#############################################################################
# Executable name
-INST_NAME = ../qp
+INST_NAME = qp
DEFINES = -DHAVE_CONFIG_H
# Do you have libjpeg already on your system? If so, set this.
-LIBJPEGPATH = ../jpeg-6a
+LIBJPEGPATH = ${PREFIX}/lib
+INCJPEGPATH = ${PREFIX}/include
+CC ?= gcc
+CFLAGS ?= -fno-strength-reduce -Wall -Wno-implicit @CFLAGS@
-CC = gcc
-CFLAGS = -fno-strength-reduce -Wall -Wno-implicit @CFLAGS@
CLINKFLAGS = @LIBS@
-INCLUDEDIRS = -I. -I$(LIBJPEGPATH)
+INCLUDEDIRS = -I. -I$(INCJPEGPATH)
# No need to change anything below this line
@@ -28,7 +29,7 @@
SOURCES = html.c qp.c image.c dir.c utility.c main.c
$(INST_NAME): $(OBJECTS)
- $(CC) -o $(INST_NAME) $(OBJECTS) $(LIBJPEGPATH)/libjpeg.a $(CLINKFLAGS)
+ $(CC) -o $(INST_NAME) $(OBJECTS) $(CLINKFLAGS) -ljpeg
@echo ""
@echo "Successful compile: $(INST_NAME)"
@echo ""

View File

@ -0,0 +1,47 @@
--- main.c.orig Sun Apr 30 18:43:28 2000
+++ main.c Sun Apr 30 18:44:14 2000
@@ -21,7 +21,7 @@
/* Prototypes */
void do_arg(char *arg);
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
char cwd[MAXTEXTLEN], yn[1024];
int first_time = 0, i;
@@ -53,7 +53,7 @@
if(!IsDirectory(QP.rootdir))
{
printf("*** ERROR: \"%s\" is not a directory.\n",QP.rootdir);
- return;
+ return 1;
}
chmod(QP.rootdir,0755);
@@ -62,7 +62,7 @@
if(chdir(QP.rootdir) != 0)
{
printf("*** ERROR: Unable to change to directory \"%s\".\n",QP.rootdir);
- return;
+ return 1;
}
/* Read configfile from specified directory. */
@@ -102,7 +102,7 @@
printf(" Execution halted.\n");
printf(" Config file is: %s/%s.\n",BaseFilename(QP.rootdir),QP.configfile);
printf("\n");
- return;
+ return 1;
}
printf("\n");
@@ -169,7 +169,7 @@
printf(" Use the link \"%s/%s\" to view the gallery.\n",BaseFilename(QP.rootdir),QP.index_html);
printf(" Have fun!\n");
printf("\n");
- return;
+ return 0;
}
void do_arg(char *arg)

View File

@ -0,0 +1 @@
A really handy tool for large image collections and digital cameras

View File

@ -0,0 +1,12 @@
QuickPics is a unix-based application that creates an HTML web gallery
based on the directory structure and the images therein. All thumbnails
are created by the program using direct calls to the jpeg library for
fast thumbnail creation. One of my main requirements is that it will not
not have to rely on CGI access to run. It also does not need require
Perl or other jpeg libraries. Only the executable 'qp' is needed to
create any gallery of any size.
If you have an image gallery and you are tired of editing all the HTML
pages and resizing thumbnails, try QuickPics.
by Steve Rider - stever@transmission23.com

View File

@ -0,0 +1,3 @@
bin/qp
share/doc/qp/README
@dirrm share/doc/qp