X11 v7 (Modular X) Compiles
This wasn’t as difficult as I thought it would be. The only problem I encountered buliding it successfully was in the previous post where mesa-progs failed to compile. I’m not even sure at this time why it is required, but I did get it working. Here’s what I did.
ebuild /usr/local/portage/x11-apps/mesa-progs/mesa-progs-6.4.2.ebuild unpack
cd /var/tmp/portage/mesa-progs-6.4.2/work/Mesa-6.4.2
Then I edit one of the Makefiles in there and add four lines.
nano -w progs/xdemos/Makefile
I add the following:
glxgears: glxgears.c
$(CC) $(CFLAGS) -I$(INCDIR) glxgears.c $(GLUT_LIB_DEPS) -o $@
glxinfo: glxinfo.c
$(CC) $(CFLAGS) -I$(INCDIR) glxinfo.c $(GLUT_LIB_DEPS) -o $@
Now I can compile, install and merge
ebuild /usr/local/portage/x11-apps/mesa-progs/mesa-progs-6.4.2.ebuild compile
ebuild /usr/local/portage/x11-apps/mesa-progs/mesa-progs-6.4.2.ebuild install
ebuild /usr/local/portage/x11-apps/mesa-progs/mesa-progs-6.4.2.ebuild qmerge
Done. This is roughly equivalent to running emerge mesa-progs except that it works.
…Well, it compiles. It doesn’t work. I can’t seem to get my ATI card to work. I am saving that for the next post, though.