Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working version with generation of thirdparty libraries
- Loading branch information
Showing
21 changed files
with
291 additions
and
47 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
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 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.PHONY: all | ||
|
||
include Makefile.lib | ||
|
||
all: $(CAIROLIB) |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
include ../common/Makefile.extra | ||
|
||
$(info LIBRARY: cairo) | ||
|
||
# plugin definitions | ||
CAIROURL:=http://www.cairographics.org/releases/cairo-1.12.14.tar.xz | ||
CAIROLIBNAME:=libcairo.2.dylib | ||
CAIRODIR:=$(THIRDPARTYDIR)/cairo-1.12.14 | ||
CAIROLIB:=$(THIRDPARTYINSTALLDIR)/$(CAIROLIBNAME) | ||
|
||
# ensure third-party library is built and recognised by plugins | ||
INCDIRS:=$(INCDIRS) $(THIRDPARTYINCLUDEDIR) | ||
THIRDPARTYLIBS:=$(THIRDPARTYLIBS) cairo | ||
EXTRALIBS:=$(EXTRALIBS) $(CAIROLIB) | ||
PLUGINREQS:=$(THIRDPARTYLIBS) | ||
|
||
$(CAIRODIR): $(THIRDPARTYDIR) | ||
curl -L $(CAIROURL) | tar x -C $(THIRDPARTYDIR) | ||
|
||
$(CAIROLIB): $(THIRDPARTYINSTALLDIR) $(THIRDPARTYOUTDIR) $(CAIRODIR) | ||
cd $(CAIRODIR) \ | ||
&& ./configure \ | ||
--prefix='$(THIRDPARTYOUTDIR)' \ | ||
CFLAGS='-arch i386' \ | ||
LDFLAGS='-arch i386' \ | ||
--disable-silent-rules \ | ||
--disable-xlib \ | ||
--disable-dependency-tracking \ | ||
&& make \ | ||
&& make install | ||
cp -f $(THIRDPARTYLIBDIR)/$(CAIROLIBNAME) $(THIRDPARTYINSTALLDIR) | ||
install_name_tool -id "@executable_path/Plugins/$(CAIROLIBNAME)" $(CAIROLIB) | ||
|
||
cairo: $(CAIROLIB) |
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,3 +1,5 @@ | ||
.PHONY: all | ||
|
||
include Makefile.lib | ||
|
||
all: $(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,28 @@ | ||
FREETYPE2URL:=http://files.pharo.org/vm/src/lib/freetype-2.4.9.tar.gz | ||
FREETYPE2DIR:=$(THIRDPARTYDIR)/freetype-2.4.9 | ||
FREETYPE2LIB:=$(THIRDPARTYINSTALLDIR)/libfreetype.6.dylib | ||
include ../common/Makefile.extra | ||
|
||
$(info LIBRARY: freetype2) | ||
|
||
$(info $$(FREETYPE2LIB): $(FREETYPE2LIB)) | ||
# plugin definitions | ||
FREETYPE2URL:=http://ftp.igh.cnrs.fr/pub/nongnu/freetype/freetype-2.4.9.tar.gz | ||
FREETYPE2DIR:=$(THIRDPARTYDIR)/freetype-2.4.9 | ||
FREETYPE2LIBNAME:=libfreetype.6.dylib | ||
FREETYPE2LIB:=$(THIRDPARTYINSTALLDIR)/$(FREETYPE2LIBNAME) | ||
|
||
# ensure third-party library is built and recognised by plugins | ||
INCDIRS:=$(INCDIRS) $(THIRDPARTYINCLUDEDIR) $(THIRDPARTYINCLUDEDIR)/freetype2 | ||
EXTRALIBS:=$(EXTRALIBS) $(FREETYPE2LIB) | ||
THIRDPARTYLIBS:=$(THIRDPARTYLIBS) freetype2 | ||
PLUGINREQS:=$(PLUGINREQS) $(THIRDPARTYLIBS) | ||
|
||
$(FREETYPE2DIR): $(THIRDPARTYDIR) | ||
curl $(FREETYPE2URL) | tar x -C $(THIRDPARTYDIR) | ||
|
||
$(FREETYPE2LIB): $(THIRDPARTYINSTALLDIR) $(THIRDPARTYOUTDIR) $(FREETYPE2DIR) | ||
cd $(FREETYPE2DIR) \ | ||
&& ./configure --prefix='$(THIRDPARTYOUTDIR)' CFLAGS='-arch i386' LDFLAGS='-arch i386' \ | ||
&& ./configure --prefix='$(THIRDPARTYOUTDIR)' CFLAGS='-arch i386' LDFLAGS='-arch i386 ' \ | ||
&& make \ | ||
&& make install | ||
cp -f $(THIRDPARTYOUTDIR)/lib/libfreetype.6.dylib $(THIRDPARTYINSTALLDIR) | ||
cp -f $(THIRDPARTYLIBDIR)/$(FREETYPE2LIBNAME) $(THIRDPARTYINSTALLDIR) | ||
install_name_tool -id "@executable_path/Plugins/$(FREETYPE2LIBNAME)" $(FREETYPE2LIB) | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.PHONY: all | ||
|
||
include Makefile.lib | ||
|
||
all: $(LIBGIT2LIB) |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
include ../common/Makefile.extra | ||
|
||
$(info LIBRARY: libgit2) | ||
|
||
# plugin definitions | ||
LIBGIT2URL:=https://github.com/libgit2/libgit2/archive/v0.23.0.tar.gz | ||
LIBGIT2DIR:=$(THIRDPARTYDIR)/libgit2-0.23.0 | ||
LIBGIT2LIBNAME:=libgit2.0.23.0.dylib | ||
LIBGIT2LIB:=$(THIRDPARTYINSTALLDIR)/$(LIBGIT2LIBNAME) | ||
|
||
# ensure third-party library is built and recognised by plugins | ||
INCDIRS:=$(INCDIRS) $(THIRDPARTYINCLUDEDIR) | ||
THIRDPARTYLIBS:=$(THIRDPARTYLIBS) libgit2 | ||
EXTRALIBS:=$(EXTRALIBS) $(LIBGIT2LIB) | ||
PLUGINREQS:=$(THIRDPARTYLIBS) | ||
|
||
$(LIBGIT2DIR): $(THIRDPARTYDIR) | ||
curl -L $(LIBGIT2URL) | tar x -C $(THIRDPARTYDIR) | ||
|
||
$(LIBGIT2LIB): $(THIRDPARTYINSTALLDIR) $(THIRDPARTYOUTDIR) $(LIBGIT2DIR) | ||
cd $(LIBGIT2DIR) \ | ||
&& cmake \ | ||
-DCMAKE_INSTALL_PREFIX=$(THIRDPARTYOUTDIR) \ | ||
-DUSE_SSH=ON \ | ||
-DBUILD_CLAR=OFF \ | ||
-DLIBSSH2_FOUND=ON \ | ||
-DLIBSSH2_INCLUDE_DIRS=$(THIRDPARTYINCLUDEDIR) \ | ||
-DLIBSSH2_LIBRARIES=$(THIRDPARTYLIBDIR)/libssh2.1.dylib \ | ||
-DCMAKE_C_FLAGS=-m32 \ | ||
-DCMAKE_CXX_FLAGS=-m32 \ | ||
-DCMAKE_OSX_ARCHITECTURES=i386 \ | ||
-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-rpath,@executable_path:@executable_path/Plugins \ | ||
&& make \ | ||
&& make install | ||
cp -f $(THIRDPARTYLIBDIR)/$(LIBGIT2LIBNAME) $(THIRDPARTYINSTALLDIR) | ||
install_name_tool -id "@executable_path/Plugins/$(LIBGIT2LIBNAME)" $(LIBGIT2LIB) | ||
|
||
libgit2: $(LIBGIT2LIB) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.PHONY: all | ||
|
||
include Makefile.lib | ||
|
||
all: $(LIBPNGLIB) |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
include ../common/Makefile.extra | ||
|
||
$(info LIBRARY: pixman) | ||
|
||
# plugin definitions | ||
LIBPNGURL:=ftp://ftp.simplesystems.org/pub/libpng/png/src/history/libpng12/libpng-1.2.49.tar.gz | ||
LIBPNGDIR:=$(THIRDPARTYDIR)/libpng-1.2.49 | ||
LIBPNGLIBNAME:=libpng12.0.dylib | ||
LIBPNGLIB:=$(THIRDPARTYINSTALLDIR)/$(LIBPNGLIBNAME) | ||
|
||
# ensure third-party library is built and recognised by plugins | ||
INCDIRS:=$(INCDIRS) $(THIRDPARTYINCLUDEDIR) | ||
THIRDPARTYLIBS:=$(THIRDPARTYLIBS) libpng | ||
EXTRALIBS:=$(EXTRALIBS) $(LIBPNGLIB) | ||
PLUGINREQS:=$(THIRDPARTYLIBS) | ||
|
||
$(LIBPNGDIR): $(THIRDPARTYDIR) | ||
curl -L $(LIBPNGURL) | tar x -C $(THIRDPARTYDIR) | ||
|
||
$(LIBPNGLIB): $(THIRDPARTYINSTALLDIR) $(THIRDPARTYOUTDIR) $(LIBPNGDIR) | ||
cd $(LIBPNGDIR) \ | ||
&& ./configure --prefix='$(THIRDPARTYOUTDIR)' CFLAGS='-arch i386' LDFLAGS='-arch i386' \ | ||
&& make \ | ||
&& make install | ||
cp -f $(THIRDPARTYLIBDIR)/$(LIBPNGLIBNAME) $(THIRDPARTYINSTALLDIR) | ||
install_name_tool -id "@executable_path/Plugins/$(LIBPNGLIBNAME)" $(LIBPNGLIB) | ||
|
||
libpng: $(LIBPNGLIB) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.PHONY: all | ||
|
||
include Makefile.lib | ||
|
||
all: $(LIBSSH2LIB) |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
include ../common/Makefile.extra | ||
|
||
$(info LIBRARY: libssh2) | ||
|
||
# plugin definitions | ||
LIBSSH2URL:=http://www.libssh2.org/download/libssh2-1.4.3.tar.gz | ||
LIBSSH2DIR:=$(THIRDPARTYDIR)/libssh2-1.4.3 | ||
LIBSSH2LIBNAME:=libssh2.1.dylib | ||
LIBSSH2LIB:=$(THIRDPARTYINSTALLDIR)/$(LIBSSH2LIBNAME) | ||
|
||
# ensure third-party library is built and recognised by plugins | ||
INCDIRS:=$(INCDIRS) $(THIRDPARTYINCLUDEDIR) | ||
THIRDPARTYLIBS:=$(THIRDPARTYLIBS) libssh2 | ||
EXTRALIBS:=$(EXTRALIBS) $(LIBSSH2LIB) | ||
PLUGINREQS:=$(THIRDPARTYLIBS) | ||
|
||
$(LIBSSH2DIR): $(THIRDPARTYDIR) | ||
curl -L $(LIBSSH2URL) | tar x -C $(THIRDPARTYDIR) | ||
|
||
$(LIBSSH2LIB): $(THIRDPARTYINSTALLDIR) $(THIRDPARTYOUTDIR) $(LIBSSH2DIR) | ||
cd $(LIBSSH2DIR) \ | ||
&& ./configure --prefix='$(THIRDPARTYOUTDIR)' CFLAGS='-arch i386' LDFLAGS='-arch i386' \ | ||
&& make \ | ||
&& make install | ||
cp -f $(THIRDPARTYLIBDIR)/$(LIBSSH2LIBNAME) $(THIRDPARTYINSTALLDIR) | ||
install_name_tool -id "@executable_path/Plugins/$(LIBSSH2LIBNAME)" $(LIBSSH2LIB) | ||
|
||
libssh2: $(LIBSSH2LIB) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.PHONY: all | ||
|
||
include Makefile.lib | ||
|
||
all: $(PIXMANLIB) |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
include ../common/Makefile.extra | ||
|
||
$(info LIBRARY: pixman) | ||
|
||
# plugin definitions | ||
PIXMANURL:=http://www.cairographics.org/releases/pixman-0.26.0.tar.gz | ||
PIXMANNAME:=libpixman-1.0.dylib | ||
PIXMANDIR:=$(THIRDPARTYDIR)/pixman-0.26.0 | ||
PIXMANLIB:=$(THIRDPARTYINSTALLDIR)/$(PIXMANNAME) | ||
|
||
# ensure third-party library is built and recognised by plugins | ||
INCDIRS:=$(INCDIRS) $(THIRDPARTYINCLUDEDIR) | ||
THIRDPARTYLIBS:=$(THIRDPARTYLIBS) pixman | ||
EXTRALIBS:=$(EXTRALIBS) $(PIXMANLIB) | ||
PLUGINREQS:=$(THIRDPARTYLIBS) | ||
|
||
$(PIXMANDIR): $(THIRDPARTYDIR) | ||
curl -L $(PIXMANURL) | tar x -C $(THIRDPARTYDIR) | ||
|
||
$(PIXMANLIB): $(THIRDPARTYINSTALLDIR) $(THIRDPARTYOUTDIR) $(PIXMANDIR) | ||
cd $(PIXMANDIR) \ | ||
&& ./configure --prefix='$(THIRDPARTYOUTDIR)' CFLAGS='-arch i386' LDFLAGS='-arch i386' \ | ||
&& make \ | ||
&& make install | ||
cp -f $(THIRDPARTYLIBDIR)/$(PIXMANNAME) $(THIRDPARTYINSTALLDIR) | ||
|
||
pixman: $(PIXMANLIB) |
Oops, something went wrong.