Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= lm_sensors
  5. PKG_VERSION:= 3.3.1
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 8c0eebda8524fc87da1393b4564d279b
  8. PKG_DESCR:= hardware sensor toolset
  9. PKG_SECTION:= sys/hw
  10. PKG_DEPENDS:= sysfsutils
  11. PKG_URL:= http://www.lm-sensors.org
  12. PKG_SITES:= http://dl.lm-sensors.org/lm-sensors/releases/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. PKG_ARCH_DEPENDS:= x86 x86_64
  15. PKG_SUBPKGS:= LM_SENSORS LM_SENSORS_DETECT
  16. PKGSD_LM_SENSORS_DETECT:= lm_sensors perl scripts (e.g. sensors-detect)
  17. PKGSC_LM_SENSORS_DETECT:= sys/hw
  18. PKGSS_LM_SENSORS_DETECT:= perl
  19. PKGSB_LM_SENSORS_DETECT:= perl
  20. include ${ADK_TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,LM_SENSORS,lm-sensors,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. $(eval $(call PKG_template,LM_SENSORS_DETECT,lm-sensors-detect,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LM_SENSORS_DETECT},${PKGSC_LM_SENSORS_DETECT}))
  23. CONFIG_STYLE:= manual
  24. ALL_TARGET:= user
  25. TARGET_LDFLAGS+= -liconv
  26. lm-sensors-install:
  27. ${INSTALL_DIR} ${IDIR_LM_SENSORS}/usr/bin
  28. ${INSTALL_BIN} ${WRKINST}/usr/bin/sensors ${IDIR_LM_SENSORS}/usr/bin/sensors
  29. ${INSTALL_DIR} ${IDIR_LM_SENSORS}/usr/lib
  30. ${CP} ${WRKINST}/usr/lib/libsensors.so* ${IDIR_LM_SENSORS}/usr/lib
  31. ${INSTALL_DIR} ${IDIR_LM_SENSORS}/etc
  32. ${CP} ${WRKINST}/etc/sensors3.conf ${IDIR_LM_SENSORS}/etc
  33. lm-sensors-detect-install:
  34. ${INSTALL_DIR} ${IDIR_LM_SENSORS_DETECT}/usr/sbin
  35. ${INSTALL_BIN} ${WRKINST}/usr/sbin/fancontrol ${IDIR_LM_SENSORS_DETECT}/usr/sbin/fancontrol
  36. ${INSTALL_BIN} ${WRKINST}/usr/sbin/isadump ${IDIR_LM_SENSORS_DETECT}/usr/sbin/isadump
  37. ${INSTALL_BIN} ${WRKINST}/usr/sbin/isaset ${IDIR_LM_SENSORS_DETECT}/usr/sbin/isaset
  38. ${INSTALL_BIN} ${WRKINST}/usr/sbin/pwmconfig ${IDIR_LM_SENSORS_DETECT}/usr/sbin/pwmconfig
  39. ${INSTALL_BIN} ${WRKINST}/usr/sbin/sensors-detect ${IDIR_LM_SENSORS_DETECT}/usr/sbin/sensors-detect
  40. include ${ADK_TOPDIR}/mk/pkg-bottom.mk