Browse Source

libzopfli: Avoid setting library soname

android-5
Fredrik Fornwall 8 years ago
parent
commit
1fb02ce2da
  1. 2
      packages/libzopfli/Makefile.patch
  2. 1
      packages/libzopfli/build.sh

2
packages/libzopfli/Makefile.patch

@ -23,7 +23,7 @@ diff -u -r ../zopfli-zopfli-1.0.1/Makefile ./Makefile
+install:
$(CC) $(ZOPFLILIB_SRC) $(CFLAGS) -fPIC -c
- $(CC) $(ZOPFLILIB_OBJ) $(CFLAGS) -shared -Wl,-soname,libzopfli.so.1 -o libzopfli.so.1.0.1
+ $(CC) $(ZOPFLILIB_OBJ) $(CFLAGS) -shared -Wl,-soname,libzopfli.so.1 -o @TERMUX_PREFIX@/lib/libzopfli.so -lm
+ $(CC) $(ZOPFLILIB_OBJ) $(CFLAGS) -shared -o @TERMUX_PREFIX@/lib/libzopfli.so -lm
# ZopfliPNG binary
zopflipng:

1
packages/libzopfli/build.sh

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://github.com/google/zopfli
TERMUX_PKG_DESCRIPTION="New zlib compatible compressor library"
TERMUX_PKG_VERSION=1.0.1
TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/google/zopfli/archive/zopfli-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME=zopfli-zopfli-${TERMUX_PKG_VERSION}
TERMUX_PKG_BUILD_IN_SRC=yes

Loading…
Cancel
Save