freebsd-ports/net/ddc/files/patch-Makefile
Edwin Groothuis 867d825697 Yes we have a winner!
Subject: Package build with non-standard (LOCAL|X11)BASE

	This is just a heads-up that I've started a build with LOCALBASE and
	X11BASE set to nonstandard values to look for ports that hard-code
	these (or fail to patch them).  If your port has a problem, expect
	mail from me soon :-)

Fix port.
2005-10-16 05:31:56 +00:00

18 lines
710 B
Text

--- Makefile.orig Sun Oct 16 15:28:34 2005
+++ Makefile Sun Oct 16 15:29:02 2005
@@ -2,10 +2,10 @@
@echo "\"make install\" and \"make uninstall\" are the only things that work"
install:
- for dir in /usr/local/bin /usr/local/man /usr/local/man/man8; do test -d $$dir || ( mkdir $$dir; chmod 755 $$dir) ; done
- install -c -m 755 ddc /usr/local/bin
- install -c ddc.8 /usr/local/man/man8
+ for dir in ${PREFIX}/bin ${PREFIX}/man ${PREFIX}/man/man8; do test -d $$dir || ( mkdir $$dir; chmod 755 $$dir) ; done
+ install -c -m 755 ddc ${PREFIX}/bin
+ install -c ddc.8 ${PREFIX}/man/man8
uninstall:
- rm /usr/local/bin/ddc
- rm /usr/local/man/man8/ddc.8
+ rm ${PREFIX}/bin/ddc
+ rm ${PREFIX}/man/man8/ddc.8