pkgsrc/x11/ratmen/patches/patch-ab
2009-07-07 18:04:13 +00:00

35 lines
849 B
Text

$NetBSD: patch-ab,v 1.2 2009/07/07 18:07:11 joerg Exp $
--- Makefile.orig 2003-02-25 22:21:15.000000000 +0100
+++ Makefile
@@ -5,7 +5,7 @@
PROG = ratmen
-PREFIX=/usr/local
+#PREFIX=/usr/local
MANDIR=$(PREFIX)/man
OPTIMIZE ?= -Os
@@ -13,11 +13,11 @@ DEBUG ?=
WARN ?= -Wall -ansi -pedantic
CC = gcc
-LIBS = -L/usr/X11R6/lib -lX11
+LIBS = -lX11
CFLAGS = $(OPTIMIZE) $(WARN) $(DEBUG)
$(PROG): $(PROG).c
- $(CC) $(CFLAGS) $< $(LIBS) -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
clean:
debian/rules clean
@@ -35,5 +35,5 @@ doc:
groff -Tascii -man ratmen.1|less
install: $(PROG)
- install -D -p -m 755 -s $(PROG) $(PREFIX)/bin/$(PROG)
- install -D -p -m 755 $(PROG).1 $(MANDIR)/man1/$(PROG).1
+ $(BSD_INSTALL_PROGRAM_DIR) ${DESTDIR}$(PREFIX)/bin
+ $(BSD_INSTALL_PROGRAM) $(PROG) ${DESTDIR}$(PREFIX)/bin