lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | |
| 2 | include $(COMMON_BASE_MK) |
| 3 | |
| 4 | NAME=gstreamer |
| 5 | SRC_DIR=gstreamer-1.14.4 |
| 6 | SRC_TAR=gstreamer-1.14.4.tar.xz |
| 7 | INSTALL_DIR=$(LIB_DIR)/$(NAME)/install |
| 8 | BUILD_DIR=build |
| 9 | GEN_MAKEFILE=$(SRC_DIR)/Makefile |
| 10 | |
| 11 | CONFIG_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= |
| 16 | CONFIG_OPTS += --disable-gtk-doc |
| 17 | CONFIG_OPTS += --disable-gtk-doc-html |
| 18 | CONFIG_OPTS += --disable-doc |
| 19 | CONFIG_OPTS += --disable-docs |
| 20 | CONFIG_OPTS += --disable-documentation |
| 21 | CONFIG_OPTS += --with-xmlto=no |
| 22 | CONFIG_OPTS += --with-fop=no |
| 23 | CONFIG_OPTS += --disable-dependency-tracking |
| 24 | CONFIG_OPTS += --enable-ipv6 |
| 25 | CONFIG_OPTS += --disable-nls |
| 26 | CONFIG_OPTS += --enable-static |
| 27 | CONFIG_OPTS += --enable-shared |
| 28 | CONFIG_OPTS += --disable-examples |
| 29 | CONFIG_OPTS += --disable-tests |
| 30 | CONFIG_OPTS += --disable-failing-tests |
| 31 | CONFIG_OPTS += --disable-valgrind |
| 32 | CONFIG_OPTS += --disable-benchmarks |
| 33 | CONFIG_OPTS += --disable-check |
| 34 | CONFIG_OPTS += --disable-trace |
| 35 | CONFIG_OPTS += --disable-parse |
| 36 | CONFIG_OPTS += --disable-gst-debug |
| 37 | CONFIG_OPTS += --disable-registry |
| 38 | CONFIG_OPTS += --disable-tools |
| 39 | |
| 40 | |
| 41 | export ac_cv_have_abstract_sockets=yes |
| 42 | |
| 43 | export CFLAGS := -I$(LIB_DIR)/glib/install/include |
| 44 | export LIBS := |
| 45 | export LDFLAGS := -L$(LIB_DIR)/glib/install/lib |
| 46 | export PKG_CONFIG_PATH=$(CROSS_COMPILE_SYSROOT)/usr/lib/pkgconfig:$(LIB_DIR)/glib/install/lib/pkgconfig |
| 47 | |
| 48 | |
| 49 | all: $(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 | |
| 60 | clean: |
| 61 | -make -C $(SRC_DIR) distclean |
| 62 | -rm -fr $(BUILD_DIR) $(INSTALL_DIR) $(SRC_DIR) |
| 63 | |
| 64 | romfs: |
| 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 | |