pkgsrc/www/bins/Makefile

69 lines
2.8 KiB
Makefile
Raw Normal View History

2003-01-25 19:02:14 +01:00
# $NetBSD: Makefile,v 1.16 2003/01/25 18:02:14 cjep Exp $
#
DISTNAME= bins-1.1.20
CATEGORIES= www graphics
MASTER_SITES= http://jsautret.free.fr/BINS/
EXTRACT_SUFX= .tar.bz2
update to bins-1.1.14 provided in PR pkg/17984 by Eric Jacoboni, jaco at scrogneugneu.org. Changes since 1.1.10 are: - Some image files and directories can now be excluded by setting some regexp to excludeFiles and excludeDirs new parameters. excludeDirs is set to ^CVS$ in default config, and thus, CVS subdirs aren't processed by bins now. - HTML generation performances have been increased by using the blind_cache parameter of HTML::Template. Thanks to Mark Eichin for this one. - Corrected a bug that wrongly set width and height of thumbnails and prevented Internet Explorer (at least version 5) to display them. - Changed the image template so that Internet Explorer can display the title tooltip on the prev/next thumbnails (when thumbPrevNext is 1). - bins now process .thm (THuMbnail) files. Accroding to Mark Eichin, Canon cameras that do movies generate mvi*.thm files which are really small JPEGs with exif data. - It is now possible to use the <sizes> parameter in picture description files to have different scaled images number and scaled sizes for pictures in the same album (for example, one can have three scaled pictures, small, medium and big, for most of the images of an album, and a fourth one, huge, for big panoramas). Some other parameters, such as titleOnThumbnail, defaultSize or thumbnailBackground, can now also be used on a per image basis. - A bug introduced in 1.1.10 version that caused scaleIfSameSize parameter to be always 1 has been corrected. Thanks to Mark Eichin for pointing out the problem and to Dan (mcmahill @ mtl.mit.edu) and Kamil Iskra for the correction path. - jpegtran can now be used even if it cannot handle the same file in input and output (this is the case for the jpegtran shipped with most GNU/Linux distribution, except Debian). Patch from Kamil Iskra. - Corrected encoding problem on creation date. - Sorting order for directories and/or pictures can now be reversed, using the -r command line option or the reverseOrder parameter. Patch from Christian Hoenig for the -r option. - A bug on automatic rotation of destination image when -o was used has been corrected (width and height were inversed). - French translation has been corrected. - Some javascript code is now added in thumbnails pages to preload thumbnails of the next page when current one is loaded, to speed up the album browsing. This can be deactivated with the new javaScriptPreloadImages parameter. - Generated HTML code is now cleaned up to reduce the size of pages and thus, speed up browsing. This reduces the size of HTML BINS files by about 30%. This uses the HTML::Clean(3) library (new dependency). This can be deactivated with the new compactHTML parameter. - Use of the jpegtran program is now deactivated in default config (some versions fail to perform rotation correctly). A new parameter rotateWithJpegtran has been added. Set it to 1 in binsrc to continue to use jpegtran. - Added some non breakable spaces in HTML code. - Strip . (dots) in small size names when creating file names (this caused problem with italian i18n). You may have to delete all your generated HTML files before running bins on a old italian album to clean it up. - Some minor bugs have been corrected. - French translation has been corrected.
2002-08-24 13:24:55 +02:00
MAINTAINER= dmcmahill@netbsd.org
HOMEPAGE= http://bins.sautret.org/
COMMENT= static HTML photo album generator
DEPENDS+= p5-gettext>=1.01:../../devel/p5-gettext
2002-09-11 11:15:02 +02:00
DEPENDS+= p5-Text-Iconv>=1.1:../../converters/p5-Text-Iconv
DEPENDS+= p5-Storable>=2.04:../../devel/p5-Storable
DEPENDS+= p5-Image-Info>=1.10:../../graphics/p5-Image-Info
DEPENDS+= p5-Image-Size>=2.980:../../graphics/p5-Image-Size
DEPENDS+= p5-IO-String>=1.01:../../devel/p5-IO-String
DEPENDS+= p5-PerlMagick>=5.3.9nb1:../../graphics/p5-PerlMagick
DEPENDS+= p5-XML-Grove>=0.46.0.1:../../textproc/p5-XML-Grove
DEPENDS+= p5-XML-Handler-YAWriter-0.23:../../textproc/p5-XML-YAWriter
DEPENDS+= p5-XML-Parser>=2.30:../../textproc/p5-XML-Parser
update to bins-1.1.14 provided in PR pkg/17984 by Eric Jacoboni, jaco at scrogneugneu.org. Changes since 1.1.10 are: - Some image files and directories can now be excluded by setting some regexp to excludeFiles and excludeDirs new parameters. excludeDirs is set to ^CVS$ in default config, and thus, CVS subdirs aren't processed by bins now. - HTML generation performances have been increased by using the blind_cache parameter of HTML::Template. Thanks to Mark Eichin for this one. - Corrected a bug that wrongly set width and height of thumbnails and prevented Internet Explorer (at least version 5) to display them. - Changed the image template so that Internet Explorer can display the title tooltip on the prev/next thumbnails (when thumbPrevNext is 1). - bins now process .thm (THuMbnail) files. Accroding to Mark Eichin, Canon cameras that do movies generate mvi*.thm files which are really small JPEGs with exif data. - It is now possible to use the <sizes> parameter in picture description files to have different scaled images number and scaled sizes for pictures in the same album (for example, one can have three scaled pictures, small, medium and big, for most of the images of an album, and a fourth one, huge, for big panoramas). Some other parameters, such as titleOnThumbnail, defaultSize or thumbnailBackground, can now also be used on a per image basis. - A bug introduced in 1.1.10 version that caused scaleIfSameSize parameter to be always 1 has been corrected. Thanks to Mark Eichin for pointing out the problem and to Dan (mcmahill @ mtl.mit.edu) and Kamil Iskra for the correction path. - jpegtran can now be used even if it cannot handle the same file in input and output (this is the case for the jpegtran shipped with most GNU/Linux distribution, except Debian). Patch from Kamil Iskra. - Corrected encoding problem on creation date. - Sorting order for directories and/or pictures can now be reversed, using the -r command line option or the reverseOrder parameter. Patch from Christian Hoenig for the -r option. - A bug on automatic rotation of destination image when -o was used has been corrected (width and height were inversed). - French translation has been corrected. - Some javascript code is now added in thumbnails pages to preload thumbnails of the next page when current one is loaded, to speed up the album browsing. This can be deactivated with the new javaScriptPreloadImages parameter. - Generated HTML code is now cleaned up to reduce the size of pages and thus, speed up browsing. This reduces the size of HTML BINS files by about 30%. This uses the HTML::Clean(3) library (new dependency). This can be deactivated with the new compactHTML parameter. - Use of the jpegtran program is now deactivated in default config (some versions fail to perform rotation correctly). A new parameter rotateWithJpegtran has been added. Set it to 1 in binsrc to continue to use jpegtran. - Added some non breakable spaces in HTML code. - Strip . (dots) in small size names when creating file names (this caused problem with italian i18n). You may have to delete all your generated HTML files before running bins on a old italian album to clean it up. - Some minor bugs have been corrected. - French translation has been corrected.
2002-08-24 13:24:55 +02:00
DEPENDS+= p5-HTML-Clean>=0.8:../../www/p5-HTML-Clean
DEPENDS+= p5-HTML-Parser>=3.26:../../www/p5-HTML-Parser
DEPENDS+= p5-HTML-Template>=2.5:../../www/p5-HTML-Template
DEPENDS+= p5-URI>=1.19:../../www/p5-URI
2003-01-25 19:02:14 +01:00
USE_BUILDLINK2= YES
USE_PKGLOCALEDIR= YES
# bins-edit-gui not installed because many needed packages are missing
# bins_txt2xml not installed because it's an upgrade tool, and we didn't
# have previous versions in pkgsrc.
REPLACE_PERL= bins bins_edit bins-edit-gui bins_txt2xml
post-patch:
${MV} ${WRKSRC}/bins ${WRKSRC}/bins.bak
2002-10-26 21:38:12 +02:00
${SED} -e 's;/etc/bins;${PKG_SYSCONFDIR}/bins;g' \
-e 's;/usr/local/share/locale;${PREFIX}/${PKGLOCALEDIR}/locale;g' \
${WRKSRC}/bins.bak > ${WRKSRC}/bins
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bins ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bins_edit ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/bins.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/bins_edit.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/bins
${INSTALL_DATA} ${WRKSRC}/doc/*.html \
${PREFIX}/share/doc/html/bins
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bins/templates.default
${INSTALL_DATA} ${WRKSRC}/templates/*.html \
${PREFIX}/share/examples/bins/templates.default
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bins/templates.joi
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bins/templates.joi/static
${INSTALL_DATA} ${WRKSRC}/templates.joi/*.html \
${PREFIX}/share/examples/bins/templates.joi
${INSTALL_DATA} ${WRKSRC}/templates.joi/static/*.css \
${WRKSRC}/templates.joi/static/*.png \
${WRKSRC}/templates.joi/static/*.js \
${PREFIX}/share/examples/bins/templates.joi/static
${INSTALL_DATA} ${WRKSRC}/binsrc \
${PREFIX}/share/examples/bins
for lang in fr de pl it ru es zh; do \
${INSTALL_DATA} ${WRKSRC}/intl/$$lang.mo \
${PREFIX}/${PKGLOCALEDIR}/locale/$$lang/LC_MESSAGES/bins.mo; \
done
2003-01-25 19:02:14 +01:00
.include "../../lang/perl5/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"