Skip to content

Commit b636efd

Browse files
committed
Use travis-ci trusty and fix pkg-config
1 parent bde1b19 commit b636efd

File tree

3 files changed

+28
-10
lines changed

3 files changed

+28
-10
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
os:
22
- linux
33
language: cpp
4+
dist: trusty
45
sudo: false
56

7+
addons:
8+
apt:
9+
packages:
10+
- libogg-dev
11+
612
script:
713
- export CC=arm-none-eabi-gcc
814
- export CXX=arm-none-eabi-g++
@@ -15,13 +21,13 @@ script:
1521
- make install-zlib
1622
- make libogg
1723
- make install
24+
- make tremor
25+
- make fmt
1826
- make freetype
1927
- make libpng
2028
- make libjpeg-turbo
2129
- make libmad
22-
- make tremor
2330
- make faad2
24-
- make fmt
2531
- make install
2632

2733
before_deploy:

Makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ LIBOGG_SRC := $(LIBOGG_VERSION).tar.xz
2929
LIBOGG_DOWNLOAD := "http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.xz"
3030

3131
TREMOR := tremor
32-
TREMOR_GIT_CHECKOUT := "master"
33-
TREMOR_VERSION := $(TREMOR)-$(TREMOR_GIT_CHECKOUT)
34-
TREMOR_REPO := "https://git.xiph.org/tremor.git"
32+
TREMOR_VERSION := $(TREMOR)-2a1a8f6
33+
TREMOR_SRC := $(TREMOR_VERSION).tar.gz
34+
TREMOR_DOWNLOAD := "https://git.xiph.org/?p=tremor.git;a=snapshot;h=2a1a8f621e500fdf0749f115e2206f82919560a3;sf=tgz"
3535

3636
LIBFAAD2 := faad2
3737
LIBFAAD2_VERSION := $(LIBFAAD2)-2.7
@@ -44,8 +44,8 @@ FMT_VERSION := $(FMT)-$(FMT_GIT_CHECKOUT)
4444
FMT_REPO := "https://github.com/fmtlib/fmt.git"
4545

4646
export PORTLIBS := $(DEVKITPRO)/portlibs/3ds
47-
export PATH := $(DEVKITARM)/bin:$(PATH)
48-
export PKG_CONFIG_PATH := $(PORTLIBS)/lib/pkgconfig
47+
export PATH := $(DEVKITARM)/bin:$(DEVKITPRO)/portlibs/3ds/bin:$(DEVKITPRO)/portlibs/armv6k/bin:$(PATH)
48+
export PKG_CONFIG := $(PWD)/arm-none-eabi-pkg-config
4949
export CFLAGS := -march=armv6k -mtune=mpcore -mfloat-abi=hard -O3 \
5050
-mword-relocations -ffunction-sections
5151
export CPPFLAGS := -I$(PORTLIBS)/include
@@ -111,10 +111,9 @@ $(LIBOGG): $(LIBOGG_SRC)
111111
./configure --prefix=$(PORTLIBS) --host=arm-none-eabi --disable-shared --enable-static
112112
@$(MAKE) -C $(LIBOGG_VERSION)
113113

114-
$(TREMOR):
115-
@[ -d $(TREMOR_VERSION) ] || git clone $(TREMOR_REPO) $(TREMOR_VERSION)
114+
$(TREMOR): $(TREMOR_SRC)
115+
@[ -d $(TREMOR_VERSION) ] || tar -xaf $<
116116
@cd $(TREMOR_VERSION) && \
117-
git pull && git checkout $(TREMOR_GIT_CHECKOUT) && \
118117
./autogen.sh --prefix=$(PORTLIBS) --host=arm-none-eabi --disable-shared --disable-oggtest
119118
@$(MAKE) -C $(TREMOR_VERSION)
120119

@@ -145,6 +144,8 @@ $(LIBMAD_SRC):
145144
wget -O $@ $(LIBMAD_DOWNLOAD)
146145
$(LIBOGG_SRC):
147146
wget -O $@ $(LIBOGG_DOWNLOAD)
147+
$(TREMOR_SRC):
148+
wget -O $@ $(TREMOR_DOWNLOAD)
148149
$(LIBFAAD2_SRC):
149150
wget -O $@ $(LIBFAAD2_DOWNLOAD)
150151

arm-none-eabi-pkg-config

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
# reset pkg-config variables to ensure we're not polluted by host libraries
4+
5+
export PKG_CONFIG_DIR=
6+
export PKG_CONFIG_PATH=
7+
export PKG_CONFIG_SYSROOT_DIR=
8+
9+
export PKG_CONFIG_LIBDIR=${DEVKITPRO}/portlibs/3ds/lib/pkgconfig:${DEVKITPRO}/portlibs/armv6k/lib/pkgconfig
10+
11+
exec pkg-config "$@"

0 commit comments

Comments
 (0)