qt: playlist: use item title if available
[vlc.git] / extras / package / npapi.am
1 #! /usr/bin/make -f
2
3 build-npapi: fetch-npapi
4         $(MAKE) install-npapi
5
6 fetch-npapi:
7         rm -f -- stamp-npapi.tmp
8         if test -d npapi-vlc; then \
9                 cd npapi-vlc && \
10                 git fetch origin && \
11                 git reset --hard origin/master; \
12                 git submodule update; \
13         else \
14                 git clone https://code.videolan.org/videolan/npapi-vlc.git npapi-vlc && \
15                 cd npapi-vlc && \
16                 git submodule update --init; \
17         fi
18         git --git-dir=npapi-vlc/.git describe --long --always > stamp-npapi.tmp
19         if diff stamp-npapi.tmp stamp-npapi >/dev/null 2>&1; then \
20                 rm -f -- stamp-npapi.tmp ; \
21         else \
22                 mv -f -- stamp-npapi.tmp stamp-npapi ; \
23         fi
24
25 stamp-npapi:
26         $(MAKE) fetch-npapi
27
28 npapi-vlc/configure: stamp-npapi
29         cd npapi-vlc && \
30         $(SHELL) ./autogen.sh
31         touch $@
32
33 if ENABLE_PDB
34 ENABLE_PDB_OPTION = --enable-pdb
35 endif
36
37 npapi-vlc/Makefile: npapi-vlc/configure
38         cd npapi-vlc && \
39         $(SHELL) ./configure \
40                 --prefix=/ \
41                 --host=$(host_alias) --build=$(build_alias) \
42                 $(ENABLE_PDB_OPTION) \
43                 CPP="$(CPP)" CPPFLAGS="$(CPPFLAGS)" \
44                 CC="$(CC)" CFLAGS="$(CFLAGS)" \
45                 CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" \
46                 LD="$(LD)" LDFLAGS="$(LDFLAGS)" \
47                 SHELL="$(SHELL)" \
48                 PKG_CONFIG_PATH="$(libdir)/pkgconfig:$(CONTRIB_DIR)/lib/pkgconfig" \
49                 PKG_CONFIG="$(PKG_CONFIG)"
50         touch $@
51
52 npapi-vlc/activex/axvlc.la: npapi-vlc/Makefile
53         $(MAKE) -C npapi-vlc
54
55 install-npapi: npapi-vlc/activex/axvlc.la
56         $(MAKE) -C npapi-vlc \
57                 DESTDIR="$(abs_builddir)/npapi-vlc/installed" install