import swiggle 0.4 from openbsd-wip

swiggle is a small command line tool that generates HTML pages,
including thumbnail indexes, for given images (a so called
"web gallery"). It's intended to be easy to use, and since
it is written in C, it's quite speedy.

with feedback from ajacoutot@ and sthen@
ok sthen@ and Sergey Bronnikov (MAINTAINER
This commit is contained in:
rpe 2012-12-05 07:38:15 +00:00
parent 2e7986324b
commit 0cfebc8e16
5 changed files with 57 additions and 0 deletions

33
www/swiggle/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/12/05 07:38:15 rpe Exp $
COMMENT = simple web image gallery generator
DISTNAME = swiggle-0.4
CATEGORIES = www graphics
HOMEPAGE = http://homepage.univie.ac.at/l.ertl/swiggle/
MAINTAINER = Sergey Bronnikov <estetus@gmail.com>
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += c exif jpeg
MASTER_SITES = ${HOMEPAGE}/files/
MODULES = devel/gettext
LIB_DEPENDS = graphics/libexif \
graphics/jpeg
MAKE_FLAGS = CC=${CC}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/swiggle ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/swiggle
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/swiggle/
.include <bsd.port.mk>

2
www/swiggle/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (swiggle-0.4.tar.gz) = 8cNxUoKnb7XFToO2+sYRRV8vgq85u47ZOz+3XTJm8a0=
SIZE (swiggle-0.4.tar.gz) = 13012

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2012/12/05 07:38:15 rpe Exp $
--- Makefile.orig Wed Oct 22 23:01:18 2003
+++ Makefile Mon Nov 5 08:49:51 2012
@@ -5,8 +5,8 @@ CC = gcc
PROGRAM = swiggle
OBJS = swiggle.o resize.o html.o
HEADER = swiggle.h
-CFLAGS += -Wall -I/usr/local/include -I/usr/local/include/libexif
-LDFLAGS += -L/usr/local/lib -ljpeg -lexif
+CFLAGS += -Wall -I${LOCALBASE}/include -I${LOCALBASE}/include/libexif
+LDFLAGS += -L${LOCALBASE}/lib -ljpeg -lexif
all: ${PROGRAM}

4
www/swiggle/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
swiggle is a small command line tool that generates HTML pages,
including thumbnail indexes, for given images (a so called
"web gallery"). It's intended to be easy to use, and since
it is written in C, it's quite speedy.

4
www/swiggle/pkg/PLIST Normal file
View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/12/05 07:38:15 rpe Exp $
@bin bin/swiggle
share/doc/swiggle/
share/doc/swiggle/README