pkgsrc/games/abuse/patches/patch-ab
rillig d24142bb17 Fixed pkglint warnings, especially absolute paths and hard-coded
usernames. Now it is possible to install this package as unprivileged
user.
2006-06-17 18:17:29 +00:00

43 lines
1.4 KiB
Text

$NetBSD: patch-ab,v 1.4 2006/06/17 18:17:29 rillig Exp $
--- abuse/Makefile.in.orig 1997-07-09 09:55:21.000000000 +0200
+++ abuse/Makefile.in
@@ -37,10 +37,10 @@ AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
-INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL = ${BSD_INSTALL}
+INSTALL_PROGRAM = ${BSD_INSTALL_PROGRAM}
+INSTALL_DATA = ${BSD_INSTALL_DATA}
+INSTALL_SCRIPT = ${BSD_INSTALL_SCRIPT}
transform = @program_transform_name@
NORMAL_INSTALL = true
@@ -170,7 +170,7 @@ abuse_x11R6_LDFLAGS =
SCRIPTS = $(bin_SCRIPTS)
CFLAGS = @CFLAGS@
-LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
+LINK = $(CXX) $(CFLAGS) $(LDFLAGS) -o $@
DATA = $(pkgdata_DATA)
DIST_COMMON = Makefile.am Makefile.in abuse.in acinclude.m4 aclocal.m4 \
@@ -239,11 +239,11 @@ maintainer-clean-pkglibPROGRAMS:
install-pkglibPROGRAMS: $(pkglib_PROGRAMS)
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(pkglibdir)
+ $(mkinstalldirs) $(bindir)
@list='$(pkglib_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \
- echo " $(INSTALL_PROGRAM) $$p $(pkglibdir)/`echo $$p|sed '$(transform)'`"; \
- $(INSTALL_PROGRAM) $$p $(pkglibdir)/`echo $$p|sed '$(transform)'`; \
+ echo " $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
+ $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
else :; fi; \
done