mrrl

Minimal Reliable Reproducible Linux
git clone https://ccx.te2000.cz/git/mrrl
Log | Files | Refs | Submodules | README

libelf (1147B)


      1 {% extends "genlinks" %}
      2 {%- block script %}
      3 #+{{pkg_install_name("musl-cross-make")}}
      4 #+{{pkg_install_name("gnu-make")}}
      5 #+{{pkg_install_name("busybox")}}
      6 #+{{pkg_install_name("busybox-diffutils")}}
      7 #+{{pkg_install_name("zstd")}}
      8 #@git:{{submodule.current[name]}}:{{name}}
      9 
     10 {% include "functions/build_env_static" %}
     11 prefix={{versions}}/$pthbs_package
     12 build_env_static
     13 cd {{name}}
     14 {{make}} PREFIX="$prefix" \
     15 	DESTDIR="$pthbs_destdir" \
     16 	INCDIR="$prefix/include" \
     17 	LIBDIR="$prefix/library" \
     18 	install-static
     19 
     20 mkdir -p "$pthbs_destdir/${prefix#/}/library/pkgconfig"
     21 printf '%s\n' > "$pthbs_destdir/${prefix#/}/library/pkgconfig/libelf.pc" \
     22 	"prefix={{versions}}/$pthbs_package" \
     23 	'exec_prefix=${prefix}' \
     24 	'includedir=${prefix}/include' \
     25 	'libdir=${exec_prefix}/library' \
     26 	'' \
     27 	'Name: libelf' \
     28 	'Description: standalone libelf' \
     29 	'Version: 0.193' \
     30 	'' \
     31 	'Requires:' \
     32 	'Libs: -L${libdir} -lelf -lz -lzstd' \
     33 	'Cflags: -I${includedir}'
     34 
     35 {% endblock %}
     36 {% block genlinks_begin %}
     37 	x["./library/libelf.a"]=1
     38 	x["./library/pkgconfig/libelf.pc"]=1
     39 	x["./include/libelf.h"]=1
     40 	x["./include/gelf.h"]=1
     41 	x["./include/nlist.h"]=1
     42 {% endblock %}