pkgsrc/print/jcabc2ps/patches/patch-aa
ben 99abb555bd Initial import of jcabc2ps-20060106, a music typesetting program for abc.
Jcabc2ps is a typesetting program for abc.  It reads a file containing
abc code and outputs the music to another file in Postscript.  This is
John Chambers' clone of Michael Methfessel's abc2ps program.
2006-04-02 22:18:58 +00:00

69 lines
1.8 KiB
Text

$NetBSD: patch-aa,v 1.1.1.1 2006/04/02 22:18:58 ben Exp $
--- Makefile.orig 2006-01-06 15:20:13.000000000 -0800
+++ Makefile
@@ -26,9 +26,9 @@ SHELL=/bin/sh
# You might want to change this to control how to install things:
# How we link or copy the program to where it belongs:
-LC=./Lc
+#LC=./Lc
#LC=/bin/ln -f
-#LC=/bin/cp -f
+LC=/bin/cp -f
#LC=/bin/mv -f
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
@@ -70,8 +70,8 @@ PS= \
Words1 w_01 w_AllMyLoving1 w_AllMyLoving2 w_NoFrontiers w_OrdinaryMan
# compilation options
-CC = gcc
-CFLAGS = -Wall -I/usr/demo/SOUND/include
+#CC = gcc
+#CFLAGS = -Wall -I/usr/demo/SOUND/include
# using Sun audio library
#CC = cc
@@ -79,15 +79,16 @@ CFLAGS = -Wall -I/usr/demo/SOUND/includ
#LDFLAGS = -L/usr/demo/SOUND/lib -laudio -lm
# using supplied audio functions
-CC = cc
-CFLAGS = -g
-LDFLAGS = -lm -g
+#CC = cc
+#CFLAGS = -g
+#LDFLAGS = -lm -g
+LDFLAGS+=-lm
# installation directories
-SYSDIR = $(HOME)
-BINDIR1 = $(HOME)/bin
-BINDIR2 = $(HOME)/p/cgi/abc
-MANDIR = $(SYSDIR)/man/man1
+SYSDIR = ${PREFIX}
+BINDIR1 = ${PREFIX}/bin
+#BINDIR2 = $(HOME)/p/cgi/abc
+#MANDIR = $(SYSDIR)/man/man1
OBJECTS=jcabc2ps.o \
buffer.o format.o macro.o memBlock.o minStr.o misc.o music.o parse.o \
@@ -189,7 +190,7 @@ util.o: \
# takes a file name and a directory in which to install it. The manual
# installation might take some tweaking for your system.
-install: $(BINDIR1)/$(A2P1) $(BINDIR2)/$(A2P1)
+install: $(BINDIR1)/$(A2P1)
man: $(MANDIR)/$(A2P1).1.gz
@@ -199,7 +200,7 @@ $(MANDIR)/$(A2P1).1: $(A2P1).1
# $(LC) $(A2P1).1.gz $(MANDIR)
$(BINDIR1)/$(A2P1): $(A2P1); $(LC) $(A2P1) $(BINDIR1)
-$(BINDIR2)/$(A2P1): $(A2P1); $(LC) $(A2P1) $(BINDIR2)
+#$(BINDIR2)/$(A2P1): $(A2P1); $(LC) $(A2P1) $(BINDIR2)
neat:
-rm -f core *- *.out log/*