Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include ${TOPDIR}/mk/host.mk
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call HOST_template,FLEX,flex,${PKG_VERSION}-${PKG_RELEASE}))
  18. $(eval $(call PKG_template,FLEX,flex,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. HOST_STYLE:= auto
  20. flex-install:
  21. ${INSTALL_DIR} ${IDIR_FLEX}/usr/bin
  22. ${INSTALL_BIN} ${WRKINST}/usr/bin/flex ${IDIR_FLEX}/usr/bin
  23. # workaround for dev subpackage
  24. ${INSTALL_DIR} ${IDIR_FLEX_DEV}/usr/lib
  25. ${CP} ${WRKINST}/usr/lib/libfl.a \
  26. ${IDIR_FLEX_DEV}/usr/lib
  27. include ${TOPDIR}/mk/host-bottom.mk
  28. include ${TOPDIR}/mk/pkg-bottom.mk