Makefile 1.2 KB

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