1
0

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:= flex
  5. PKG_VERSION:= 2.5.35
  6. PKG_RELEASE:= 3
  7. PKG_HASH:= a6fe3ac80b5f89769d833efde712f95bb0255bcf9089fa324636a9b8a005c717
  8. PKG_DESCR:= fast lexical analyzer
  9. PKG_SECTION:= dev/tools
  10. PKG_BUILDDEP:= m4-host
  11. HOST_BUILDDEP:= m4-host
  12. PKG_URL:= http://flex.sourceforge.net/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=${PKG_NAME}/}
  14. PKG_OPTS:= dev
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. include ${ADK_TOPDIR}/mk/host.mk
  17. include ${ADK_TOPDIR}/mk/package.mk
  18. $(eval $(call HOST_template,FLEX,flex,${PKG_VERSION}-${PKG_RELEASE}))
  19. $(eval $(call PKG_template,FLEX,flex,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  20. hostpost-install:
  21. (cd $(STAGING_HOST_DIR)/usr/bin; ln -sf flex lex)
  22. flex-install:
  23. ${INSTALL_DIR} ${IDIR_FLEX}/usr/bin
  24. ${INSTALL_BIN} ${WRKINST}/usr/bin/flex ${IDIR_FLEX}/usr/bin
  25. # workaround for dev subpackage
  26. ${INSTALL_DIR} ${IDIR_FLEX_DEV}/usr/lib
  27. ${CP} ${WRKINST}/usr/lib/libfl.a \
  28. ${IDIR_FLEX_DEV}/usr/lib
  29. include ${ADK_TOPDIR}/mk/host-bottom.mk
  30. include ${ADK_TOPDIR}/mk/pkg-bottom.mk