Skip to content

Commit

Permalink
Merge pull request #71 from fjtrujy/master
Browse files Browse the repository at this point in the history
Lib JPEG improvements
  • Loading branch information
rickgaiser authored Aug 2, 2021
2 parents fd921e2 + 9f43a06 commit a9f52e7
Show file tree
Hide file tree
Showing 102 changed files with 377 additions and 45,467 deletions.
12 changes: 5 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.PHONY: aalib cmakelibs expat libconfig libid3tag libjpeg libmad libmikmod libtap libtiff lua madplay ode romfs sdl sdlgfx sdlimage sdlmixer sdlttf
.PHONY: aalib cmakelibs expat libconfig libid3tag libjpeg_ps2_addons libmad libmikmod libtap libtiff lua madplay ode romfs sdl sdlgfx sdlimage sdlmixer sdlttf

ifneq ("$(wildcard $(GSKIT)/include/gsKit.h)","")
all: libraries
libraries: aalib cmakelibs expat libconfig libid3tag libjpeg libmad libmikmod libtap libtiff lua madplay romfs sdl sdlgfx sdlimage sdlmixer sdlttf
libraries: aalib cmakelibs expat libconfig libid3tag libjpeg_ps2_addons libmad libmikmod libtap libtiff lua madplay romfs sdl sdlgfx sdlimage sdlmixer sdlttf
# ode
else
all: libraries
libraries: aalib cmakelibs expat libconfig libid3tag libjpeg libmad libmikmod libtap libtiff lua madplay romfs
libraries: aalib cmakelibs expat libconfig libid3tag libjpeg_ps2_addons libmad libmikmod libtap libtiff lua madplay romfs
# ode
@echo "GSKIT not set and gsKit not installed.\nSDL libraries were not built."
endif
Expand Down Expand Up @@ -34,7 +34,7 @@ libid3tag: cmakelibs
$(MAKE) -C $@ install
$(MAKE) -C $@ clean

libjpeg: cmakelibs
libjpeg_ps2_addons: cmakelibs
$(MAKE) -C $@ all
$(MAKE) -C $@ install
$(MAKE) -C $@ clean
Expand Down Expand Up @@ -86,7 +86,7 @@ romfs:
$(MAKE) -C $@ install
$(MAKE) -C $@ clean

sdl: libjpeg
sdl: cmakelibs
$(MAKE) -C $@
$(MAKE) -C $@ install
$(MAKE) -C $@ clean
Expand Down Expand Up @@ -114,11 +114,9 @@ sdlttf: sdl cmakelibs
sample:
$(MAKE) -C aalib sample
$(MAKE) -C libmikmod sample
$(MAKE) -C libpng sample
$(MAKE) -C sdl sample
$(MAKE) -C sdlgfx sample
$(MAKE) -C sdlmixer sample
$(MAKE) -C zlib sample
$(MAKE) -C lua sample platform=PS2
# Broken samples
# $(MAKE) -C ode sample
Expand Down
4 changes: 3 additions & 1 deletion build-cmakelibs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ cd build
##
git clone --depth 1 -b v1.2.11 https://github.com/madler/zlib || { exit 1; }
git clone --depth 1 -b v1.6.37 https://github.com/glennrp/libpng || { exit 1; }
git clone --depth 1 -b VER-2-10-4 https://github.com/freetype/freetype.git || { exit 1; }
git clone --depth 1 -b VER-2-10-4 https://github.com/freetype/freetype || { exit 1; }
git clone --depth 1 -b 0.2.5 https://github.com/yaml/libyaml || { exit 1; }
git clone --depth 1 -b 2.1.0 https://github.com/libjpeg-turbo/libjpeg-turbo || { exit 1; }

##
## Build cmake projects
Expand All @@ -50,4 +51,5 @@ build zlib "-DUNIX:BOOL=ON"
build libpng "-DPNG_SHARED=OFF -DPNG_STATIC=ON"
build freetype
build libyaml
build libjpeg-turbo "-DCMAKE_BUILD_TYPE=Release -DENABLE_SHARED=FALSE -DWITH_SIMD=0"
cd ..
82 changes: 0 additions & 82 deletions libjpeg/COPYING

This file was deleted.

111 changes: 0 additions & 111 deletions libjpeg/include/jconfig.h

This file was deleted.

Loading

0 comments on commit a9f52e7

Please sign in to comment.