pkgsrc/graphics/cdlabelgen/Makefile

34 lines
892 B
Makefile
Raw Normal View History

2018-08-22 11:43:40 +02:00
# $NetBSD: Makefile,v 1.35 2018/08/22 09:45:11 wiz Exp $
DISTNAME= cdlabelgen-4.3.0
2018-08-22 11:43:40 +02:00
PKGREVISION= 3
Update cdlabelgen to 2.5.0. Changes include: cdlablegen: * added support for long options * added some options to choose different colors for plaque background, category, subcategory and text * added a man page * add /opt/lib/cdlabelgen/ to template search paths * added: -M option, to print out envelope for a CD * -v <very large number> is no longer an error, instead, all items are printed on cover, none on the tray card. * also added .spec file, from other sources on web, for RPM installs. Use: rpm -ta cdlabelgen-n.n.n.tgz to create RPM [not tested] * -v option to support splitting items array into items for cover, and items for tray * word wrap could result in 0 items, now ensures that #items >= 1 * fixed bug where -f <file> containing one item only was being skipped; also added code to handle all kinds of end-of-line delimiters in the items file - each line is considered to be one item, so need to handle all kinds of EOLN characters. * -w word wrap was not working, now should work better in all cases * added -p option, pass to template.ps option to clip items instead of auto_reducing them to fit to a column * allow skipping either -c or -s option (or both) * minor change to insert \n in @items - keeps PostScript DSC compliant (as far as possible!) - line length should be < 255 chars done to keep warning messages away when using GSview template.ps: * added support for plaque background color, category text color, subcategory text color and text color * increased normal cd case insert dimensions very slightly for better fit * removed the ISOLatin1 recoding of fonts; added %%BeginProlog DSC comment - this allows piping output through the ogonkify program which can recode in a number of encodings. see man page for more information. * fill2 background should fill two endcaps only, do not fill the extreme right-hand tongue-cap, since the tongue-cap does not exist in normal cd inserts * added optional image translate arguments for -S and -T to offset cover/tray image as required * added -y: move entire printout up or down; ex: -y 1.5, for A4 paper size * added -l: control width of cover/tray edge lines, 0 skips printing edge lines entirely * support printing of CD envelopes, merged in envelope template sent by Ronald Rael Harvest <number6@cox.net> * added variables to control left/right margins for both cover and tray * both cover and tray can print list of items, uses two different arrays containing the items * add "fill2" option to fill image in tray and end-caps too in addition to just filling the interior of the tray card * -s <subban_string> would not print along the spine even when it would fit, Rewrote make_endcap function. * added larger bottom page offset - hopefully, will work on most printers using A4 size (Europe) * -p option now actually clips text (instead of just clipping graphically - used to leave partial letters on the printout) now full characters at the end of the string are omitted if needed to fit the column * major change to the font size and number of columns computation for list of items Added option to clip text instead of auto_reducing text to fit to column * images can be scaled to completely fill cover and tray card - so they can be used as background images. * added support directives {#BI} {#B} {#I}, appearing in input text, make a line bold-italic, or bold, or italic respectively. Directives must appear in column 1 of line. * bug fix: in n columns output, if number of items was not a multiple
2003-03-23 03:02:33 +01:00
CATEGORIES= graphics
MASTER_SITES= http://www.aczoom.com/pub/tools/
Update cdlabelgen to 2.5.0. Changes include: cdlablegen: * added support for long options * added some options to choose different colors for plaque background, category, subcategory and text * added a man page * add /opt/lib/cdlabelgen/ to template search paths * added: -M option, to print out envelope for a CD * -v <very large number> is no longer an error, instead, all items are printed on cover, none on the tray card. * also added .spec file, from other sources on web, for RPM installs. Use: rpm -ta cdlabelgen-n.n.n.tgz to create RPM [not tested] * -v option to support splitting items array into items for cover, and items for tray * word wrap could result in 0 items, now ensures that #items >= 1 * fixed bug where -f <file> containing one item only was being skipped; also added code to handle all kinds of end-of-line delimiters in the items file - each line is considered to be one item, so need to handle all kinds of EOLN characters. * -w word wrap was not working, now should work better in all cases * added -p option, pass to template.ps option to clip items instead of auto_reducing them to fit to a column * allow skipping either -c or -s option (or both) * minor change to insert \n in @items - keeps PostScript DSC compliant (as far as possible!) - line length should be < 255 chars done to keep warning messages away when using GSview template.ps: * added support for plaque background color, category text color, subcategory text color and text color * increased normal cd case insert dimensions very slightly for better fit * removed the ISOLatin1 recoding of fonts; added %%BeginProlog DSC comment - this allows piping output through the ogonkify program which can recode in a number of encodings. see man page for more information. * fill2 background should fill two endcaps only, do not fill the extreme right-hand tongue-cap, since the tongue-cap does not exist in normal cd inserts * added optional image translate arguments for -S and -T to offset cover/tray image as required * added -y: move entire printout up or down; ex: -y 1.5, for A4 paper size * added -l: control width of cover/tray edge lines, 0 skips printing edge lines entirely * support printing of CD envelopes, merged in envelope template sent by Ronald Rael Harvest <number6@cox.net> * added variables to control left/right margins for both cover and tray * both cover and tray can print list of items, uses two different arrays containing the items * add "fill2" option to fill image in tray and end-caps too in addition to just filling the interior of the tray card * -s <subban_string> would not print along the spine even when it would fit, Rewrote make_endcap function. * added larger bottom page offset - hopefully, will work on most printers using A4 size (Europe) * -p option now actually clips text (instead of just clipping graphically - used to leave partial letters on the printout) now full characters at the end of the string are omitted if needed to fit the column * major change to the font size and number of columns computation for list of items Added option to clip text instead of auto_reducing text to fit to column * images can be scaled to completely fill cover and tray card - so they can be used as background images. * added support directives {#BI} {#B} {#I}, appearing in input text, make a line bold-italic, or bold, or italic respectively. Directives must appear in column 1 of line. * bug fix: in n columns output, if number of items was not a multiple
2003-03-23 03:02:33 +01:00
EXTRACT_SUFX= .tgz
2010-11-01 01:08:09 +01:00
MAINTAINER= pkgsrc-users@NetBSD.org
2017-08-01 16:58:51 +02:00
HOMEPAGE= https://www.aczoom.com/tools/cdinsert/
COMMENT= Generate frontcards and traycards for CDs
USE_TOOLS+= perl:run
USE_LANGUAGES= # empty
2011-11-29 18:47:41 +01:00
REPLACE_PERL+= cdlabelgen
Update cdlabelgen to 2.5.0. Changes include: cdlablegen: * added support for long options * added some options to choose different colors for plaque background, category, subcategory and text * added a man page * add /opt/lib/cdlabelgen/ to template search paths * added: -M option, to print out envelope for a CD * -v <very large number> is no longer an error, instead, all items are printed on cover, none on the tray card. * also added .spec file, from other sources on web, for RPM installs. Use: rpm -ta cdlabelgen-n.n.n.tgz to create RPM [not tested] * -v option to support splitting items array into items for cover, and items for tray * word wrap could result in 0 items, now ensures that #items >= 1 * fixed bug where -f <file> containing one item only was being skipped; also added code to handle all kinds of end-of-line delimiters in the items file - each line is considered to be one item, so need to handle all kinds of EOLN characters. * -w word wrap was not working, now should work better in all cases * added -p option, pass to template.ps option to clip items instead of auto_reducing them to fit to a column * allow skipping either -c or -s option (or both) * minor change to insert \n in @items - keeps PostScript DSC compliant (as far as possible!) - line length should be < 255 chars done to keep warning messages away when using GSview template.ps: * added support for plaque background color, category text color, subcategory text color and text color * increased normal cd case insert dimensions very slightly for better fit * removed the ISOLatin1 recoding of fonts; added %%BeginProlog DSC comment - this allows piping output through the ogonkify program which can recode in a number of encodings. see man page for more information. * fill2 background should fill two endcaps only, do not fill the extreme right-hand tongue-cap, since the tongue-cap does not exist in normal cd inserts * added optional image translate arguments for -S and -T to offset cover/tray image as required * added -y: move entire printout up or down; ex: -y 1.5, for A4 paper size * added -l: control width of cover/tray edge lines, 0 skips printing edge lines entirely * support printing of CD envelopes, merged in envelope template sent by Ronald Rael Harvest <number6@cox.net> * added variables to control left/right margins for both cover and tray * both cover and tray can print list of items, uses two different arrays containing the items * add "fill2" option to fill image in tray and end-caps too in addition to just filling the interior of the tray card * -s <subban_string> would not print along the spine even when it would fit, Rewrote make_endcap function. * added larger bottom page offset - hopefully, will work on most printers using A4 size (Europe) * -p option now actually clips text (instead of just clipping graphically - used to leave partial letters on the printout) now full characters at the end of the string are omitted if needed to fit the column * major change to the font size and number of columns computation for list of items Added option to clip text instead of auto_reducing text to fit to column * images can be scaled to completely fill cover and tray card - so they can be used as background images. * added support directives {#BI} {#B} {#I}, appearing in input text, make a line bold-italic, or bold, or italic respectively. Directives must appear in column 1 of line. * bug fix: in n columns output, if number of items was not a multiple
2003-03-23 03:02:33 +01:00
MAKE_FLAGS+= BASE_DIR=${DESTDIR}${PREFIX}
MAKE_FLAGS+= MAN_DIR=${DESTDIR}${PREFIX}/${PKGMANDIR}
MAKE_FLAGS+= INSTALL=${INSTALL_SCRIPT:Q}
MAKE_FLAGS+= INSTALL_FILE=${INSTALL_DATA:Q}
MAKE_FLAGS+= INSTALL_MAN=${INSTALL_MAN:Q}
INSTALLATION_DIRS= bin share/cdlabelgen ${PKGMANDIR}/man1
2008-06-20 03:09:05 +02:00
post-extract:
cd ${WRKSRC} && ${CHMOD} go+r *
post-build:
cd ${WRKSRC} && \
${SED} -e "s,@PREFIX@,${PREFIX},g" cdlabelgen > cdlabelgen.new && \
${MV} cdlabelgen.new cdlabelgen
.include "../../mk/bsd.pkg.mk"