#!/bin/sh
#
# Copyright 2007 Dagmar d'Surreal <rivyqntzne@tznvy.pbz>
# Available under the terms of the GNU GPL.
#

NAME="cpufrequtils"
VERSION="005"
REVISION="2"

PKG_SOURCEURL='http://kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-$VERSION.tar.bz2'

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

# This package doesn't build with multiple jobs.
PKG_DISABLESMP="yep"

# I've no idea if this builds correctly for x86-64 or not.  BEWARE!

prepare
analyzesource
# There is no configure script for this, and for what it's doing I think
# perhaps we'll let the kernel devs who put this together have their way with
# the default of -Os.
CFLAGS="-march=$PKG_ARCH" make
makeinstall
strip -g --strip-unneeded $PKG_STAGEROOT/$PKG_PREFIX/lib/libcpufreq.a
strip -g --strip-unneeded $PKG_STAGEROOT/$PKG_PREFIX/lib/libcpufreq.so.*
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
