xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/fltk/fltk-native.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1require ${BPN}.inc
2
3DEPENDS = "zlib-native jpeg-native libpng-native libxext-native libxft-native"
4
5inherit native
6
7EXTRA_OECMAKE += " \
8    -DOPTION_BUILD_SHARED_LIBS=OFF \
9    -DOPTION_USE_THREADS=OFF \
10    -DOPTION_USE_XDBE=OFF \
11    -DOPTION_USE_XFT=OFF \
12    -DFLTK_BUILD_TEST=OFF \
13    -DOPTION_USE_XINERAMA=OFF \
14    -DOPTION_USE_XFIXES=OFF \
15    -DOPTION_USE_XCURSOR=OFF \
16"
17
18# lib/libfltk.a(Fl_Native_File_Chooser.cxx.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
19LDFLAGS += "-ldl"
20
21do_install:append() {
22    # make sure native fltk-config is not used accidentaly
23    rm -f ${D}${bindir}/fltk-config
24}
25