Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= exmap
  7. PKG_VERSION:= 0.4.1
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 55aec784e214037e61400287a55b5426
  10. DISTFILES:= ${PKG_NAME}-console-${PKG_VERSION}.tgz
  11. MASTER_SITES:= http://labs.o-hand.com/sources/exmap-console/
  12. WRKDIST= ${WRKDIR}/${PKG_NAME}-console-${PKG_VERSION}
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,EXMAP,exmap,${PKG_VERSION}-${PKG_RELEASE}))
  15. $(eval $(call PKG_template,EXMAPD,exmapd,${PKG_VERSION}-${PKG_RELEASE}))
  16. $(eval $(call PKG_template,EXMAPSERVER,exmapserver,${PKG_VERSION}-${PKG_RELEASE}))
  17. $(eval $(call PKG_template,KMOD_EXMAP,kmod-exmap,${KERNEL_VERSION}+${PKG_VERSION}-${DEVICE}-${PKG_RELEASE},kernel (${KERNEL_VERSION}-${DEVICE}-${KERNEL_RELEASE})))
  18. CONFIGURE_STYLE:= gnu
  19. CONFIGURE_ARGS+= --disable-doc
  20. CONFIGURE_ENV+= LIBS="-lncurses"
  21. BUILD_STYLE:= auto
  22. pre-build:
  23. KERNEL_PATH=${LINUX_DIR} \
  24. CROSS_COMPILE="${TARGET_CROSS}" \
  25. V=1 ARCH="${ARCH}" KERNELVERSION="2.6" \
  26. LDFLAGS="" \
  27. $(MAKE) -C ${WRKBUILD}/kernel
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_KMOD_EXMAP}/etc/modules.d/
  30. echo "exmap" > ${IDIR_KMOD_EXMAP}/etc/modules.d/90-exmap
  31. ${INSTALL_DIR} ${IDIR_KMOD_EXMAP}/lib/modules/${KERNEL_VERSION}/
  32. ${INSTALL_DATA} ${WRKBUILD}/kernel/exmap.ko \
  33. ${IDIR_KMOD_EXMAP}/lib/modules/${KERNEL_VERSION}
  34. ${INSTALL_DIR} ${IDIR_EXMAP}/usr/sbin
  35. ${INSTALL_BIN} ${WRKBUILD}/src/exmap ${IDIR_EXMAP}/usr/sbin
  36. ${INSTALL_DIR} ${IDIR_EXMAPD}/usr/sbin
  37. ${INSTALL_BIN} ${WRKBUILD}/src/exmapd ${IDIR_EXMAPD}/usr/sbin
  38. ${INSTALL_DIR} ${IDIR_EXMAPSERVER}/usr/sbin
  39. ${INSTALL_BIN} ${WRKBUILD}/src/exmapserver ${IDIR_EXMAPSERVER}/usr/sbin
  40. include ${TOPDIR}/mk/pkg-bottom.mk