1
0

Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. BUILD_STYLE:= manual
  14. INSTALL_STYLE:= manual
  15. do-build:
  16. (cd ${WRKSRC} && bison -d modes.y)
  17. (cd ${WRKSRC} && flex modes.l)
  18. ${TARGET_CC} ${TARGET_CFLAGS} -I${WRKBUILD} -c -o \
  19. ${WRKBUILD}/modes.tab.o ${WRKSRC}/modes.tab.c
  20. ${TARGET_CC} ${TARGET_CFLAGS} -I${WRKBUILD} -c -o \
  21. ${WRKBUILD}/lex.yy.o ${WRKSRC}/lex.yy.c
  22. ${TARGET_CC} ${TARGET_CFLAGS} -I${WRKBUILD} -c -o \
  23. ${WRKBUILD}/fbset.o ${WRKSRC}/fbset.c
  24. ${TARGET_CC} ${TARGET_CFLAGS} -o ${WRKBUILD}/fbset \
  25. ${WRKBUILD}/fbset.o \
  26. ${WRKBUILD}/modes.tab.o \
  27. ${WRKBUILD}/lex.yy.o
  28. do-install:
  29. ${INSTALL_DIR} ${IDIR_FBSET}/usr/bin
  30. ${INSTALL_DIR} ${IDIR_FBSET}/etc
  31. ${CP} ${WRKBUILD}/fbset ${IDIR_FBSET}/usr/bin
  32. ${CP} ./files/fb.modes ${IDIR_FBSET}/etc
  33. include ${TOPDIR}/mk/pkg-bottom.mk