qLinux
… a distribution study
<< Prev The X Window System
Next >> Pixman-0.40.0
Libxcvt-0.1.1
Download: libxcvt-0.1.1.tar.xz. The package uses meson which is not available yet. Fortunately the package is simple, thus we create a small  Makefile 
:
cat > Makefile << EOF SHELL ?= /qlnx/bin/sh .PHONY: cvt install all: libxcvt cvt clean: rm libxcvt.o libxcvt.so cvt/cvt libxcvt: gcc -c -Wall -Werror -fpic lib/libxcvt.c -Iinclude gcc -shared -o libxcvt.so libxcvt.o cvt: gcc -Wall cvt/cvt.c -o cvt/cvt -L. -lxcvt -Iinclude install: mkdir -p $(DESTDIR)/xsys/inc/libxcvt cp -v include/libxcvt/*.h $(DESTDIR)/xsys/inc/libxcvt/ mkdir -p $(DESTDIR)/xsys/bin cp -v cvt/cvt $(DESTDIR)/xsys/bin/ mkdir -p $(DESTDIR)/xsys/lib cp libxcvt.so $(DESTDIR)/xsys/lib EOF
Build and install libxcvt:
make make install
Create a pkgconfig file:
- xxx
cat > libxcvt.pc << EOF prefix=/xsys libdir=${prefix}/lib includedir=${prefix}/inc Name: libxcvt Description: A Library to generate VESA CVT standard timing modelines. Version: 0.1.1 Libs: -L${libdir} -lxcvt Cflags: -I${includedir} EOF
Copy it to the X' pkgconfig directory:
cp -v libxcvt.pc /xysy/lib/pkgconfig/
Add the path  /xsys/lib 
to musl's search path in  /qlnx/etc/ld-musl-x86_64.path 
!
<< Prev The X Window System
Next >> Pixman-0.40.0