-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hence - remove the now useless patch - rebuild the win64 dll (same makefile as win32) rather than download from files.pharo.org
- Loading branch information
1 parent
836cba1
commit 07aad2f
Showing
5 changed files
with
36 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,39 @@ | ||
# Instead build, copy dependency from mingw distribution | ||
|
||
ifndef THIRDPARTYDIR | ||
include ../common/Makefile.lib.extra | ||
endif | ||
include ../../third-party/freetype2.spec | ||
include ../../third-party/freetype2.spec.win64 | ||
|
||
EXTERNALFILESURL:=https://files.pharo.org/vm/pharo-spur64/win/third-party | ||
FREETYPE2LIBNAME:=$(freetype2_spec_download_artifact_name_windows) | ||
FREETYPE2LIBINSTALLNAME:=$(freetype2_spec_product_name_windows) | ||
FREETYPE2LIB:=$(THIRDPARTYINSTALLDIR)/$(FREETYPE2LIBINSTALLNAME) | ||
# plugin definitions | ||
FREETYPE2URL:=$(freetype2_spec_download_url) | ||
FREETYPE2LIBNAME:=$(freetype2_spec_product_name_windows) | ||
FREETYPE2DIR:=$(THIRDPARTYDIR)/$(freetype2_spec_unpack_dir_name) | ||
FREETYPE2ARCHIVE:=$(THIRDPARTYCACHEDIR)/$(freetype2_spec_archive_name) | ||
FREETYPE2LIB:=$(THIRDPARTYINSTALLDIR)/$(FREETYPE2LIBNAME) | ||
|
||
$(THIRDPARTYLIBDIR)/$(FREETYPE2LIBNAME): | ||
echo | ||
$(WGET) -O $(THIRDPARTYLIBDIR)/$(FREETYPE2LIBNAME) $(EXTERNALFILESURL)/$(FREETYPE2LIBNAME) | ||
# ensure third-party library is built and recognised by plugins | ||
INCDIRS:=$(INCDIRS) $(THIRDPARTYINCLUDEDIR) $(THIRDPARTYINCLUDEDIR)/freetype2 | ||
EXTRALIBS:=$(EXTRALIBS) $(FREETYPE2LIB) | ||
PLUGINREQS:=$(PLUGINREQS) $(THIRDPARTYLIBS) | ||
|
||
$(FREETYPE2ARCHIVE): | ||
$(WGET) -O $(FREETYPE2ARCHIVE) $(FREETYPE2URL) | ||
|
||
$(THIRDPARTYLIBDIR)/$(FREETYPE2LIBNAME): $(FREETYPE2ARCHIVE) | ||
tar x -f $(FREETYPE2ARCHIVE) -C $(THIRDPARTYDIR) | ||
cp ../third-party/Toolchain-cross-mingw32-cygwin.cmake $(FREETYPE2DIR) | ||
test -d $(FREETYPE2DIR)/build || mkdir $(FREETYPE2DIR)/build | ||
cd $(FREETYPE2DIR)/build \ | ||
&& cmake ..\ | ||
-DCMAKE_TOOLCHAIN_FILE=../Toolchain-cross-mingw32-cygwin.cmake \ | ||
-DCMAKE_INSTALL_PREFIX=$(THIRDPARTYOUTDIR) \ | ||
-DWITH_PNG=OFF \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DCMAKE_C_FLAGS="$(THIRDPARTY_CFLAGS)" \ | ||
&& make \ | ||
&& make install \ | ||
&& cp libfreetype.dll $(THIRDPARTYLIBDIR)/$(FREETYPE2LIBNAME) | ||
|
||
$(FREETYPE2LIB): pkgconfig libpng $(THIRDPARTYLIBDIR)/$(FREETYPE2LIBNAME) | ||
cp -f $(THIRDPARTYLIBDIR)/$(FREETYPE2LIBNAME) $(FREETYPE2LIB) | ||
|
||
cp -f $(THIRDPARTYLIBDIR)/$(FREETYPE2LIBNAME) $(THIRDPARTYINSTALLDIR) | ||
freetype2: $(FREETYPE2LIB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.