Makefile 1.3 KB

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