mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 10:18:09 -04:00
25 lines
958 B
Plaintext
25 lines
958 B
Plaintext
$NetBSD: patch-ah,v 1.4 2013/06/15 21:02:03 adam Exp $
|
|
|
|
Fix VERSION dependency, or install will fail on case-insensitive file-system.
|
|
Don't install another copy.
|
|
|
|
--- Makefile.in.orig 2012-06-12 16:56:20.000000000 +0000
|
|
+++ Makefile.in
|
|
@@ -312,7 +312,7 @@ strsep.o: $(srcdir)/missing/strsep.c
|
|
version.o: version.c
|
|
$(CC) $(FULL_CFLAGS) -c version.c
|
|
|
|
-version.c: $(srcdir)/VERSION
|
|
+version.c: VERSION
|
|
@rm -f $@
|
|
if grep GIT ${srcdir}/VERSION >/dev/null; then \
|
|
read ver <${srcdir}/VERSION; \
|
|
@@ -326,7 +326,6 @@ install: all
|
|
[ -d $(DESTDIR)$(sbindir) ] || \
|
|
(mkdir -p $(DESTDIR)$(sbindir); chmod 755 $(DESTDIR)$(sbindir))
|
|
$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
|
|
- $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG).`cat ${srcdir}/VERSION`
|
|
[ -d $(DESTDIR)$(mandir)/man1 ] || \
|
|
(mkdir -p $(DESTDIR)$(mandir)/man1; chmod 755 $(DESTDIR)$(mandir)/man1)
|
|
$(INSTALL_DATA) $(PROG).1 $(DESTDIR)$(mandir)/man1/$(PROG).1
|