cleanup: replace some last manual lib install+symlink with calls to oe_soinstall.
[vuplus_openembedded] / x11 / x11-cvs.oe
1 PV = "0.0cvs${CVSDATE}"
2 SECTION = "libs"
3 PRIORITY = "optional"
4 MAINTAINER = "Greg Gilbert <greg@treke.net>"
5 RDEPENDS = "libc6"
6 DEPENDS = "virtual/libc xproto-cvs xextensions-cvs xau-cvs xtrans-cvs xdmcp-cvs"
7 PROVIDES = "x11"
8 DESCRIPTION = "Base X libs."
9 FILES_x11-cvs_append = " ${datadir}/X11"
10
11 SRC_URI = "cvs://anoncvs:anoncvs@pdx.freedesktop.org/cvs/xlibs;module=X11"
12 S = "${WORKDIR}/X11"
13
14 inherit autotools pkgconfig libtool
15
16 do_compile() {
17         (
18                 unset CC LD CXX CCLD
19 #               unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
20                 oe_runmake -C src/util 'CFLAGS=' 'LDFLAGS=' 'CXXFLAGS=' 'CPPFLAGS=' makekeys
21         )
22         oe_runmake
23 }
24
25 do_stage() {
26         install -c -m 644 include/X11/XKBlib.h ${STAGING_INCDIR}/X11/XKBlib.h
27         install -c -m 644 include/X11/Xcms.h ${STAGING_INCDIR}/X11/Xcms.h
28         install -c -m 644 include/X11/Xlib.h ${STAGING_INCDIR}/X11/Xlib.h
29         install -c -m 644 include/X11/Xlibint.h ${STAGING_INCDIR}/X11/Xlibint.h
30         install -c -m 644 include/X11/Xlocale.h ${STAGING_INCDIR}/X11/Xlocale.h
31         install -c -m 644 include/X11/Xresource.h ${STAGING_INCDIR}/X11/Xresource.h
32         install -c -m 644 include/X11/Xutil.h ${STAGING_INCDIR}/X11/Xutil.h
33         install -c -m 644 include/X11/cursorfont.h ${STAGING_INCDIR}/X11/cursorfont.h
34         install -c -m 644 include/X11/region.h ${STAGING_INCDIR}/X11/region.h
35         install -c -m 644 include/X11/ImUtil.h ${STAGING_INCDIR}/X11/ImUtil.h
36         
37         oe_soinstall src/.libs/libX11.so.6.2.1 ${STAGING_LIBDIR}/
38         install -c -m 644 src/.libs/libX11.a ${STAGING_LIBDIR}/libX11.a
39         install -c -m 644 src/.libs/libX11.lai ${STAGING_LIBDIR}/libX11.la
40 }