Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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:= fbset
  5. PKG_VERSION:= 2.1
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= e547cfcbb8c1a4f2a6b8ba4acb8b7164
  8. PKG_DESCR:= framebuffer utility
  9. PKG_DEPENDS:= bison-host flex-host
  10. PKG_SECTION:= utils
  11. PKG_SITES:= http://users.telenet.be/geertu/Linux/fbdev/
  12. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  13. PKG_LIBC_DEPENDS:= uclibc glibc
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,FBSET,fbset,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. BUILD_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. do-build:
  20. (cd ${WRKSRC} && PATH='${HOST_PATH}' bison -d modes.y)
  21. (cd ${WRKSRC} && PATH='${HOST_PATH}' flex modes.l)
  22. ${TARGET_CC} ${TARGET_CFLAGS} -I${WRKBUILD} -c -o \
  23. ${WRKBUILD}/modes.tab.o ${WRKSRC}/modes.tab.c
  24. ${TARGET_CC} ${TARGET_CFLAGS} -I${WRKBUILD} -c -o \
  25. ${WRKBUILD}/lex.yy.o ${WRKSRC}/lex.yy.c
  26. ${TARGET_CC} ${TARGET_CFLAGS} -I${WRKBUILD} -c -o \
  27. ${WRKBUILD}/fbset.o ${WRKSRC}/fbset.c
  28. ${TARGET_CC} ${TARGET_CFLAGS} -o ${WRKBUILD}/fbset \
  29. ${WRKBUILD}/fbset.o \
  30. ${WRKBUILD}/modes.tab.o \
  31. ${WRKBUILD}/lex.yy.o
  32. do-install:
  33. ${INSTALL_DIR} ${IDIR_FBSET}/usr/bin
  34. ${INSTALL_DIR} ${IDIR_FBSET}/etc
  35. ${CP} ${WRKBUILD}/fbset ${IDIR_FBSET}/usr/bin
  36. ${CP} ./files/fb.modes ${IDIR_FBSET}/etc
  37. include ${TOPDIR}/mk/pkg-bottom.mk