1
0

Makefile 1.4 KB

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