03f965e59a
Changes include: * --rows-columns=r,c will force all items to be fit in "c" columns, with each column having "r" lines (rows). * Makefile: use INSTALL_FILE to install man page * CD Label support - print directly on the CD or DVD * --page-offset now accepts an optional X-axis offset also --page-offset [xoffset,]yoffset * Fix cdinsert.pl CGI script to use PAPERSIZE option for A4 paper * Slim Case now applies to DVD outside also - creates outside inserts for half-height DVD cases - driven by these arguments: --create-dvd-outside --slim-case * --slim-case to be used instead of --create-slim-cover (deprecated) * End Cap text can now be rotated (flipped), --rotate-end-caps * {#M} and {#MB} support directives added {#M} {#MB} {#BI} {#B} {#I} can appear in input text, to make a line monospaced, monospaced-bold, bold-italic, bold, or italic respectively. Directives must appear in column 1 of line. * Added dvdlogo.eps * Changed aczone to aczoom * DVD outside cover inserts now supported, --create-dvd-outside option * Move down the DVD inside insert to fit better on letter and A4 paper * trayimage "fill2" now fills all - cover, tray, spine, as appropriate * Fixed bug in --outside-foldout and placement of tray image * Fixed BoundingBox in divx.eps * Date handling changed to use its own font size
52 lines
1.8 KiB
Text
52 lines
1.8 KiB
Text
$NetBSD: patch-ab,v 1.7 2005/12/30 15:00:02 ben Exp $
|
|
|
|
--- Makefile.orig 2005-08-23 08:22:44.000000000 -0700
|
|
+++ Makefile
|
|
@@ -8,11 +8,11 @@ ZIPVERSION = 360
|
|
# Change these to locations you need, also
|
|
# remember to edit cdlabelgen and its @where_is_the_template as needed.
|
|
|
|
-BASE_DIR = /usr/local
|
|
+BASE_DIR = ${PREFIX}
|
|
# BASE_DIR = /usr/local
|
|
# BASE_DIR = /opt
|
|
BIN_DIR = $(BASE_DIR)/bin
|
|
-LIB_DIR = $(BASE_DIR)/lib/cdlabelgen
|
|
+LIB_DIR = $(BASE_DIR)/share/cdlabelgen
|
|
MAN_DIR = $(BASE_DIR)/man
|
|
SOURCES = cdlabelgen ChangeLog INSTALL README Makefile ../cdinsert.pl INSTALL.WEB cdlabelgen.pod cdlabelgen.1 cdlabelgen.html spec.template
|
|
POSTSCRIPT = template.ps *.eps
|
|
@@ -31,6 +31,14 @@ INSTALL_FILE := install -m 0644
|
|
# ---------------
|
|
|
|
all: cdlabelgen.html cdlabelgen.1
|
|
+ ${SED} s=@PREFIX@=${PREFIX}=g <cdlabelgen >cdlabelgen.new
|
|
+ ${MV} cdlabelgen.new cdlabelgen
|
|
+ if [ `id -u` -eq 0 ]; then \
|
|
+ perldoc_flags="-U"; \
|
|
+ else \
|
|
+ perldoc_flags=""; \
|
|
+ fi; \
|
|
+ ${LOCALBASE}/bin/perldoc $$perldoc_flags cdlabelgen >cdlabelgen.0
|
|
|
|
cdlabelgen.html: cdlabelgen.pod
|
|
pod2html --outfile=$@ --infile=$?
|
|
@@ -43,13 +51,13 @@ cdlabelgen.1: cdlabelgen.pod
|
|
install: all
|
|
@echo "Installing cdlabelgen in $(BIN_DIR) and $(LIB_DIR)"
|
|
@echo ""
|
|
- $(INSTALL_DIR) $(BIN_DIR)
|
|
- $(INSTALL) cdlabelgen $(BIN_DIR)
|
|
- $(INSTALL_FILE) cdlabelgen.1 $(MAN_DIR)/man1
|
|
- $(INSTALL_DIR) $(LIB_DIR)
|
|
+
|
|
+ ${BSD_INSTALL_SCRIPT} cdlabelgen ${BIN_DIR}
|
|
+ ${BSD_INSTALL_MAN} cdlabelgen.1 ${MAN_DIR}/man1
|
|
+ ${BSD_INSTALL_DATA_DIR} ${LIB_DIR}
|
|
set -e; \
|
|
for file in $(POSTSCRIPT); do \
|
|
- $(INSTALL_FILE) postscript/$$file $(LIB_DIR)/; \
|
|
+ ${BSD_INSTALL_DATA} postscript/$$file ${LIB_DIR}; \
|
|
done
|
|
@echo "** Done. Check $(BIN_DIR)/cdlabelgen and fix @where_is_the_template - if needed!"
|
|
|