Skip to content

Commit edccfc5

Browse files
committed
Prefer wget to curl. Update wxWidgets to version 3.0.4
1 parent 5d39b64 commit edccfc5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ObjCryst/rules-gnu.mak

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ WXCONFIG= wx-config --unicode=yes
8383
endif
8484

8585
# Which command to use for download ?
86-
CURL=$(shell which curl 2>/dev/null)
87-
ifneq ($(CURL),)
88-
DOWNLOAD_COMMAND=curl -L -O
89-
else
86+
WGET=$(shell which wget 2>/dev/null)
87+
ifneq ($(WGET),)
9088
DOWNLOAD_COMMAND=wget
89+
else
90+
DOWNLOAD_COMMAND=curl -L -O
9191
endif
9292

9393
# If using glut (freeglut)
@@ -212,13 +212,13 @@ else
212212
libfreeglut=
213213
endif
214214

215-
$(BUILD_DIR)/wxWidgets-3.0.2.tar.bz2:
216-
cd $(BUILD_DIR) && $(DOWNLOAD_COMMAND) http://ftp.wxwidgets.org/pub/3.0.2/wxWidgets-3.0.2.tar.bz2
215+
$(BUILD_DIR)/wxWidgets-3.0.4.tar.bz2:
216+
cd $(BUILD_DIR) && $(DOWNLOAD_COMMAND) https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.4/wxWidgets-3.0.4.tar.bz2
217217

218-
$(BUILD_DIR)/static-libs/include/wx-3.0/wx/wx.h: $(BUILD_DIR)/wxWidgets-3.0.2.tar.bz2
219-
cd $(BUILD_DIR) && rm -Rf wxWidgets-3.0.2 && tar -xjf wxWidgets-3.0.2.tar.bz2
220-
cd $(BUILD_DIR)/wxWidgets-3.0.2 && ./configure --with-gtk --with-opengl --prefix=$(BUILD_DIR)/static-libs --enable-unicode --enable-optimise --disable-shared --x-includes=/usr/X11R6/include/ && $(MAKE) install
221-
rm -Rf $(BUILD_DIR)/wxWidgets-3.0.2
218+
$(BUILD_DIR)/static-libs/include/wx-3.0/wx/wx.h: $(BUILD_DIR)/wxWidgets-3.0.4.tar.bz2
219+
cd $(BUILD_DIR) && rm -Rf wxWidgets-3.0.4 && tar -xjf wxWidgets-3.0.4.tar.bz2
220+
cd $(BUILD_DIR)/wxWidgets-3.0.4 && ./configure --with-gtk --with-opengl --prefix=$(BUILD_DIR)/static-libs --enable-unicode --enable-optimise --disable-shared --x-includes=/usr/X11R6/include/ && $(MAKE) install
221+
rm -Rf $(BUILD_DIR)/wxWidgets-3.0.4
222222

223223
ifneq ($(wxcryst),0)
224224
ifneq ($(shared-wxgtk),1)

0 commit comments

Comments
 (0)