summaryrefslogtreecommitdiff
path: root/package/cpufrequtils/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-01-21 19:52:27 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-01-21 19:52:27 +0100
commit7a9b6f15bf7d8cac6aa467f8a3ff3f6fa4220308 (patch)
treee7401ca9ca2caccf58394b82363f5f4d1f160937 /package/cpufrequtils/Makefile
parenta71b627950f6c8cb34f39883df76fa91e9a49758 (diff)
rewrite Makefile, remove NLS support
Rewrite Makefile to not use libtool. Normally upstream should deliver a libtool. Newer versions of libtool does not allow to simply use libtool to build libraries without using automake and autoconf. My Makefile rewrite is hackish, but at least I get a library and binaries.
Diffstat (limited to 'package/cpufrequtils/Makefile')
-rw-r--r--package/cpufrequtils/Makefile21
1 files changed, 8 insertions, 13 deletions
diff --git a/package/cpufrequtils/Makefile b/package/cpufrequtils/Makefile
index 63aeb0be6..0e4d22450 100644
--- a/package/cpufrequtils/Makefile
+++ b/package/cpufrequtils/Makefile
@@ -9,30 +9,25 @@ PKG_RELEASE:= 1
PKG_MD5SUM:= 40271a1e1eadce31457e9891cdb071f1
PKG_DESCR:= Userspace utilities for the Linux kernel cpufreq subsystem
PKG_SECTION:= utils
-PKG_DEPENDS:= @add dependendant package names@
PKG_URL:= http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html
PKG_SITES:= http://www.kernel.org/pub/linux/utils/kernel/cpufreq/
-# if downloaded package is not ending with .tar.gz use following
-#DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
-
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,CPUFREQUTILS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-# use following to add ./configure options
-#CONFIGURE_ARGS+= --disable-foo
-# overwrite any configure variables
-#CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
BUILD_STYLE:= auto
INSTALL_STYLE:= auto
-MAKE_FLAGS+= V=true CROSS=${TARGET_CROSS} LIBTOOL_OPT="--tag CC"
-
-#FIXME: libtool does crap when installing stuff (appends i to the .la file and wonders afterwards why it doesn't exist)
+MAKE_FLAGS+= CROSS=${TARGET_CROSS}
-# please install all files and directories to the package dir
post-install:
+ $(INSTALL_DIR) $(IDIR_CPUFREQUTILS)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libcpufreq.so* \
+ $(IDIR_CPUFREQUTILS)/usr/lib
$(INSTALL_DIR) $(IDIR_CPUFREQUTILS)/usr/bin
- $(INSTALL_BIN) $(WRKINST)/usr/bin/cpufrequtils $(IDIR_CPUFREQUTILS)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/cpufreq-set \
+ $(IDIR_CPUFREQUTILS)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/cpufreq-info \
+ $(IDIR_CPUFREQUTILS)/usr/bin
include ${TOPDIR}/mk/pkg-bottom.mk