npapi.am 911 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /usr/bin/make -f

build-npapi: stamp-npapi-build

stamp-npapi-fetch:
	rm -Rf npapi-vlc
	git clone git://git.videolan.org/npapi-vlc.git npapi-vlc
	touch $@

stamp-npapi-autogen: stamp-npapi-fetch
# extras/package/npapi.am
	cd npapi-vlc && \
	$(SHELL) ./autogen.sh
	touch $@

stamp-npapi-configure: stamp-npapi-autogen
	cd npapi-vlc && \
	$(SHELL) ./configure \
19
		--prefix=/ \
20
		--host=$(host_alias) --build=$(build_alias) \
21
		--with-mozilla-sdk-path="$(CONTRIB_DIR)/gecko-sdk" \
22
23
24
25
		CPP="$(CPP)" CPPFLAGS="$(CPPFLAGS)" \
		CC="$(CC)" CFLAGS="$(CFLAGS)" \
		CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" \
		LD="$(LD)" LDFLAGS="$(LDFLAGS)" \
Rafaël Carré's avatar
Rafaël Carré committed
26
		SHELL="$(SHELL)" \
27
28
29
30
31
		PKG_CONFIG_LIBDIR="../$(srcdir)/extras/contrib/lib/pkgconfig:../src"
	touch $@

stamp-npapi-build: stamp-npapi-configure
	cd npapi-vlc && \
32
33
34
	$(MAKE) $(MAKEFLAGS) all && \
	$(MAKE) $(MAKEFLAGS) DESTDIR="$(abs_builddir)/npapi-vlc/installed" install
	touch $@