Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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:= misc
  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. do-build:
  17. (cd ${WRKBUILD} && ${BASH} ./Configure);
  18. ${MAKE} -C ${WRKBUILD} \
  19. CC="${TARGET_CC}" LD=${TARGET_CROSS}ld \
  20. CFLAGS="${TARGET_CFLAGS} -I${WRKBUILD} -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX -DHASSELECT -DHASTZ"
  21. do-install:
  22. ${INSTALL_DIR} ${IDIR_HEYU}/etc/${PKG_NAME}
  23. ${INSTALL_DATA} ./files/x10.conf ${IDIR_HEYU}/etc/${PKG_NAME}/x10.conf
  24. ${INSTALL_DIR} ${IDIR_HEYU}/usr/bin
  25. ${INSTALL_BIN} ${WRKBUILD}/heyu ${IDIR_HEYU}/usr/bin/
  26. include ${TOPDIR}/mk/pkg-bottom.mk