Skip to content

Commit

Permalink
Add WebKitSupplemental Makefile and freetype.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkirker committed Oct 25, 2012
1 parent 5708f20 commit 686863b
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -32,13 +32,17 @@ qt4:
luna-sysmgr: qt4
$(MAKE) -C packages/sysmgr/luna-sysmgr

webkit-depends: downloads/.zlib qt4
webkit-depends: downloads/.zlib downloads/.freetype qt4

# This is a mess... Need to clean it up...
downloads/.zlib:
scripts/get_zlib.sh $(LEVEL)
touch $@

downloads/.freetype:
scripts/get_freetype.sh $(LEVEL)
touch $@

webkit: webkit-depends
$(MAKE) -C packages/isis

Expand Down
38 changes: 38 additions & 0 deletions packages/isis/Makefile.WebKitSupplemental
@@ -0,0 +1,38 @@
VERSION = 0.0.1

LEVEL=../..

build::

include $(LEVEL)/Makefile.common

.PHONY: build unpack
build:: build/$(CONFIG)/.built-WebKitSupplemental-${VERSION}
unpack: build/$(CONFIG)/.unpacked

### Unpack the software and build it
#build/$(CONFIG)/.unpacked: $(ISIS_DL)
# -rm -rf build/$(CONFIG)
# mkdir -p build/$(CONFIG)/src
# $(call EXTRACT,ISIS,build/$(CONFIG)/src,--strip=1)
# touch $@

INCLUDE_DIRS := -I$(STAGING_DIR)/ISIS_OUT/include/ -I$(STAGING_DIR)/usr/include/ -I$(STAGING_DIR)/usr/include/glib-2.0/
QTPATH := $(shell readlink -f $(LEVEL)/packages/sysmgr/qt4/build/armv7)
QMAKE := $(QTPATH)/bin/qmake-palm

QMAKE_CXX := $(TCDIR)/bin/arm-none-linux-gnueabi-g++
QMAKE_CC := $(TCDIR)/bin/arm-none-linux-gnueabi-gcc
QMAKE_AR := $(TCDIR)/bin/arm-none-linux-gnueabi-ar
QMAKE_RANLIB := $(TCDIR)/bin/arm-none-linux-gnueabi-ranlib
QMAKE_STRIP := $(TCDIR)/bin/arm-none-linux-gnueabi-strip
QMAKE_LINK := $(TCDIR)/bin/arm-none-linux-gnueabi-g++


build/$(CONFIG)/.config-WebKitSupplemental-${VERSION}: build/$(CONFIG)/.unpacked
touch $@

build/$(CONFIG)/.built-WebKitSupplemental-${VERSION}: build/$(CONFIG)/.config-WebKitSupplemental-${VERSION}
make -C build/$(CONFIG)/src/WebKitSupplemental/ INCLUDES="$(INCLUDE_DIRS)" DISTRO_TYPE=release TARGET_ARCH=arm INCLUDE_DIR=$(STAGING_DIR)/usr/include/ LIB_DIR=$(STAGING_DIR)/usr/lib/ QTDIR=$(QTPATH) QMAKE=$(QMAKE) INSTALL_DIR=$(STAGING_DIR) configure all install
touch $@

30 changes: 30 additions & 0 deletions scripts/get_freetype.sh
@@ -0,0 +1,30 @@
#!/bin/bash

pushd .

CURRENTDIR=`pwd`
DOWNLOADS=downloads/freetype/

if [ ! -e $DOWNLOADS ]; then
mkdir -p $DOWNLOADS
fi
cd $DOWNLOADS

wget http://downloads.help.palm.com/opensource/3.0.5/freetype-2.3.12.tar.bz2
wget http://downloads.help.palm.com/opensource/3.0.5/freetype-2.3.12-patches.tgz

tar -xvf freetype-2.3.12.tar.bz2
tar -xvf freetype-2.3.12-patches.tgz

cd freetype-2.3.12

patch -p1 < ../fix-configure.patch
patch -p1 < ../libtool-tag.patch
patch -p1 < ../files/no-hardcode.patch

cp include/* $CURRENTDIR/staging/armv7/usr/include/

touch .freetype

popd

0 comments on commit 686863b

Please sign in to comment.