New package: cpuburn-1.4a
This commit is contained in:
parent
ce2b607ad7
commit
db4445982f
3 changed files with 85 additions and 0 deletions
40
srcpkgs/cpuburn/patches/01-variables.patch
Normal file
40
srcpkgs/cpuburn/patches/01-variables.patch
Normal file
|
@ -0,0 +1,40 @@
|
|||
--- burnK7.S
|
||||
+++ burnK7.S
|
||||
@@ -74,6 +74,7 @@ int_exit:
|
||||
push %eax
|
||||
int $0x80
|
||||
#endif
|
||||
+.data # Data allocation
|
||||
.align 32,0
|
||||
.fill 64
|
||||
half: .long 0x7fffffff,0
|
||||
--- burnP5.S
|
||||
+++ burnP5.S
|
||||
@@ -77,6 +77,7 @@ crunch:
|
||||
#else
|
||||
int $0x80
|
||||
#endif
|
||||
+.data # Data allocation
|
||||
.align 32,0
|
||||
half: .long 0xffffffff,0x3fdfffff
|
||||
one: .long 0xffffffff,0x3fefffff
|
||||
--- burnP6.S
|
||||
+++ burnP6.S
|
||||
@@ -69,6 +69,7 @@ int_exit: # error abort
|
||||
push %eax # *BSD syscall
|
||||
int $0x80
|
||||
#endif
|
||||
+.data # Data allocation
|
||||
.align 32,0
|
||||
half: .long 0x7fffffff,0
|
||||
e: .long 0xffffffff,0x3fdfffff
|
||||
--- burnK6.S
|
||||
+++ burnK6.S
|
||||
@@ -68,6 +68,7 @@ int_exit:
|
||||
push %eax
|
||||
int $0x80
|
||||
#endif
|
||||
+.data # Data allocation
|
||||
.align 32,0
|
||||
half: .long 0x7fffffff,0
|
||||
e: .long 0xffffffff,0x3fdfffff
|
7
srcpkgs/cpuburn/patches/02-m32.patch
Normal file
7
srcpkgs/cpuburn/patches/02-m32.patch
Normal file
|
@ -0,0 +1,7 @@
|
|||
--- Makefile
|
||||
+++ Makefile
|
||||
@@ -1,3 +1,3 @@
|
||||
all : burnP5 burnP6 burnK6 burnK7 burnBX burnMMX
|
||||
.S:
|
||||
- gcc -s -nostdlib -o $@ $<
|
||||
+ gcc -m32 -s -nostdlib -o $@ $<
|
38
srcpkgs/cpuburn/template
Normal file
38
srcpkgs/cpuburn/template
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Template file for 'cpuburn'
|
||||
pkgname=cpuburn
|
||||
only_for_archs="armv6l armv7l i686 x86_64"
|
||||
version=1.4a
|
||||
revision=1
|
||||
short_desc="Collection of programs to put heavy load on CPU"
|
||||
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||
license="GPL-2"
|
||||
homepage="https://launchpad.net/ubuntu/+source/cpuburn/"
|
||||
distfiles="https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${version}.orig.tar.gz"
|
||||
checksum=eb191ce9bfbf453d30c218c3419573df102a3588f96c4a43686c84bb9da4bed6
|
||||
|
||||
do_build() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686*|x86_64*) make CC="$CC";;
|
||||
arm*) make -C ARM CC="$CC";;
|
||||
esac
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vdoc README
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686*|x86_64*)
|
||||
vbin burnBX
|
||||
vbin burnK6
|
||||
vbin burnK7
|
||||
vbin burnMMX
|
||||
vbin burnP5
|
||||
vbin burnP6
|
||||
vdoc Design
|
||||
;;
|
||||
arm*)
|
||||
vbin ARM/burnCortexA8
|
||||
vbin ARM/burnCortexA9
|
||||
vdoc ARM/Design
|
||||
;;
|
||||
esac
|
||||
}
|
Loading…
Reference in a new issue