be48f166eb
* --tray-overlay option added - use this to overlay a EPS file onto the tray, for example, a barcode image. * cdinsert.pl now used to display initial form, as well as a filled-in form to allow for easy corrections/resubmits on the done page. * Create covers for double-sided DVD cases that hold 6 DVDs. * cdinsert.pl now supports "Omit title/subtitle from Cover" option. * Support for double-depth slim DVD cases. --slim-double-case option added.
53 lines
1.8 KiB
Text
53 lines
1.8 KiB
Text
$NetBSD: patch-ab,v 1.11 2013/02/16 08:56:45 shattered Exp $
|
|
|
|
--- Makefile.orig 2012-04-15 22:22:19.000000000 +0000
|
|
+++ Makefile
|
|
@@ -10,12 +10,12 @@ ZIPVERSION = 420
|
|
# Change these to locations you need, also
|
|
# remember to edit cdlabelgen and its @where_is_the_template as needed.
|
|
|
|
-BASE_DIR = /usr
|
|
+BASE_DIR = ${PREFIX}
|
|
# BASE_DIR = /usr/local
|
|
# BASE_DIR = /opt
|
|
BIN_DIR = $(BASE_DIR)/bin
|
|
LIB_DIR = $(BASE_DIR)/share/cdlabelgen
|
|
-MAN_DIR = $(BASE_DIR)/share/man
|
|
+MAN_DIR = $(BASE_DIR)/$(PKGMANDIR)
|
|
SOURCES = cdlabelgen ChangeLog INSTALL README Makefile ../cdinsert.pl INSTALL.WEB cdlabelgen.pod cdlabelgen.1 cdlabelgen.html spec.template
|
|
POSTSCRIPT = template.ps *.eps
|
|
DISTFILES = $(SOURCES) $(POSTSCRIPT)
|
|
@@ -37,6 +37,14 @@ RPM_TOPDIR := $(HOME)/rpmbuild
|
|
# ---------------
|
|
|
|
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; \
|
|
+ perldoc $$perldoc_flags cdlabelgen >cdlabelgen.0
|
|
|
|
cdlabelgen.html: cdlabelgen.pod
|
|
pod2html --outfile=$@ --infile=$?
|
|
@@ -49,13 +57,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 ${DESTDIR}${BIN_DIR}
|
|
+ ${BSD_INSTALL_MAN} cdlabelgen.1 ${DESTDIR}${MAN_DIR}/man1
|
|
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${LIB_DIR}
|
|
set -e; \
|
|
for file in $(POSTSCRIPT); do \
|
|
- $(INSTALL_FILE) postscript/$$file $(LIB_DIR)/; \
|
|
+ ${BSD_INSTALL_DATA} postscript/$$file ${DESTDIR}${LIB_DIR}; \
|
|
done
|
|
@echo "** Done. Check $(BIN_DIR)/cdlabelgen and fix @where_is_the_template - if needed!"
|
|
|