1*2390b1b6SPatrick WilliamsSUMMARY = "F Virtual Window Manager " 2*2390b1b6SPatrick WilliamsHOMEPAGE = "http://www.fvwm.org/" 3*2390b1b6SPatrick WilliamsSECTION = "x11/wm" 4*2390b1b6SPatrick WilliamsLICENSE = "GPL-2.0-only" 5*2390b1b6SPatrick WilliamsLIC_FILES_CHKSUM = "file://COPYING;md5=f8204787357db6ea518dcc9b6cf08388" 6*2390b1b6SPatrick Williams 7*2390b1b6SPatrick WilliamsDEPENDS = " \ 8*2390b1b6SPatrick Williams bison-native \ 9*2390b1b6SPatrick Williams flex-native \ 10*2390b1b6SPatrick Williams freetype-native \ 11*2390b1b6SPatrick Williams gettext-native \ 12*2390b1b6SPatrick Williams libxslt-native \ 13*2390b1b6SPatrick Williams fontconfig \ 14*2390b1b6SPatrick Williams libice \ 15*2390b1b6SPatrick Williams libpng \ 16*2390b1b6SPatrick Williams librsvg \ 17*2390b1b6SPatrick Williams libsm \ 18*2390b1b6SPatrick Williams libxau \ 19*2390b1b6SPatrick Williams libxcb \ 20*2390b1b6SPatrick Williams libxcursor \ 21*2390b1b6SPatrick Williams libxdmcp \ 22*2390b1b6SPatrick Williams libxext \ 23*2390b1b6SPatrick Williams libxfixes \ 24*2390b1b6SPatrick Williams libxft \ 25*2390b1b6SPatrick Williams libxinerama \ 26*2390b1b6SPatrick Williams libxml2 \ 27*2390b1b6SPatrick Williams libxrender \ 28*2390b1b6SPatrick Williams libxt \ 29*2390b1b6SPatrick Williams virtual/libx11 \ 30*2390b1b6SPatrick Williams xrandr \ 31*2390b1b6SPatrick Williams zlib \ 32*2390b1b6SPatrick Williams" 33*2390b1b6SPatrick Williams 34*2390b1b6SPatrick WilliamsSRC_URI = " \ 35*2390b1b6SPatrick Williams git://github.com/fvwmorg/fvwm.git;protocol=https;branch=master \ 36*2390b1b6SPatrick Williams file://0001-Fix-compilation-for-disabled-gnome.patch \ 37*2390b1b6SPatrick Williams" 38*2390b1b6SPatrick Williams 39*2390b1b6SPatrick WilliamsSRCREV = "7baf540e56fb1a3e91752acba872a88543529d46" 40*2390b1b6SPatrick Williams 41*2390b1b6SPatrick WilliamsS = "${WORKDIR}/git" 42*2390b1b6SPatrick Williams 43*2390b1b6SPatrick Williamsinherit autotools gettext update-alternatives pkgconfig python3native perlnative features_check 44*2390b1b6SPatrick Williams# depends on virtual/libx11 45*2390b1b6SPatrick WilliamsREQUIRED_DISTRO_FEATURES = "x11" 46*2390b1b6SPatrick Williams 47*2390b1b6SPatrick WilliamsALTERNATIVE:${PN} = "x-window-manager" 48*2390b1b6SPatrick WilliamsALTERNATIVE_TARGET[x-window-manager] = "${bindir}/fvwm" 49*2390b1b6SPatrick WilliamsALTERNATIVE_PRIORITY[x-window-manager] = "20" 50*2390b1b6SPatrick Williams 51*2390b1b6SPatrick WilliamsEXTRA_OECONF = " \ 52*2390b1b6SPatrick Williams --disable-bidi \ 53*2390b1b6SPatrick Williams --disable-fontconfigtest \ 54*2390b1b6SPatrick Williams --disable-htmldoc \ 55*2390b1b6SPatrick Williams --disable-imlibtest \ 56*2390b1b6SPatrick Williams --disable-nls \ 57*2390b1b6SPatrick Williams --disable-perllib \ 58*2390b1b6SPatrick Williams --disable-rsvg \ 59*2390b1b6SPatrick Williams --disable-shape \ 60*2390b1b6SPatrick Williams --disable-sm \ 61*2390b1b6SPatrick Williams --disable-xfttest \ 62*2390b1b6SPatrick Williams --with-imlib-exec-prefix=/nonexistent \ 63*2390b1b6SPatrick Williams --with-imlib-prefix=/nonexistent \ 64*2390b1b6SPatrick Williams --without-ncurses-library \ 65*2390b1b6SPatrick Williams --without-readline-library \ 66*2390b1b6SPatrick Williams --without-rplay-library \ 67*2390b1b6SPatrick Williams --without-stroke-library \ 68*2390b1b6SPatrick Williams --without-termcap-library \ 69*2390b1b6SPatrick Williams --without-xpm-library \ 70*2390b1b6SPatrick Williams ac_cv_func_mkstemp=no \ 71*2390b1b6SPatrick Williams has_safety_mkstemp=yes \ 72*2390b1b6SPatrick Williams" 73*2390b1b6SPatrick Williams 74*2390b1b6SPatrick Williams# show the exact commands in the log file 75*2390b1b6SPatrick WilliamsEXTRA_OEMAKE = " \ 76*2390b1b6SPatrick Williams V=1 \ 77*2390b1b6SPatrick Williams" 78*2390b1b6SPatrick Williams# clang treats them as errors by default now starting with 15.0+ 79*2390b1b6SPatrick WilliamsCFLAGS += "-Wno-error=int-conversion -Wno-error=implicit-int" 80*2390b1b6SPatrick Williams 81*2390b1b6SPatrick Williamsdo_install:append() { 82*2390b1b6SPatrick Williams install -d -m 0755 ${D}/${sysconfdir}/xdg/fvwm 83*2390b1b6SPatrick Williams # You can install the config file here 84*2390b1b6SPatrick Williams 85*2390b1b6SPatrick Williams install -d -m 0755 ${D}/${datadir}/fvwm 86*2390b1b6SPatrick Williams touch ${D}/${datadir}/fvwm/ConfigFvwmDefaults 87*2390b1b6SPatrick Williams sed -i -e 's:${STAGING_BINDIR_NATIVE}/perl-native/perl:${USRBINPATH}/env perl:g' ${D}${bindir}/fvwm-* 88*2390b1b6SPatrick Williams sed -i -e 's:${STAGING_BINDIR_NATIVE}/perl-native/perl:${USRBINPATH}/env perl:g' ${D}${libexecdir}/fvwm/*/Fvwm* 89*2390b1b6SPatrick Williams sed -i -e 's:${STAGING_BINDIR_NATIVE}/python3-native/python3:${USRBINPATH}/env python3:g' ${D}${bindir}/fvwm-menu-desktop 90*2390b1b6SPatrick Williams} 91*2390b1b6SPatrick Williams 92*2390b1b6SPatrick Williams# the only needed packages (note: locale packages are automatically generated 93*2390b1b6SPatrick Williams# as well) 94*2390b1b6SPatrick WilliamsPACKAGES = " \ 95*2390b1b6SPatrick Williams ${PN} \ 96*2390b1b6SPatrick Williams ${PN}-extra \ 97*2390b1b6SPatrick Williams ${PN}-doc \ 98*2390b1b6SPatrick Williams ${PN}-dbg \ 99*2390b1b6SPatrick Williams" 100*2390b1b6SPatrick Williams 101*2390b1b6SPatrick Williams# minimal set of binaries 102*2390b1b6SPatrick WilliamsFILES:${PN} = " \ 103*2390b1b6SPatrick Williams ${bindir}/fvwm \ 104*2390b1b6SPatrick Williams ${bindir}/fvwm-root \ 105*2390b1b6SPatrick Williams ${datadir}/fvwm/ConfigFvwmDefaults \ 106*2390b1b6SPatrick Williams" 107*2390b1b6SPatrick Williams 108*2390b1b6SPatrick WilliamsFILES:${PN}-extra = " \ 109*2390b1b6SPatrick Williams ${bindir} \ 110*2390b1b6SPatrick Williams ${libexecdir} \ 111*2390b1b6SPatrick Williams ${sysconfdir}/xdg/fvwm \ 112*2390b1b6SPatrick Williams" 113*2390b1b6SPatrick WilliamsFILES:${PN}-doc = " \ 114*2390b1b6SPatrick Williams ${mandir} \ 115*2390b1b6SPatrick Williams ${datadir}/fvwm \ 116*2390b1b6SPatrick Williams" 117*2390b1b6SPatrick WilliamsRDEPENDS:${PN} = " \ 118*2390b1b6SPatrick Williams xuser-account \ 119*2390b1b6SPatrick Williams" 120*2390b1b6SPatrick WilliamsRDEPENDS:${PN}-extra += "\ 121*2390b1b6SPatrick Williams perl \ 122*2390b1b6SPatrick Williams python3-core \ 123*2390b1b6SPatrick Williams" 124