banana-pro: bring it in shape
[openadk.git] / package / fbset / Makefile
blobad61b9a20dc263196615e04e9b9876f8e7c38632
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= fbset
7 PKG_VERSION:= 2.1
8 PKG_RELEASE:= 2
9 PKG_HASH:= 40ff4ab0247b75138a0887ed40f81c1a6184f340b77126c16d074b1075b41c20
10 PKG_DESCR:= framebuffer utility
11 PKG_DEPENDS:= bison-host flex-host
12 PKG_SECTION:= sys/hw
13 PKG_SITES:= http://users.telenet.be/geertu/Linux/fbdev/
14 PKG_BB:= 1
16 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
18 PKG_LIBC_DEPENDS:= uclibc-ng glibc
20 include ${ADK_TOPDIR}/mk/package.mk
22 $(eval $(call PKG_template,FBSET,fbset,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
24 CONFIG_STYLE:= manual
25 BUILD_STYLE:= manual
26 INSTALL_STYLE:= manual
28 do-build:
29 (cd ${WRKSRC} && PATH='${HOST_PATH}' bison -d modes.y)
30 (cd ${WRKSRC} && PATH='${HOST_PATH}' flex modes.l)
31 ${TARGET_CC} ${TARGET_CFLAGS} -I${WRKBUILD} -c -o \
32 ${WRKBUILD}/modes.tab.o ${WRKSRC}/modes.tab.c
33 ${TARGET_CC} ${TARGET_CFLAGS} -I${WRKBUILD} -c -o \
34 ${WRKBUILD}/lex.yy.o ${WRKSRC}/lex.yy.c
35 ${TARGET_CC} ${TARGET_CFLAGS} -I${WRKBUILD} -c -o \
36 ${WRKBUILD}/fbset.o ${WRKSRC}/fbset.c
37 ${TARGET_CC} ${TARGET_CFLAGS} -o ${WRKBUILD}/fbset \
38 ${WRKBUILD}/fbset.o \
39 ${WRKBUILD}/modes.tab.o \
40 ${WRKBUILD}/lex.yy.o
42 do-install:
43 ${INSTALL_DIR} ${IDIR_FBSET}/usr/bin
44 ${INSTALL_DIR} ${IDIR_FBSET}/etc
45 ${CP} ${WRKBUILD}/fbset ${IDIR_FBSET}/usr/bin
46 ${CP} ./files/fb.modes ${IDIR_FBSET}/etc
48 include ${ADK_TOPDIR}/mk/pkg-bottom.mk