[BACK]Return to patch-aa CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / biology / gp / patches

File: [cvs.NetBSD.org] / pkgsrc / biology / gp / patches / patch-aa (download)

Revision 1.5, Wed Sep 23 13:34:33 2009 UTC (14 years, 5 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, 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, HEAD
Changes since 1.4: +6 -3 lines

honour PKGMANDIR

$NetBSD: patch-aa,v 1.5 2009/09/23 13:34:33 tnn Exp $

--- Makefile.orig	2001-05-17 21:27:07.000000000 +0200
+++ Makefile
@@ -5,30 +5,30 @@
 ######################################################################
 # Change the following to suit your needs
 
-SHELL=/bin/bash
+SHELL=${SH}
 
 # The directory root of your installation
 # If you make a personal installation, change it to your home directory
 # Default: /usr
 # uncomment the following line to install to the default directories...
-TREE=/usr
+TREE=${PREFIX}
 # ...or the following line to install into your home directory:
 # TREE=$(HOME)
 
 # if you don't have the gd graphic library installed, you have to comment out or
 # delete the following line. However, gp_map is such a nice program, so you
 # better go to www.boutell.com and download the gd library.
-GDPROGRAMS=gp_map
+# GDPROGRAMS=gp_map
 
 # Directory to install the programs themselves. 
 # Default: /usr/local/bin
 BINDIR=$(TREE)/bin
 
 # directory to install the manual pages
-MANDIR=$(TREE)/man
+MANDIR=$(TREE)/$(PKGMANDIR)
 
 #directory to install the data directory
-DATADIR=$(TREE)/lib
+DATADIR=$(TREE)/share/examples
 
 # documentation. 
 # If you want to install documents automagically, type:
@@ -67,18 +67,18 @@ clean:
 	-cd src/ ; rm $(PROGRAMS) core
 
 install: all 
-	@if [ ! -O "$(BINDIR)" ] ; then \
-	echo "File $(BINDIR) doesn't belong to you!" ;  exit 1 ; fi 
-	@cd src ; cp $(PROGRAMS) $(BINDIR)
-
-	@if [ ! -O "$(MANDIR)" ] ; then \
-	echo "File $(MANDIR) doesn't belong to you!" ;  exit 1 ; fi 
-	@cd man1 ; cp $(MANUALS) $(MANDIR)/man1
-
-	@if [ ! -O "$(DATADIR)" ] ; then \
-	echo "File $(DATADIR) doesn't belong to you!" ;  exit 1 ; fi 
-	-cd $(DATADIR) ; mkdir genpak ; 
-	@cd data ; cp -i $(DATAFILES) $(DATADIR)/genpak
+#	@if [ ! -O "$(BINDIR)" ] ; then \
+#	echo "File $(BINDIR) doesn't belong to you!" ;  exit 1 ; fi 
+	@cd src ; ${BSD_INSTALL_PROGRAM} $(PROGRAMS) ${DESTDIR}$(BINDIR)
+
+#	@if [ ! -O "$(MANDIR)" ] ; then \
+#	echo "File $(MANDIR) doesn't belong to you!" ;  exit 1 ; fi 
+	@cd man1 ; ${BSD_INSTALL_MAN} $(MANUALS) ${DESTDIR}$(MANDIR)/man1
+
+#	@if [ ! -O "$(DATADIR)" ] ; then \
+#	echo "File $(DATADIR) doesn't belong to you!" ;  exit 1 ; fi 
+	${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(DATADIR)/genpak ; 
+	@cd data ; ${BSD_INSTALL_DATA} $(DATAFILES) ${DESTDIR}$(DATADIR)/genpak
 
 	@echo
 	@echo Installation is now complete. Type 
@@ -99,26 +99,26 @@ filelist:
 		echo "$(DATADIR)/genpak/"$$i >> FILES.TXT ; done
 
 docs:
-	@if [ ! -O "$(TREE)" ] ; \
-	then echo "File $(TREE) doesn't belong to you!" ; exit 1 ; fi ; \
-	if [ ! -e $(DOCDIR) ] ; \
+#	@if [ ! -O "$(TREE)" ] ; \
+#	then echo "File $(TREE) doesn't belong to you!" ; exit 1 ; fi ; \
+	if [ ! -d $(DOCDIR) ] ; \
 		then mkdir $(DOCDIR) ; fi ; \
-	if [ ! -e $(DOCDIR)/gp ] ; then \
+	if [ ! -d $(DOCDIR)/gp ] ; then \
 		mkdir $(DOCDIR)/gp ; fi ; \
 	cp -r html README.TXT LICENSE.TXT CHANGES.TXT Makefile INSTALL.TXT  \
 		$(DOCDIR)/gp ;
 
 uninstall:
 
-	@if [ ! -O "$(BINDIR)" ] ; \
-		then echo "Directory $(BINDIR) doesn't belong to you!" ; \
-		exit 1 ; fi
+#	@if [ ! -O "$(BINDIR)" ] ; \
+#		then echo "Directory $(BINDIR) doesn't belong to you!" ; \
+#		exit 1 ; fi
 	@echo Removing programs...
 	@cd $(BINDIR) ; rm -f $(PROGRAMS)
 
-	@if [ ! -O "$(MANDIR)" ] ; \
-		then echo "Directory $(MANDIR) doesn't belong to you!" ;  \
-		exit 1 ; fi
+#	@if [ ! -O "$(MANDIR)" ] ; \
+#		then echo "Directory $(MANDIR) doesn't belong to you!" ;  \
+#		exit 1 ; fi
 	
 	@echo Removing manuals...
 	@cd $(MANDIR)/man1 ; rm -f $(MANUALS) 
@@ -127,9 +127,9 @@ uninstall:
 	@echo Are you sure you really want to remove this data? '(yes/no) '
 	@read ANSWER ; if [ $ANSWER != "yes" ] ; then \
 		echo OK, leaving $(DATADIR)/genpak untouched ; else \
-	if [ ! -O "$(DATADIR)" ] ; \
-		then echo "Directory $(DATADIR) doesn\'t belong to you!" ; \
-	exit 1 ; fi ; \
+#	if [ ! -O "$(DATADIR)" ] ; \
+#		then echo "Directory $(DATADIR) doesn\'t belong to you!" ; \
+#	exit 1 ; fi ; \
 	cd $(DATADIR)/genpak ; rm -f $(DATAFILES) ; fi
 	-cd $(DATADIR) ; rmdir genpak
 	@echo