Makefile 1.0 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:= flex
  5. PKG_VERSION:= 2.5.35
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 201d3f38758d95436cbc64903386de0b
  8. PKG_DESCR:= fast lexical analyzer
  9. PKG_SECTION:= lang
  10. PKG_BUILDDEP:= m4-host flex-host
  11. PKG_URL:= http://flex.sourceforge.net/
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=${PKG_NAME}/}
  13. PKG_OPTS:= dev
  14. include ${TOPDIR}/mk/host.mk
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call HOST_template,FLEX,flex,${PKG_VERSION}-${PKG_RELEASE}))
  17. $(eval $(call PKG_template,FLEX,flex,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  18. HOST_STYLE:= auto
  19. flex-install:
  20. ${INSTALL_DIR} ${IDIR_FLEX}/usr/bin
  21. ${INSTALL_BIN} ${WRKINST}/usr/bin/flex ${IDIR_FLEX}/usr/bin
  22. # workaround for dev subpackage
  23. ${INSTALL_DIR} ${IDIR_FLEX_DEV}/usr/lib
  24. ${CP} ${WRKINST}/usr/lib/libfl.a \
  25. ${IDIR_FLEX_DEV}/usr/lib
  26. include ${TOPDIR}/mk/host-bottom.mk
  27. include ${TOPDIR}/mk/pkg-bottom.mk