diff options
author | Kibum Kim <kb0929.kim@samsung.com> | 2012-01-07 00:48:24 +0900 |
---|---|---|
committer | Kibum Kim <kb0929.kim@samsung.com> | 2012-01-07 00:48:24 +0900 |
commit | ec7fd09612e09df3e76eed96af42446c07aae7fd (patch) | |
tree | 13f45c429a05fa1b797220893d2ab92bb9fd4c7b /debian | |
parent | 15ef29532556d1797e516bb3ecde2498a9b8c8e0 (diff) | |
download | libmm-sound-ec7fd09612e09df3e76eed96af42446c07aae7fd.tar.gz libmm-sound-ec7fd09612e09df3e76eed96af42446c07aae7fd.tar.bz2 libmm-sound-ec7fd09612e09df3e76eed96af42446c07aae7fd.zip |
Git init
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 48 | ||||
-rw-r--r-- | debian/copyright | 15 | ||||
-rw-r--r-- | debian/dirs | 2 | ||||
-rw-r--r-- | debian/docs | 0 | ||||
-rwxr-xr-x | debian/libmm-sound-0.install.in | 6 | ||||
-rwxr-xr-x | debian/libmm-sound-0.postinst | 32 | ||||
-rw-r--r-- | debian/libmm-sound-0.preinst | 11 | ||||
-rw-r--r-- | debian/libmm-sound-dev.install.in | 2 | ||||
-rw-r--r-- | debian/libmm-sound-sdk-dev.install.in | 6 | ||||
-rw-r--r-- | debian/libmm-sound-tool.install.in | 3 | ||||
-rwxr-xr-x | debian/rules | 138 |
13 files changed, 271 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1c7410a --- /dev/null +++ b/debian/changelog @@ -0,0 +1,7 @@ +libmm-sound (0.5.3-0) unstable; urgency=low + + * Initial release + * Git: pkgs/l/libmm-sound + * Tag: libmm-sound_0.5.3-0 + + -- Seungbae Shin <seungbae.shin@samsung.com> Wed, 07 Dec 2011 12:06:40 +0900 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..91acba9 --- /dev/null +++ b/debian/control @@ -0,0 +1,48 @@ +Source: libmm-sound +Section: libs +Priority: optional +Maintainer: Seungbae Shin <seungbae.shin@samsung.com>, JongHyuk Choi <jhchoi.choi@samsung.com> +Uploaders: YoungHwan Ahn <younghwan_.an@samsung.com>, YoungHun Kim <yh8004.kim@samsung.com> +Build-Depends: debhelper (>= 5), autotools-dev, libmm-common-dev, libavsystem-dev, libmm-log-dev, libmm-session-dev, libaudiosessionmgr-dev, libglib2.0-dev, libslp-setting-dev, libmm-common-internal-dev, libheynoti-dev +Standards-Version: 3.7.2 +Homepage: N/A + +Package: libmm-sound-dev +XB-Public-Package: no +Section: libdevel +Architecture: any +Depends: libmm-sound-0 (= ${Source-Version}), libmm-sound-sdk-dev +Standards-Version: 3.7.2 +Description: MMSound development package +Version: 3.7.2 + +Package: libmm-sound-sdk-dev +XB-Generate-Docs: yes +Section: libdevel +Architecture: any +Depends: libmm-sound-0 (= ${Source-Version}), libmm-common-dev, libavsystem-sdk-dev, libmm-log-sdk-dev, libmm-session-sdk-dev, libaudiosessionmgr-sdk-dev, libglib2.0-dev, libslp-setting-dev +Standards-Version: 3.7.2 +Description: MMSound development package +Version: 3.7.2 + +Package: libmm-sound-0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libavsystem-0, libmm-common, libmm-log, libmm-session-0, libaudiosessionmgr-0, libglib2.0-0, libslp-setting-0, libheynoti-0 +Standards-Version: 3.7.2 +Description: MMSound Package contains client lib and sound_server binary +Version: 3.7.2 + +Package: libmm-sound-0-dbg +Section: debug +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libmm-sound-0 (= ${Source-Version}) +Description: MMSound debug package (unstripped) +Version: 3.7.2 + +Package: libmm-sound-tool +Section: utils +Architecture: armel +Depends: ${shlibs:Depends}, ${misc:Depends}, libmm-sound-0 (= ${Source-Version}) +Description: MMSound utility package - contians mm_sound_testsuite, sound_check +Version: 3.7.2 diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..3498116 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,15 @@ +Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. + +Contact: Seungbae Shin <seungbae.shin@samsung.com> + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..ca882bb --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/debian/docs diff --git a/debian/libmm-sound-0.install.in b/debian/libmm-sound-0.install.in new file mode 100755 index 0000000..c382a6d --- /dev/null +++ b/debian/libmm-sound-0.install.in @@ -0,0 +1,6 @@ +# if your module, creates shared libraries +@PREFIX@/lib/*.so* +@PREFIX@/lib/soundplugins/*.so* +@PREFIX@/bin/sound_server +/etc/rc.d/* +/opt/system/*
\ No newline at end of file diff --git a/debian/libmm-sound-0.postinst b/debian/libmm-sound-0.postinst new file mode 100755 index 0000000..70bade0 --- /dev/null +++ b/debian/libmm-sound-0.postinst @@ -0,0 +1,32 @@ +#!/bin/sh + +echo "postinst: make vconf keys" +if [ ${USER} = "root" ] +then +/usr/bin/vconftool set -t int db/volume/system 5 -g 29 +/usr/bin/vconftool set -t int db/volume/notification 7 -g 29 +/usr/bin/vconftool set -t int db/volume/alarm 6 -g 29 +/usr/bin/vconftool set -t int db/volume/ringtone 13 -g 29 +/usr/bin/vconftool set -t int db/volume/media 7 -g 29 +/usr/bin/vconftool set -t int db/volume/call 7 -g 29 +/usr/bin/vconftool set -t int db/volume/fixed 0 -g 29 +/usr/bin/vconftool set -t int db/volume/java 11 -g 29 +/usr/bin/vconftool set -t int memory/Sound/RoutePolicy 0 -i -g 29 +else +/usr/bin/vconftool set -t int db/volume/system 5 +/usr/bin/vconftool set -t int db/volume/notification 7 +/usr/bin/vconftool set -t int db/volume/alarm 6 +/usr/bin/vconftool set -t int db/volume/ringtone 13 +/usr/bin/vconftool set -t int db/volume/media 7 +/usr/bin/vconftool set -t int db/volume/call 7 +/usr/bin/vconftool set -t int db/volume/fixed 0 +/usr/bin/vconftool set -t int db/volume/java 11 +/usr/bin/vconftool set -t int memory/Sound/RoutePolicy 0 -i +fi + +if [ -n "`env|grep SBOX`" ]; then + echo "postinst: sbox installation skip lauching daemon" +else + echo "postinst: run sound server again" + /usr/bin/sound_server -S& +fi diff --git a/debian/libmm-sound-0.preinst b/debian/libmm-sound-0.preinst new file mode 100644 index 0000000..1e7fc87 --- /dev/null +++ b/debian/libmm-sound-0.preinst @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ -n "`env|grep SBOX`" ]; then + echo "postinst: sbox installation" +else + PID=`/bin/pidof sound_server` + if [ -n "$PID" ]; then + echo "preinst: kill current sound server" + /usr/bin/killall -9 sound_server + fi +fi diff --git a/debian/libmm-sound-dev.install.in b/debian/libmm-sound-dev.install.in new file mode 100644 index 0000000..5cb222d --- /dev/null +++ b/debian/libmm-sound-dev.install.in @@ -0,0 +1,2 @@ +# if your module creates shared libraries +@PREFIX@/include/mmf/mm_sound_private.h diff --git a/debian/libmm-sound-sdk-dev.install.in b/debian/libmm-sound-sdk-dev.install.in new file mode 100644 index 0000000..9a9e581 --- /dev/null +++ b/debian/libmm-sound-sdk-dev.install.in @@ -0,0 +1,6 @@ +# if your module creates shared libraries +@PREFIX@/include/mmf/mm_sound.h +@PREFIX@/lib/*.a +@PREFIX@/lib/*.la +@PREFIX@/lib/pkgconfig/* + diff --git a/debian/libmm-sound-tool.install.in b/debian/libmm-sound-tool.install.in new file mode 100644 index 0000000..8c17347 --- /dev/null +++ b/debian/libmm-sound-tool.install.in @@ -0,0 +1,3 @@ +# if your module, creates shared libraries +@PREFIX@/bin/mm_sound_testsuite + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..fe21c18 --- /dev/null +++ b/debian/rules @@ -0,0 +1,138 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_GNU_OS) + +CFLAGS ?= -Wall -g +LDFLAGS ?= +PREFIX ?= /usr +DATADIR ?= /opt +CFLAGS += -fPIC + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +# architecture is not arm +ifneq (, $(findstring arm, $(DEB_HOST_ARCH))) + # do something here for arm architecture + # do something here + OPTION= --enable-pulse +else + OPTION= --enable-sdk --enable-pulse +endif + +#LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed +LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--hash-style=both -Wl,--as-needed + +config.status: configure + dh_testdir + # Add here commands to configure the package. + dh_buildinfo generate cat + ./autogen.sh + CFLAGS="$(CFLAGS) -fvisibility=hidden -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\"" LDFLAGS="$(LDFLAGS)" ./configure --prefix=$(PREFIX) $(OPTION) + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/ncurses.sgml > ncurses.1 + + for f in `find $(CURDIR)/debian/ -name "*.in"`; do \ + cat $$f > $${f%.in}; \ + sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \ + sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \ + done + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + + for f in `find $(CURDIR)/debian/ -name "*.in"`; do \ + rm -f $${f%.in}; \ + done + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs -s + + # Add here commands to install the package into debian/ncurses. + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/ + ln -s ../init.d/soundserver $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/S40soundserver + mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc4.d/ + ln -s ../init.d/soundserver $(CURDIR)/debian/tmp/etc/rc.d/rc4.d/S40soundserver + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs -s + dh_installdocs + dh_buildinfo install + dh_installexamples + dh_install -s --list-missing --sourcedir=debian/tmp +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link -s + dh_strip -s --dbg-package=libmm-sound-0-dbg + dh_compress -s + dh_fixperms -s +# dh_perl + dh_makeshlibs -s + dh_installdeb -s + dh_shlibdeps -s + dh_gencontrol -s + dh_md5sums -s + dh_builddeb -s + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install |