freebsd-ports/sysutils/cpulimit/files/patch-makefile
Dennis Herrmann ec140ddc1d The cpulimit program throttles back a process's CPU usage. This allows the
user to slow down jobs that would otherwise choke the processor. It is also
helpful on laptops where we want to avoid genrating a lot of heat.

WWW:	http://cpulimit.sourceforge.net/

PR:		ports/156064
Submitted by:	Jesse <jessefrgsmith@yahoo.ca>
2011-03-31 15:01:45 +00:00

19 lines
398 B
Text

--- Makefile.old 2005-06-24 07:53:43.000000000 -0300
+++ Makefile 2010-08-21 15:10:45.000000000 -0300
@@ -1,7 +1,15 @@
+PREFIX=/usr/local
+
all:: cpulimit
cpulimit: cpulimit.c
- gcc -o cpulimit cpulimit.c -lrt -Wall -O2
+ gcc -o cpulimit cpulimit.c -lrt -Wall -O2 -lkvm
+
+install: cpulimit
+ cp cpulimit ${PREFIX}/bin
+
+deinstall:
+ rm -f ${PREFIX}/bin/cpulimit
clean:
rm -f *~ cpulimit