diff options
author | joerg <joerg@pkgsrc.org> | 2009-07-08 17:15:08 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-07-08 17:15:08 +0000 |
commit | 39b3415d6fe5499b158287ab7c35e2f6121f4c28 (patch) | |
tree | e8ab1c59f503522ad72a41b9800812a766c73d59 /games/xroads/patches | |
parent | eb273f5f10535be5c1e7a5967065f521932bab3e (diff) | |
download | pkgsrc-39b3415d6fe5499b158287ab7c35e2f6121f4c28.tar.gz |
user-destdir support
Diffstat (limited to 'games/xroads/patches')
-rw-r--r-- | games/xroads/patches/patch-aa | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/games/xroads/patches/patch-aa b/games/xroads/patches/patch-aa index 832aeafd581..b50d3e3713b 100644 --- a/games/xroads/patches/patch-aa +++ b/games/xroads/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.2 2000/09/26 00:46:05 hubertf Exp $ +$NetBSD: patch-aa,v 1.3 2009/07/08 17:19:05 joerg Exp $ ---- Makefile.orig Wed Jun 30 20:25:02 1999 +--- Makefile.orig 1999-06-30 20:25:02.000000000 +0200 +++ Makefile -@@ -5,8 +5,8 @@ +@@ -5,8 +5,8 @@ VERSION = v0.5 # it's data, and BINPATH is where it puts the executable ########################################################################### @@ -13,7 +13,7 @@ $NetBSD: patch-aa,v 1.2 2000/09/26 00:46:05 hubertf Exp $ # I imagine you would use this BINPATH for Solaris: #BINPATH = /usr/openwin/bin/ -@@ -15,7 +15,7 @@ +@@ -15,7 +15,7 @@ BINPATH = /usr/X11R6/bin/ # optimizations. Check the manual for your compiler. ########################################################################### @@ -22,7 +22,7 @@ $NetBSD: patch-aa,v 1.2 2000/09/26 00:46:05 hubertf Exp $ #CFLAGS = -O6 -mpentium -g -Wall -DXRMPATH=\"$(DATAPATH)\" ########################################################################### -@@ -33,7 +33,7 @@ +@@ -33,7 +33,7 @@ CFLAGS = -fomit-frame-pointer -O2 -Wall ########################################################################### ### Linux machines use this line: @@ -31,3 +31,20 @@ $NetBSD: patch-aa,v 1.2 2000/09/26 00:46:05 hubertf Exp $ ### I'm told this line works fine on Solaris 2.5.1 with X11R5: #LINK = -L/usr/openwin/lib -I/usr/openwin/include -lX11 -lm +@@ -73,11 +73,11 @@ all: $(OBJECTS) + $(CC) $(FLAGS) $(LINK) -o xroads $(OBJECTS) + + install: all +- rm -fr $(DATAPATH) +- mkdir $(DATAPATH) +- cp -f *.xrm $(DATAPATH) +- cp -f README $(DATAPATH) +- cp -f xroads $(BINPATH) ++ rm -fr ${DESTDIR}$(DATAPATH) ++ mkdir ${DESTDIR}$(DATAPATH) ++ ${BSD_INSTALL_DATA} *.xrm ${DESTDIR}$(DATAPATH) ++ ${BSD_INSTALL_DATA} README ${DESTDIR}$(DATAPATH) ++ ${BSD_INSTALL_PROGRAM} xroads ${DESTDIR}$(BINPATH) + + uninstall: + rm -fr $(DATAPATH) |