blob: 37f483ef591f071c9f44c5972f80f8db925ec6b6 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001
2include $(COMMON_BASE_MK)
3
4NAME=gstreamer
5SRC_DIR=gstreamer-1.14.4
6SRC_TAR=gstreamer-1.14.4.tar.xz
7INSTALL_DIR=$(LIB_DIR)/$(NAME)/install
8BUILD_DIR=build
9GEN_MAKEFILE=$(SRC_DIR)/Makefile
10
11CONFIG_OPTS = --target=arm-buildroot-linux --host=arm-buildroot-linux --build=x86_64-unknown-linux-gnu
12#CONFIG_OPTS += --exec-prefix=$(INSTALL_DIR)/usr
13#CONFIG_OPTS += --sysconfdir=$(INSTALL_DIR)/etc
14#CONFIG_OPTS += --localstatedir=/var
15#CONFIG_OPTS += --program-prefix=
16CONFIG_OPTS += --disable-gtk-doc
17CONFIG_OPTS += --disable-gtk-doc-html
18CONFIG_OPTS += --disable-doc
19CONFIG_OPTS += --disable-docs
20CONFIG_OPTS += --disable-documentation
21CONFIG_OPTS += --with-xmlto=no
22CONFIG_OPTS += --with-fop=no
23CONFIG_OPTS += --disable-dependency-tracking
24CONFIG_OPTS += --enable-ipv6
25CONFIG_OPTS += --disable-nls
26CONFIG_OPTS += --enable-static
27CONFIG_OPTS += --enable-shared
28CONFIG_OPTS += --disable-examples
29CONFIG_OPTS += --disable-tests
30CONFIG_OPTS += --disable-failing-tests
31CONFIG_OPTS += --disable-valgrind
32CONFIG_OPTS += --disable-benchmarks
33CONFIG_OPTS += --disable-check
34CONFIG_OPTS += --disable-trace
35CONFIG_OPTS += --disable-parse
36CONFIG_OPTS += --disable-gst-debug
37CONFIG_OPTS += --disable-registry
38CONFIG_OPTS += --disable-tools
39
40
41export ac_cv_have_abstract_sockets=yes
42
43export CFLAGS := -I$(LIB_DIR)/glib/install/include
44export LIBS :=
45export LDFLAGS := -L$(LIB_DIR)/glib/install/lib
46export PKG_CONFIG_PATH=$(CROSS_COMPILE_SYSROOT)/usr/lib/pkgconfig:$(LIB_DIR)/glib/install/lib/pkgconfig
47
48
49all: $(GEN_MAKEFILE)
50 make -C $(SRC_DIR) all
51 make -C $(SRC_DIR) install
52
53$(GEN_MAKEFILE):
54 mkdir -p $(BUILD_DIR)
55 sha256sum -c $(NAME).sig
56 tar xf $(TOPDIR_AP)/downloads/$(SRC_TAR)
57 cd $(SRC_DIR); ./configure --prefix=$(INSTALL_DIR) $(CONFIG_OPTS)
58 #sed -i 's/plugins tests docs/plugins/' $(SRC_DIR)/Makefile
59
60clean:
61 -make -C $(SRC_DIR) distclean
62 -rm -fr $(BUILD_DIR) $(INSTALL_DIR) $(SRC_DIR)
63
64romfs:
65 cd $(INSTALL_DIR)/lib; \
66 for i in *.so*; do \
67 if [ -L $$i ]; then \
68 $(ROMFSINST) -s `find $$i -printf %l` /lib/$$i; \
69 elif [ -f $$i ]; then \
70 $(ROMFSINST) /lib/$$i; \
71 fi; \
72 done
73 #$(ROMFSINST) $(INSTALL_DIR)/bin/arm-buildroot-linux-gst-inspect-1.0 /bin/gst-inspect
74