Index: head/graphics/cthumb/Makefile =================================================================== --- head/graphics/cthumb/Makefile (revision 456611) +++ head/graphics/cthumb/Makefile (revision 456612) @@ -1,65 +1,41 @@ # Created by: dom@happygiraffe.net # $FreeBSD$ PORTNAME= cthumb PORTVERSION= 4.2 PORTREVISION= 4 CATEGORIES= graphics www MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Themeable web picture album generator +LICENSE= GPLv2+ + RUN_DEPENDS= ${LOCALBASE}/bin/pnmscale:graphics/netpbm \ ${LOCALBASE}/bin/jhead:graphics/jhead \ p5-HTML-Parser>=0:www/p5-HTML-Parser \ p5-URI>=0:net/p5-URI USES= jpeg:run perl5 GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-themedir=${DATADIR} CONFIGURE_ENV= perl_path=${PERL} +NO_ARCH= yes -PORTDOCS= ChangeLog INSTALL README TO-DO VERSION cthumbrc.sample +PORTDOCS= BUGS ChangeLog README TO-DO cthumbrc.sample -THEMES= blue-steel.theme \ - classic-clips.theme \ - classic.theme \ - crosshair.theme \ - film.theme \ - flaps.theme \ - float-medium.theme \ - float-more.theme \ - float-thick.theme \ - float.theme \ - ithumb.theme \ - neat-round.theme \ - neat-square.theme \ - oak.theme \ - postcard.theme \ - shiny-tube.theme \ - simpleframe.theme \ - slides-big.theme \ - slides-clean.theme \ - slides-huge.theme \ - slides-small.theme \ - spotlight.theme \ - tv-large.theme \ - tv.theme - OPTIONS_DEFINE= DOCS do-install: ${INSTALL_SCRIPT} ${WRKSRC}/cthumb ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/cthumb.1 ${STAGEDIR}${PREFIX}/man/man1 - @${MKDIR} ${STAGEDIR}${DATADIR} -.for theme in ${THEMES} - @${MKDIR} ${STAGEDIR}${DATADIR}/${theme} - ${INSTALL_DATA} ${WRKSRC}/themes/${theme}/* ${STAGEDIR}${DATADIR}/${theme} -.endfor + ${INSTALL_MAN} ${WRKSRC}/cthumb.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + @cd ${WRKSRC}/themes && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for doc in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} .endfor .include Index: head/graphics/cthumb/files/patch-Makefile.in =================================================================== --- head/graphics/cthumb/files/patch-Makefile.in (revision 456611) +++ head/graphics/cthumb/files/patch-Makefile.in (revision 456612) @@ -1,29 +1,30 @@ ---- Makefile.in.orig Sat Feb 14 17:17:57 2004 -+++ Makefile.in Sat Feb 14 17:19:04 2004 -@@ -13,25 +13,13 @@ +--- Makefile.in.orig 2002-08-13 17:24:05 UTC ++++ Makefile.in +@@ -13,13 +13,7 @@ bindir=@bindir@ mandir=@mandir@ themedir=@themedir@ -all: cthumb cthumb.spec - -cthumb.spec: cthumb.spec.in Makefile VERSION - ./configure --prefix=$(prefix) - -cthumb.1: cthumb.1.in configure - ./configure --prefix=$(prefix) +all: cthumb install: cthumb install -d $(bindir) $(prefix)/share $(themedir) $(mandir)/man1 - install -m555 cthumb $(bindir) +@@ -27,12 +21,6 @@ install: cthumb install cthumb.1 $(mandir)/man1 $(CPR) themes/* $(themedir) -- + -Makefile: Makefile.in VERSION configure - ./configure --prefix=/usr - -cthumb: cthumb.in VERSION configure - ./configure --prefix=/usr - +- dist: cthumb.spec cthumb # make prefix=$(shell pwd)/$(DD) install + install -d $(DD) Index: head/graphics/cthumb/files/patch-configure.in =================================================================== --- head/graphics/cthumb/files/patch-configure.in (revision 456611) +++ head/graphics/cthumb/files/patch-configure.in (revision 456612) @@ -1,11 +1,11 @@ ---- configure.in.orig Tue Aug 13 21:24:05 2002 -+++ configure.in Tue Jan 27 18:41:42 2004 -@@ -8,7 +8,7 @@ +--- configure.in.orig 2002-08-13 17:24:05 UTC ++++ configure.in +@@ -8,7 +8,7 @@ AC_CANONICAL_HOST dnl Checks for programs. AC_PATH_PROGS(perl_path, perl5 perl, no) AC_PROG_INSTALL -AC_CHECK_PROG(CPR, rsync, rsync -avqC, cp -r) +AC_CHECK_PROG(CPR, cp, cp -Rf) AC_SUBST(CPR) dnl Checks for libraries. Index: head/graphics/cthumb/files/patch-cthumb.in =================================================================== --- head/graphics/cthumb/files/patch-cthumb.in (revision 456611) +++ head/graphics/cthumb/files/patch-cthumb.in (revision 456612) @@ -1,22 +1,22 @@ ---- cthumb.in.orig Tue Aug 13 21:24:05 2002 -+++ cthumb.in Tue Jan 27 15:56:20 2004 -@@ -476,6 +476,7 @@ +--- cthumb.in.orig 2002-08-13 17:24:05 UTC ++++ cthumb.in +@@ -476,6 +476,7 @@ sub initial_checks { if ($CheckThumbnails) { eval "require Image::Size"; if (defined $Image::Size::VERSION) { + $Image::Size::VERSION = $Image::Size::VERSION; $HaveImageSizePerlModule=1; } } -@@ -579,7 +580,10 @@ +@@ -579,7 +580,10 @@ sub do_file { if ($NoMainIndex) { unlink($indextmp); } else { - if (system ("diff $indextmp $MainIndexName >/dev/null 2>/dev/null")) { + local $ENV{SHELL}='/bin/sh'; + system ("diff $indextmp $MainIndexName >/dev/null 2>/dev/null"); + my $difret = $? >> 8; + if ($difret != 0) { print "Index for $descfname in: $MainIndexName\n"; my $cmd = "mv $indextmp $MainIndexName"; if (system($cmd)) { print "cthumb warning: command '$cmd' failed: $!\n"; }