Makefile 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= lm_sensors
  5. PKG_VERSION:= 3.3.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 8c0eebda8524fc87da1393b4564d279b
  8. PKG_DESCR:= linux hw sensor toolset
  9. PKG_DEPENDS:= sysfsutils
  10. PKG_SECTION:= misc
  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. TARGET_CFLAGS:= ${TARGET_CFLAGS_ARCH} -fwrapv -fno-ident
  15. PKG_SUBPKGS:= LM_SENSORS LM_SENSORS_DEV LM_SENSORS_DETECT
  16. PKGSD_LM_SENSORS_DEV:= lm_sensors header files
  17. PKGSC_LM_SENSORS_DEV:= devel
  18. PKGSD_LM_SENSORS_DETECT:= lm_sensors perl scripts (e.g. sensors-detect)
  19. PKGSC_LM_SENSORS_DETECT:= misc
  20. PKGSS_LM_SENSORS_DETECT:= perl
  21. PKGSB_LM_SENSORS_DETECT:= perl
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,LM_SENSORS,lm-sensors,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,LM_SENSORS_DEV,lm-sensors-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LM_SENSORS_DEV},${PKGSC_LM_SENSORS_DEV}))
  25. $(eval $(call PKG_template,LM_SENSORS_DETECT,lm-sensors-detect,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LM_SENSORS_DETECT},${PKGSC_LM_SENSORS_DETECT}))
  26. CONFIG_STYLE:= manual
  27. do-build:
  28. ${MAKE} -C ${WRKBUILD} \
  29. ${TARGET_CONFIGURE_OPTS} \
  30. MACHINE="${CPU_ARCH}" \
  31. LINUX="${LINUX_DIR}" \
  32. STAGING_DIR="${STAGING_DIR}" \
  33. PREFIX="/usr" \
  34. user
  35. lm-sensors-install:
  36. ${INSTALL_DIR} ${IDIR_LM_SENSORS}/usr/bin
  37. ${INSTALL_BIN} ${WRKINST}/usr/local/bin/sensors ${IDIR_LM_SENSORS}/usr/bin/sensors
  38. ${INSTALL_DIR} ${IDIR_LM_SENSORS}/usr/lib
  39. ${CP} ${WRKINST}/usr/local/lib/libsensors.so* ${IDIR_LM_SENSORS}/usr/lib
  40. ${INSTALL_DIR} ${IDIR_LM_SENSORS}/etc
  41. ${CP} ${WRKINST}/etc/sensors3.conf ${IDIR_LM_SENSORS}/etc
  42. lm-sensors-dev-install:
  43. ${INSTALL_DIR} ${IDIR_LM_SENSORS_DEV}/usr/include/sensors
  44. ${CP} ${WRKINST}/usr/local/include/sensors/*.h ${IDIR_LM_SENSORS_DEV}/usr/include/sensors
  45. lm-sensors-detect-install:
  46. ${INSTALL_DIR} ${IDIR_LM_SENSORS_DETECT}/usr/sbin
  47. ${INSTALL_BIN} ${WRKINST}/usr/local/sbin/fancontrol ${IDIR_LM_SENSORS_DETECT}/usr/sbin/fancontrol
  48. ${INSTALL_BIN} ${WRKINST}/usr/local/sbin/isadump ${IDIR_LM_SENSORS_DETECT}/usr/sbin/isadump
  49. ${INSTALL_BIN} ${WRKINST}/usr/local/sbin/isaset ${IDIR_LM_SENSORS_DETECT}/usr/sbin/isaset
  50. ${INSTALL_BIN} ${WRKINST}/usr/local/sbin/pwmconfig ${IDIR_LM_SENSORS_DETECT}/usr/sbin/pwmconfig
  51. ${INSTALL_BIN} ${WRKINST}/usr/local/sbin/sensors-detect ${IDIR_LM_SENSORS_DETECT}/usr/sbin/sensors-detect
  52. include ${TOPDIR}/mk/pkg-bottom.mk