Mercurial > mxe-octave
comparison src/libarchive.mk @ 4580:5875a3c3404c
update additional PKG_UPDATE rules
* src/blas.mk (PKG_UPDATE): add actual check for blas version
* src/gnuplot.mk (PKG_UPDATE): implement working macro
* src/libarchive.mk, src/librsvg.mk: update PKG_UPDATE macro
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 17 Dec 2017 17:09:44 -0500 |
parents | 979f5b397e51 |
children |
comparison
equal
deleted
inserted
replaced
4579:5e3fb4c40644 | 4580:5875a3c3404c |
---|---|
12 | 12 |
13 define $(PKG)_UPDATE | 13 define $(PKG)_UPDATE |
14 $(WGET) -q -O- 'https://www.libarchive.org/downloads/' | \ | 14 $(WGET) -q -O- 'https://www.libarchive.org/downloads/' | \ |
15 $(SED) -n 's,.*libarchive-\([0-9][^<]*\)\.tar.*,\1,p' | \ | 15 $(SED) -n 's,.*libarchive-\([0-9][^<]*\)\.tar.*,\1,p' | \ |
16 $(SORT) -V | \ | 16 $(SORT) -V | \ |
17 head -1 | 17 tail -1 |
18 endef | 18 endef |
19 | 19 |
20 define $(PKG)_BUILD | 20 define $(PKG)_BUILD |
21 $(SED) -i '1i#ifndef LIBARCHIVE_STATIC\n#define LIBARCHIVE_STATIC\n#endif' -i '$(1)/libarchive/archive.h' | 21 $(SED) -i '1i#ifndef LIBARCHIVE_STATIC\n#define LIBARCHIVE_STATIC\n#endif' -i '$(1)/libarchive/archive.h' |
22 $(SED) -i '1i#ifndef LIBARCHIVE_STATIC\n#define LIBARCHIVE_STATIC\n#endif' -i '$(1)/libarchive/archive_entry.h' | 22 $(SED) -i '1i#ifndef LIBARCHIVE_STATIC\n#define LIBARCHIVE_STATIC\n#endif' -i '$(1)/libarchive/archive_entry.h' |