summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-12-02 11:44:15 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-12-02 11:44:15 (GMT)
commitcf5fb10422ddc6be4c9717fc08ccc98a093aaa8b (patch)
tree9f4c729564ac36d4c3084d280df51171a0610f4e /src
parent38a9ead6238a2155c10b6a991729b23360baae42 (diff)
downloadmxe-cf5fb10422ddc6be4c9717fc08ccc98a093aaa8b.zip
mxe-cf5fb10422ddc6be4c9717fc08ccc98a093aaa8b.tar.gz
mxe-cf5fb10422ddc6be4c9717fc08ccc98a093aaa8b.tar.bz2
freetds: add update macro
See: * https://github.com/mxe/mxe/issues/770 * https://github.com/mxe/mxe/commit/746f4700152cc8a5aa945db8a3649a3d465d992a There's still no obvious way to determine revision tagging, so just use the published stable tarballs.
Diffstat (limited to 'src')
-rw-r--r--src/freetds.mk13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/freetds.mk b/src/freetds.mk
index d7dcf1c..8213965 100644
--- a/src/freetds.mk
+++ b/src/freetds.mk
@@ -11,15 +11,10 @@ $(PKG)_URL := ftp://ftp.freetds.org/pub/$(PKG)/stable/$($(PKG)_FILE)
$(PKG)_DEPS := gcc gnutls libiconv
define $(PKG)_UPDATE
- echo 'Warning: Updates are temporarily disabled for package freetds.' >&2;
- echo $(freetds_VERSION)
-endef
-define $(PKG)_UPDATE_orig
- $(WGET) -q -O- 'http://freetds.cvs.sourceforge.net/viewvc/freetds/freetds/' | \
- grep '<option>R' | \
- $(SED) -n 's,.*R\([0-9][0-9_]*\)<.*,\1,p' | \
- $(SED) 's,_,.,g' | \
- head -1
+ $(WGET) -q -O- 'ftp://ftp.freetds.org/pub/freetds/stable/' | \
+ $(SED) -n 's,.*freetds-\([0-9.]*\)\.tar.*,\1,p' | \
+ $(SORT) -V | \
+ tail -1
endef
define $(PKG)_BUILD