Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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:= heyu
  5. PKG_VERSION:= 2.6.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 9c7624b61ea39bbfa70336dc703cd5f1
  8. PKG_DESCR:= X10 home automation control using the CM11A
  9. PKG_SECTION:= serial
  10. PKG_DEPENDS:= setserial
  11. PKG_URL:= http://heyu.tanj.com/
  12. PKG_SITES:= http://heyu.tanj.com/download/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,HEYU,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. BUILD_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. do-configure:
  20. (cd ${WRKBUILD} && ${BASH} ./Configure linux);
  21. do-build:
  22. ${MAKE} -C ${WRKBUILD} \
  23. CC="${TARGET_CC}" LD=${TARGET_CROSS}ld \
  24. CFLAGS="${TARGET_CFLAGS} -I${WRKBUILD} -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX -DHASSELECT -DHASTZ"
  25. do-install:
  26. ${INSTALL_DIR} ${IDIR_HEYU}/etc/${PKG_NAME}
  27. ${INSTALL_DATA} ./files/x10.conf ${IDIR_HEYU}/etc/${PKG_NAME}/x10.conf
  28. ${INSTALL_DIR} ${IDIR_HEYU}/usr/bin
  29. ${INSTALL_BIN} ${WRKBUILD}/heyu ${IDIR_HEYU}/usr/bin/
  30. include ${TOPDIR}/mk/pkg-bottom.mk