slitaz-arm rev 91

Add wok/omxplayer and README
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 06 22:39:10 2014 +0200 (2014-04-06)
parents 9a53e64a39fb
children d5e55c58173e
files wok/README wok/omxplayer/receipt wok/omxplayer/stuff/Makefile wok/omxplayer/stuff/Makefile.include
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/wok/README	Sun Apr 06 22:39:10 2014 +0200
     1.3 @@ -0,0 +1,4 @@
     1.4 +
     1.5 +Tested or not finished receipts, we dont want a separate wok but we may
     1.6 +need some collaboration on some packages before commiting into the wok.
     1.7 +Sort of ARM undiguest wok.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/wok/omxplayer/receipt	Sun Apr 06 22:39:10 2014 +0200
     2.3 @@ -0,0 +1,28 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="omxplayer"
     2.7 +VERSION="git-1"
     2.8 +CATEGORY="multimedia"
     2.9 +SHORT_DESC="Raspberry Pi cmdline media player."
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +LICENSE="GPL2"
    2.12 +WEB_SITE="https://github.com/popcornmix/omxplayer"
    2.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.14 +WGET_URL="git|git://github.com/popcornmix/omxplayer.git"
    2.15 +HOST_ARCH="arm"
    2.16 +
    2.17 +DEPENDS="ffmpeg"
    2.18 +BUILD_DEPENDS="ffmpeg-dev"
    2.19 +
    2.20 +# Rules to configure and make the package.
    2.21 +compile_rules()
    2.22 +{
    2.23 +	cp -f ${stuff}/Makefile* .
    2.24 +	make
    2.25 +}
    2.26 +
    2.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.28 +genpkg_rules()
    2.29 +{
    2.30 +	mkdir ${fs}/usr
    2.31 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/wok/omxplayer/stuff/Makefile	Sun Apr 06 22:39:10 2014 +0200
     3.3 @@ -0,0 +1,67 @@
     3.4 +include Makefile.include
     3.5 +
     3.6 +CFLAGS+=-std=c++0x -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG  -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DHAVE_LIBSWRESAMPLE_SWRESAMPLE_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST
     3.7 +
     3.8 +LDFLAGS+=-L./ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz -ldbus-1
     3.9 +
    3.10 +INCLUDES+=-I./ -Ilinux
    3.11 +
    3.12 +DIST ?= omxplayer-dist
    3.13 +
    3.14 +SRC=linux/XMemUtils.cpp \
    3.15 +		utils/log.cpp \
    3.16 +		DynamicDll.cpp \
    3.17 +		utils/PCMRemap.cpp \
    3.18 +		utils/RegExp.cpp \
    3.19 +		OMXSubtitleTagSami.cpp \
    3.20 +		OMXOverlayCodecText.cpp \
    3.21 +		BitstreamConverter.cpp \
    3.22 +		linux/RBP.cpp \
    3.23 +		OMXThread.cpp \
    3.24 +		OMXReader.cpp \
    3.25 +		OMXStreamInfo.cpp \
    3.26 +		OMXAudioCodecOMX.cpp \
    3.27 +		OMXCore.cpp \
    3.28 +		OMXControl.cpp \
    3.29 +		Keyboard.cpp \
    3.30 +		OMXVideo.cpp \
    3.31 +		OMXAudio.cpp \
    3.32 +		OMXClock.cpp \
    3.33 +		File.cpp \
    3.34 +		OMXPlayerVideo.cpp \
    3.35 +		OMXPlayerAudio.cpp \
    3.36 +		OMXPlayerSubtitles.cpp \
    3.37 +		SubtitleRenderer.cpp \
    3.38 +		Unicode.cpp \
    3.39 +		Srt.cpp \
    3.40 +		KeyConfig.cpp \
    3.41 +		omxplayer.cpp
    3.42 +
    3.43 +OBJS+=$(filter %.o,$(SRC:.cpp=.o))
    3.44 +
    3.45 +all: omxplayer.bin
    3.46 +
    3.47 +%.o: %.cpp
    3.48 +	@rm -f $@ 
    3.49 +	$(CXX) $(CFLAGS) $(INCLUDES) -c $< -o $@ -Wno-deprecated-declarations
    3.50 +
    3.51 +version:
    3.52 +	sh gen_version.sh > version.h 
    3.53 +
    3.54 +omxplayer.bin: version $(OBJS)
    3.55 +	$(CXX) $(LDFLAGS) -o omxplayer.bin $(OBJS) -lvchiq_arm -lvcos -lrt -lpthread -lavutil -lavcodec -lavformat -lswscale -lswresample -lpcre
    3.56 +	#arm-unknown-linux-gnueabi-strip omxplayer.bin
    3.57 +
    3.58 +clean:
    3.59 +	for i in $(OBJS); do (if test -e "$$i"; then ( rm $$i ); fi ); done
    3.60 +	@rm -f omxplayer.old.log omxplayer.log
    3.61 +	@rm -f omxplayer.bin
    3.62 +	@rm -rf $(DIST)
    3.63 +	@rm -f omxplayer-dist.tar.gz
    3.64 +
    3.65 +install:
    3.66 +	install -d $(DESTDIR)/usr/bin
    3.67 +	install -d $(DESTDIR)/usr/share/doc/omxplayer
    3.68 +	install omxplayer $(DESTDIR)/usr/bin/
    3.69 +	install omxplayer.bin $(DESTDIR)/usr/bin/
    3.70 +	install README.md COPYING $(DESTDIR)/usr/share/doc/omxplayer/
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/wok/omxplayer/stuff/Makefile.include	Sun Apr 06 22:39:10 2014 +0200
     4.3 @@ -0,0 +1,24 @@
     4.4 +USE_BUILDROOT=0
     4.5 +
     4.6 +JOBS=1
     4.7 +
     4.8 +CFLAGS		:= 
     4.9 +CXXFLAGS	:= $(CFLAGS)
    4.10 +CPPFLAGS	:= $(CFLAGS)
    4.11 +LDFLAGS		:= 
    4.12 +LD		:= ld
    4.13 +CC		:= gcc
    4.14 +CXX         	:= g++
    4.15 +OBJDUMP		:= objdump
    4.16 +RANLIB		:= ranlib
    4.17 +STRIP		:= strip
    4.18 +AR 		:= ar
    4.19 +CXXCP 		:= $(CXX) -E
    4.20 +
    4.21 +LDFLAGS		+= -L/opt/vc/lib/ -Wl,-rpath /opt/vc/lib/
    4.22 +
    4.23 +INCLUDES	+= -I/opt/vc/include -I/opt/vc/include/interface/vcos/ \
    4.24 +		   -I/opt/vc/include/interface/vcos/pthreads -I/usr/include/freetype2 \
    4.25 +		   -I/opt/vc/include/interface/vmcs_host/linux -I/usr/include/dbus-1.0 \
    4.26 +		   -I/usr/lib/dbus-1.0/include/
    4.27 +