|
| 1 | +TERMUX_PKG_HOMEPAGE=https://sf.net/p/libwpd/librevenge/ |
| 2 | +TERMUX_PKG_DESCRIPTION="library for REVerses ENGineered formats filters" |
| 3 | +TERMUX_PKG_LICENSE="LGPL-2.1, MPL-2.0" |
| 4 | +TERMUX_PKG_MAINTAINER="@termux-user-repository" |
| 5 | +TERMUX_PKG_VERSION=0.0.5 |
| 6 | +TERMUX_PKG_SRCURL=https://sourceforge.net/projects/libwpd/files/librevenge/librevenge-${TERMUX_PKG_VERSION}/librevenge-${TERMUX_PKG_VERSION}.tar.xz |
| 7 | +TERMUX_PKG_SHA256=106d0c44bb6408b1348b9e0465666fa83b816177665a22cd017e886c1aaeeb34 |
| 8 | +TERMUX_PKG_DEPENDS="boost, zlib" |
| 9 | +TERMUX_PKG_BUILD_DEPENDS="boost-headers" |
| 10 | +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" |
| 11 | +--disable-tests |
| 12 | +" |
| 13 | + |
| 14 | +termux_step_pre_configure() { |
| 15 | + local _libgcc_file="$($CC -print-libgcc-file-name)" |
| 16 | + local _libgcc_path="$(dirname $_libgcc_file)" |
| 17 | + local _libgcc_name="$(basename $_libgcc_file)" |
| 18 | + LDFLAGS+=" -L$_libgcc_path -l:$_libgcc_name" |
| 19 | +} |
| 20 | + |
| 21 | +termux_step_post_configure() { |
| 22 | + # Avoid overlinking |
| 23 | + sed -i 's/ -shared / -Wl,--as-needed\0/g' ./libtool |
| 24 | +} |
| 25 | + |
| 26 | +termux_step_post_massage() { |
| 27 | + # Do not forget to bump revision of reverse dependencies and rebuild them |
| 28 | + # after SOVERSION is changed. |
| 29 | + local _SOVERSION_GUARD_FILES=" |
| 30 | +lib/librevenge-0.0.so |
| 31 | +lib/librevenge-generators-0.0.so |
| 32 | +lib/librevenge-stream-0.0.so |
| 33 | +" |
| 34 | + local f |
| 35 | + for f in ${_SOVERSION_GUARD_FILES}; do |
| 36 | + if [ ! -e "${f}" ]; then |
| 37 | + termux_error_exit "SOVERSION guard check failed." |
| 38 | + fi |
| 39 | + done |
| 40 | +} |
0 commit comments