Files
pkgsrc-ng/editors/mg/patches/patch-ag
2013-09-26 17:14:40 +02:00

43 lines
1.0 KiB
Plaintext

$NetBSD: patch-ag,v 1.2 2012/12/12 12:47:50 wiz Exp $
--- Makefile.in.orig 2011-09-05 18:59:14.000000000 +0000
+++ Makefile.in
@@ -7,20 +7,21 @@
name= mg
-prefix= /usr/local
+prefix?= /usr/pkg/
bindir= $(prefix)/bin
libdir= $(prefix)/lib
includedir= $(prefix)/include
mandir= $(prefix)/man
+docdir= $(prefix)/share/doc
CC= gcc
CFLAGS?= -O2 -pipe
-CFLAGS+= -g -Wall -Werror -Wno-error=unused-but-set-variable
-LIBS= -lncurses
+CFLAGS+= -g -Wall -Werror
+LIBS+= -lncurses
-INSTALL= /usr/bin/install
-STRIP= /usr/bin/strip
+INSTALL?= /usr/bin/install
+STRIP?= /usr/bin/strip
OBJS= autoexec.o \
@@ -86,8 +87,10 @@ clean:
install: $(name) $(name).1
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL) -d $(DESTDIR)$(mandir)/man1
+ $(INSTALL) -d $(DESTDIR)$(docdir)/mg
$(INSTALL) -m 755 $(name) $(DESTDIR)$(bindir)/$(name)
$(INSTALL) -m 444 $(name).1 $(DESTDIR)$(mandir)/man1/$(name).1
+ $(INSTALL) -m 444 tutorial $(DESTDIR)$(docdir)/mg/tutorial
install-strip: install
$(STRIP) $(DESTDIR)$(bindir)/$(name)