mandoc (1479B)
1 {%- import "package_sets" as ps -%} 2 {%- set pkg_version="1.14.6" -%} 3 {%- set pkg_source="tar.gz" -%} 4 {% extends "genlinks" %} 5 {%- do import_functions.update(["check_static"]) %} 6 {%- block package_deps -%} 7 {{ ps.toolchain() }} 8 #+{{pkg_install_name("gnu-make")}} 9 #+{{pkg_install_name("busybox-diffutils")}} 10 {% endblock package_deps %} 11 {% block configure -%} 12 export LD_LIBRARY_PATH="$pthbs_build_environment/{{libdir}}" 13 cat >configure.local<<-__EOF__ 14 PREFIX="$prefix" 15 BINDIR="$prefix/{{bindir}}" 16 SBINDIR="$prefix/{{sbindir}}" 17 BIN_FROM_SBIN=. 18 MANDIR="$prefix/{{mandir}}" 19 LIBDIR="$prefix/{{libdir}}" 20 INCLUDEDIR="$prefix/{{includedir}}" 21 CFLAGS="-I $pthbs_build_environment/{{includedir}}" 22 LDFLAGS="-static -L$pthbs_build_environment/{{libdir}}" 23 UTF8_LOCALE="en_US.UTF-8" 24 MANPATH_DEFAULT=/run/current/{{mandir}} 25 MANPATH_BASE=/run/current/{{mandir}} 26 LN="ln -sf" 27 __EOF__ 28 29 {% endblock configure %} 30 {% block build -%} 31 ./configure 32 {{make}} 33 34 {% endblock build %} 35 {% block install -%} 36 make -j1 DESTDIR="$pthbs_destdir" base-install lib-install 37 38 {% endblock install %} 39 {% block check -%} 40 check_static command/man 41 check_static command/apropos 42 check_static command/whatis 43 check_static command/makewhatis 44 {% endblock check %} 45 {% block genlinks_begin %} 46 x["./{{bindir}}/man"]=1 47 x["./{{bindir}}/apropos"]=1 48 x["./{{bindir}}/whatis"]=1 49 x["./{{bindir}}/makewhatis"]=1 50 x["./{{libdir}}/libmandoc.a"]=1 51 x["./{{mandir}}/man1/man.1"]=1 52 x["./{{mandir}}/man3/mandoc.3"]=1 53 {% endblock genlinks_begin %}