~ubuntu-branches/ubuntu/precise/vlc/precise-proposed

« back to all changes in this revision

Viewing changes to contrib/src/src/pthreads/rules.mak

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2012-03-24 01:33:03 UTC
  • mfrom: (1.1.46) (3.5.39 sid)
  • Revision ID: package-import@ubuntu.com-20120324013303-km51kpl9kixydb8g
Really add the preinst from Didier Raboud to vlc to drop it's doc directory
before unpacking a symlink to vlc-nox's over it. (Closes: #613121, #662217)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# POSIX threads
2
 
 
3
 
ifndef HAVE_WIN32
4
 
PKGS_FOUND += pthreads
5
 
endif
6
 
 
7
 
PTHREADS_W32_VERSION := 2-8-0
8
 
PTHREADS_W32_URL := ftp://sources.redhat.com/pub/pthreads-win32/pthreads-w32-$(PTHREADS_W32_VERSION)-release.tar.gz
9
 
 
10
 
$(TARBALLS)/pthreads-w32-$(PTHREADS_W32_VERSION)-release.tar.gz:
11
 
        $(call download,$(PTHREADS_W32_URL))
12
 
 
13
 
.sum-pthreads: pthreads-w32-$(PTHREADS_W32_VERSION)-release.tar.gz
14
 
 
15
 
ifdef HAVE_WIN32
16
 
pthreads: pthreads-w32-$(PTHREADS_W32_VERSION)-release.tar.gz .sum-pthreads
17
 
        $(UNPACK)
18
 
        $(APPLY) $(SRC)/pthreads/pthreads-detach.patch
19
 
        $(APPLY) $(SRC)/pthreads/pthreads-win64.patch
20
 
        sed -e 's/^CROSS.*=/CROSS ?=/' -i.orig $(UNPACK_DIR)/GNUmakefile
21
 
        $(MOVE)
22
 
 
23
 
ifdef HAVE_CROSS_COMPILE
24
 
PTHREADS_W32_CONF := CROSS="$(HOST)-"
25
 
endif
26
 
 
27
 
.pthreads: pthreads
28
 
        cd $< && $(HOSTVARS) $(PTHREADS_W32_CONF) $(MAKE) MAKEFLAGS=-j1 GC GC-static
29
 
        mkdir -p -- "$(PREFIX)/include"
30
 
        cd $< && cp -v pthread.h sched.h semaphore.h "$(PREFIX)/include/"
31
 
        sed -e 's/#if HAVE_CONFIG_H/#if 0 \&\& HAVE_CONFIG_H/' -i \
32
 
                "$(PREFIX)/include/pthread.h"
33
 
        mkdir -p -- "$(PREFIX)/lib"
34
 
        cp -v $</*.a $</*.dll "$(PREFIX)/lib/"
35
 
        touch $@
36
 
endif