[BACK]Return to patch-ak CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mbone / vat / patches

File: [cvs.NetBSD.org] / pkgsrc / mbone / vat / patches / patch-ak (download)

Revision 1.3, Fri Jun 20 01:09:25 2008 UTC (14 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.2: +3 -3 lines

Add DESTDIR support.

$NetBSD: patch-ak,v 1.3 2008/06/20 01:09:25 joerg Exp $

--- Makefile.in.orig	Thu Apr 25 15:20:32 1996
+++ Makefile.in	Mon Mar 13 14:11:24 2000
@@ -48,6 +48,7 @@
 C++ = @CXX@
 TABCC = @V_TABCC@
 CCOPT = @V_CCOPT@
+CPPFLAGS= @CPPFLAGS@
 
 INCLUDE_TK = @V_INCLUDE_TK@
 INCLUDE_TCL = @V_INCLUDE_TCL@
@@ -175,7 +176,7 @@
 	$(TABCC) $(RFLAG) -c $*.c
 
 $(SRC3): mktab.c
-	$(CC) $(CFLAGS) -o mktab mktab.c $(LIB) $(STATIC)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o mktab mktab.c $(LIB) $(STATIC)
 	rm -f $(SRC3)
 	./mktab -mulaw > tabmulaw.c
 	./mktab -sum > tabmix.c
@@ -184,7 +185,7 @@
 	rm -f mktab
 
 vat-gsm.o: vat-gsm.c
-	rm -f $@; $(CC) -o $@ -c $(INCLUDE_GSM) $(CFLAGS) $*.c
+	rm -f $@; $(CC) -o $@ -c $(CPPFLAGS) $(CFLAGS) $*.c
 
 tar: force
 	tar=vatbin-`cat VERSION`-@V_TAR_TARGET@.tar.gz ; \
@@ -209,16 +210,10 @@
 	     rm ../$$name; chmod 444 $$tar
 
 install: force
-	 cp vat @prefix@/bin/vat; \
-	 chown bin @prefix@/bin/vat; \
-	 chgrp bin @prefix@/bin/vat; \
-	 chmod 555 @prefix@/bin/vat
+	${BSD_INSTALL_PROGRAM} vat ${DESTDIR}@prefix@/bin
 
 install-man: force
-	cp vat.1 @prefix@/man/man1/vat.1
-	chown bin @prefix@/man/man1/vat.1
-	chgrp bin @prefix@/man/man1/vat.1
-	chmod 444 @prefix@/man/man1/vat.1
+	${BSD_INSTALL_MAN} vat.1 ${DESTDIR}@prefix@/man/man1
 
 CLEAN = vat core core.vat tcl2c++ config.log config.cache
 clean: