53 lines
1.3 KiB
Text
53 lines
1.3 KiB
Text
$NetBSD: patch-aa,v 1.3 2016/03/30 08:45:32 jperkin Exp $
|
|
|
|
Use pkgsrc layout/flags.
|
|
|
|
--- Makefile.orig 1995-11-11 20:39:27.000000000 +0100
|
|
+++ Makefile
|
|
@@ -1,16 +1,13 @@
|
|
# Makefile for saytime
|
|
|
|
-#SOUND_DIR = \"/usr/local/lib/saytime\"
|
|
-SOUND_DIR = \"/jef/times\"
|
|
-#SOUND_DIR = \"/home/ee/u0/jef/web/times\"
|
|
+SOUND_DIR = \"@LOCALBASE@/share/saytime\"
|
|
|
|
-#BINDIR = /usr/local/bin
|
|
-BINDIR = /home/ee/u0/www/bin
|
|
+BINDIR = @LOCALBASE@/bin
|
|
|
|
-MANDIR = /usr/local/man/man1
|
|
+MANDIR = @LOCALBASE@/${PKGMANDIR}/man1
|
|
|
|
-#DEFINES = -DSOUND_DIR=$(SOUND_DIR)
|
|
-DEFINES = -DSOUND_DIR=$(SOUND_DIR) -DCGI
|
|
+DEFINES = -DSOUND_DIR=$(SOUND_DIR)
|
|
+#DEFINES = -DSOUND_DIR=$(SOUND_DIR) -DCGI
|
|
#DEFINES = -DSOUND_DIR=$(SOUND_DIR) -DWRITE_STDOUT -DAUDIO_HEADER
|
|
#DEFINES = -DSOUND_DIR=$(SOUND_DIR) -DWRITE_STDOUT
|
|
|
|
@@ -18,8 +15,7 @@ DEFINES = -DSOUND_DIR=$(SOUND_DIR) -DCGI
|
|
CC = gcc
|
|
CFLAGS = -O $(DEFINES)
|
|
|
|
-#LDFLAGS = -s
|
|
-LDFLAGS = -s -static
|
|
+LDFLAGS = -s
|
|
|
|
all: saytime
|
|
|
|
@@ -30,10 +26,10 @@ saytime: saytime.o
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
install: all
|
|
- rm -f $(BINDIR)/saytime
|
|
- cp saytime $(BINDIR)
|
|
- rm -f $(MANDIR)/saytime.1
|
|
- cp saytime.1 $(MANDIR)
|
|
+ rm -f ${DESTDIR}$(BINDIR)/saytime
|
|
+ cp saytime ${DESTDIR}$(BINDIR)
|
|
+ rm -f ${DESTDIR}$(MANDIR)/saytime.1
|
|
+ cp saytime.1 ${DESTDIR}$(MANDIR)
|
|
|
|
clean:
|
|
rm -f saytime *.o a.out core
|