Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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:= motion
  5. PKG_VERSION:= 4.6.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 9268df31a5ebeaf8daca4747cdcd01c86e223625b6f971e9bcec98edf35ec06f
  8. PKG_DESCR:= webcam motion sensing and logging
  9. PKG_SECTION:= mm/video
  10. PKG_DEPENDS:= libjpeg-turbo libmicrohttpd
  11. PKG_BUILDDEP:= libjpeg-turbo libmicrohttpd
  12. PKG_NEEDS:= threads
  13. PKG_SITES:= https://github.com/Motion-Project/motion/archive/refs/tags/
  14. DISTFILES:= release-$(PKG_VERSION).tar.gz
  15. WRKDIST= ${WRKDIR}/${PKG_NAME}-release-${PKG_VERSION}
  16. include ${ADK_TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,MOTION,motion,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. AUTOTOOL_STYLE:= autoreconf
  19. CONFIGURE_ARGS+= --without-ffmpeg \
  20. --without-jpeg-mmx \
  21. --without-optimizecpu \
  22. --without-mysql \
  23. --without-sqlite \
  24. --without-pgsql \
  25. --with-v4l
  26. motion-install:
  27. ${INSTALL_DIR} ${IDIR_MOTION}/etc ${IDIR_MOTION}/usr/bin
  28. $(INSTALL_DATA) ./files/motion.conf ${IDIR_MOTION}/etc
  29. ${INSTALL_BIN} ${WRKINST}/usr/bin/motion ${IDIR_MOTION}/usr/bin
  30. include ${ADK_TOPDIR}/mk/pkg-bottom.mk