Added libfreetype.
authorDaniel G <giri@nwrk.biz>
Tue, 22 Jan 2019 01:50:59 +0000 (02:50 +0100)
committerDaniel G <giri@nwrk.biz>
Tue, 22 Jan 2019 01:50:59 +0000 (02:50 +0100)
_template/packages/freetype/.gitignore [new file with mode: 0644]
_template/packages/freetype/Makefile [new file with mode: 0644]
_template/packages/freetype/freetype-2.9.1.tar.gz [new file with mode: 0644]

diff --git a/_template/packages/freetype/.gitignore b/_template/packages/freetype/.gitignore
new file mode 100644 (file)
index 0000000..f695051
--- /dev/null
@@ -0,0 +1,7 @@
+# Ignore everything
+*
+
+# But not these files...
+!.gitignore
+!freetype-2.9.1.tar.gz
+!Makefile
\ No newline at end of file
diff --git a/_template/packages/freetype/Makefile b/_template/packages/freetype/Makefile
new file mode 100644 (file)
index 0000000..d7a7542
--- /dev/null
@@ -0,0 +1,39 @@
+############################################################################
+# Workfile: Makefile
+# Author: Daniel Giritzer, S1810567004 (daniel@giritzer.eu)
+# Date: 03.12.2018
+# Description: Universal Makefile for Unix based Operating Systems
+############################################################################
+WORKDIR = $(shell pwd)
+
+all: unpack windows clean linux
+
+.PHONY: unpack
+unpack:
+       tar xvzf freetype-2.9.1.tar.gz
+       cd $(WORKDIR)/freetype-2.9.1
+       
+.PHONY: windows
+windows:
+       cd $(WORKDIR)/freetype-2.9.1; \
+       ./configure CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32 -static-libgcc -static-libstdc++" --host=i686-w64-mingw32 --disable-shared --enable-static --without-png --without-zlib --without-harfbuzz; \
+       make -j4
+       mkdir -p $(WORKDIR)/../../include/*
+       mkdir -p $(WORKDIR)/../../lib/mingw32
+       cp -rf $(WORKDIR)/freetype-2.9.1/include $(WORKDIR)/../../include
+       cp -rf $(WORKDIR)/freetype-2.9.1/objs/.libs/libfreetype.a $(WORKDIR)/../../lib/mingw32
+
+.PHONY: linux
+linux:
+       cd $(WORKDIR)/freetype-2.9.1; \
+       ./configure CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32 -static-libgcc -static-libstdc++" --disable-shared --enable-static --without-png --without-zlib --without-harfbuzz; \
+       make -j4
+       mkdir -p $(WORKDIR)/../../include
+       mkdir -p $(WORKDIR)/../../lib/linux32
+       cp -rf $(WORKDIR)/freetype-2.9.1/include/* $(WORKDIR)/../../include
+       cp -rf $(WORKDIR)/freetype-2.9.1/objs/.libs/libfreetype.a $(WORKDIR)/../../lib/linux32
+
+.PHONY: clean
+clean:
+       cd $(WORKDIR)/freetype-2.9.1; \
+       make clean
diff --git a/_template/packages/freetype/freetype-2.9.1.tar.gz b/_template/packages/freetype/freetype-2.9.1.tar.gz
new file mode 100644 (file)
index 0000000..01ad8ea
Binary files /dev/null and b/_template/packages/freetype/freetype-2.9.1.tar.gz differ