Ticket #302: xf86-video-glamo-9999.ebuild.patch

File xf86-video-glamo-9999.ebuild.patch, 0.6 KB (added by jc, 2 years ago)

add kms use flag and its configure options

  • xf86-video-glamo-9999.ebuild

    old new  
    1414LICENSE="GPL-2" 
    1515SLOT="0" 
    1616KEYWORDS="~arm" 
    17 IUSE="dri" 
     17IUSE="dri kms" 
    1818 
    1919use dri && EGIT_BRANCH="kms" 
    2020 
     
    3535        eautoreconf || die "eautoreconf failed" 
    3636} 
    3737 
     38src_compile() { 
     39        local myconf 
     40        myconf="${myconf} --disable-kms" 
     41        use kms && myconf="${myconf} --enable-kms" 
     42 
     43        econf ${myconf} || die "Configuration failed" 
     44        emake || die "Make failed" 
     45} 
    3846 
    3947src_install() { 
    4048        x-modular_src_install