File: 06_plugins_shared.dpatch

package info (click to toggle)
pwlib 1.10.2-2%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 12,112 kB
  • ctags: 14,989
  • sloc: cpp: 109,883; ansic: 6,061; sh: 2,929; makefile: 1,054; yacc: 861; asm: 161
file content (44 lines) | stat: -rw-r--r-- 1,121 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#! /bin/sh -e
## 06_plugins_shared.dpatch by Jose Carlos Garcia Sogo <jsogo@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Don0t build plugins for static lib.

if [ $# -lt 1 ]; then
    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
    exit 1
fi

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"

case "$1" in
    -patch) patch -p1 ${patch_opts} < $0;;
    -unpatch) patch -R -p1 ${patch_opts} < $0;;
    *)
        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
        exit 1;;
esac

exit 0

@DPATCH@
diff -urNad /home/jose/devel/temp/pwlib-1.7.5/plugins/Makefile.in pwlib-1.7.5/plugins/Makefile.in
--- /home/jose/devel/temp/pwlib-1.7.5/plugins/Makefile.in	2003-12-17 16:40:56.000000000 +0100
+++ pwlib-1.7.5/plugins/Makefile.in	2004-07-18 16:04:07.000000000 +0200
@@ -4,6 +4,8 @@
 
 include ../make/ptlib.mak
 
+ifeq (1,$(P_SHAREDLIB))
+
 HAS_ALSA	= @HAS_ALSA@
 
 ifeq (1,$(HAS_ALSA))
@@ -67,5 +69,5 @@
 	@echo $(DEFAULT_SOUND)
 
 
-
+endif