| |
| include $(COMMON_BASE_MK) |
| |
| NAME=gstreamer |
| SRC_DIR=gstreamer-1.14.4 |
| SRC_TAR=gstreamer-1.14.4.tar.xz |
| INSTALL_DIR=$(LIB_DIR)/$(NAME)/install |
| BUILD_DIR=build |
| GEN_MAKEFILE=$(SRC_DIR)/Makefile |
| |
| CONFIG_OPTS = --target=arm-buildroot-linux --host=arm-buildroot-linux --build=x86_64-unknown-linux-gnu |
| #CONFIG_OPTS += --exec-prefix=$(INSTALL_DIR)/usr |
| #CONFIG_OPTS += --sysconfdir=$(INSTALL_DIR)/etc |
| #CONFIG_OPTS += --localstatedir=/var |
| #CONFIG_OPTS += --program-prefix= |
| CONFIG_OPTS += --disable-gtk-doc |
| CONFIG_OPTS += --disable-gtk-doc-html |
| CONFIG_OPTS += --disable-doc |
| CONFIG_OPTS += --disable-docs |
| CONFIG_OPTS += --disable-documentation |
| CONFIG_OPTS += --with-xmlto=no |
| CONFIG_OPTS += --with-fop=no |
| CONFIG_OPTS += --disable-dependency-tracking |
| CONFIG_OPTS += --enable-ipv6 |
| CONFIG_OPTS += --disable-nls |
| CONFIG_OPTS += --enable-static |
| CONFIG_OPTS += --enable-shared |
| CONFIG_OPTS += --disable-examples |
| CONFIG_OPTS += --disable-tests |
| CONFIG_OPTS += --disable-failing-tests |
| CONFIG_OPTS += --disable-valgrind |
| CONFIG_OPTS += --disable-benchmarks |
| CONFIG_OPTS += --disable-check |
| CONFIG_OPTS += --disable-trace |
| CONFIG_OPTS += --disable-parse |
| CONFIG_OPTS += --disable-gst-debug |
| CONFIG_OPTS += --disable-registry |
| CONFIG_OPTS += --disable-tools |
| |
| |
| export ac_cv_have_abstract_sockets=yes |
| |
| export CFLAGS := -I$(LIB_DIR)/glib/install/include |
| export LIBS := |
| export LDFLAGS := -L$(LIB_DIR)/glib/install/lib |
| export PKG_CONFIG_PATH=$(CROSS_COMPILE_SYSROOT)/usr/lib/pkgconfig:$(LIB_DIR)/glib/install/lib/pkgconfig |
| |
| |
| all: $(GEN_MAKEFILE) |
| make -C $(SRC_DIR) all |
| make -C $(SRC_DIR) install |
| |
| $(GEN_MAKEFILE): |
| mkdir -p $(BUILD_DIR) |
| sha256sum -c $(NAME).sig |
| tar xf $(TOPDIR_AP)/downloads/$(SRC_TAR) |
| cd $(SRC_DIR); ./configure --prefix=$(INSTALL_DIR) $(CONFIG_OPTS) |
| #sed -i 's/plugins tests docs/plugins/' $(SRC_DIR)/Makefile |
| |
| clean: |
| -make -C $(SRC_DIR) distclean |
| -rm -fr $(BUILD_DIR) $(INSTALL_DIR) $(SRC_DIR) |
| |
| romfs: |
| cd $(INSTALL_DIR)/lib; \ |
| for i in *.so*; do \ |
| if [ -L $$i ]; then \ |
| $(ROMFSINST) -s `find $$i -printf %l` /lib/$$i; \ |
| elif [ -f $$i ]; then \ |
| $(ROMFSINST) /lib/$$i; \ |
| fi; \ |
| done |
| #$(ROMFSINST) $(INSTALL_DIR)/bin/arm-buildroot-linux-gst-inspect-1.0 /bin/gst-inspect |
| |