echo 'CPLUSPLUS_COMPILER = $(TARGET_CXX)' >> $(@D)/config.linux
echo 'LINK = $(TARGET_CXX) -o' >> $(@D)/config.linux
echo 'LINK_OPTS = -L. $(TARGET_LDFLAGS)' >> $(@D)/config.linux
+ echo 'PREFIX = /usr' >> $(@D)/config.linux
(cd $(@D); ./genMakefiles linux)
endef
$(MAKE) -C $(@D) all
endef
-LIVE555_HEADERS_TO_INSTALL = \
- liveMedia/include \
- groupsock/include \
- UsageEnvironment/include \
- BasicUsageEnvironment/include
-
-LIVE555_LIBS_TO_INSTALL = \
- liveMedia/libliveMedia.a \
- groupsock/libgroupsock.a \
- UsageEnvironment/libUsageEnvironment.a \
- BasicUsageEnvironment/libBasicUsageEnvironment.a
-
LIVE555_FILES_TO_INSTALL-y =
LIVE555_FILES_TO_INSTALL-$(BR2_PACKAGE_LIVE555_OPENRTSP) += testProgs/openRTSP
LIVE555_FILES_TO_INSTALL-$(BR2_PACKAGE_LIVE555_MEDIASERVER) += mediaServer/live555MediaServer
LIVE555_FILES_TO_INSTALL-$(BR2_PACKAGE_LIVE555_MPEG2_INDEXER) += testProgs/MPEG2TransportStreamIndexer
define LIVE555_INSTALL_STAGING_CMDS
- for i in $(LIVE555_HEADERS_TO_INSTALL); do \
- mkdir -p $(STAGING_DIR)/usr/include/live/`dirname $$i`; \
- cp -a $(@D)/$$i/* $(STAGING_DIR)/usr/include/live/`dirname $$i`; \
- done; \
- for i in $(LIVE555_LIBS_TO_INSTALL); do \
- $(INSTALL) -D -m 0755 $(@D)/$$i $(STAGING_DIR)/usr/lib/`basename $$i`; \
- done
+ $(MAKE) DESTDIR=$(STAGING_DIR) -C $(@D) install
endef
define LIVE555_INSTALL_TARGET_CMDS
MPLAYER_CONF_OPTS += --enable-live
MPLAYER_LIVE555 = liveMedia groupsock UsageEnvironment BasicUsageEnvironment
MPLAYER_CFLAGS += \
- $(addprefix -I$(STAGING_DIR)/usr/include/live/,$(MPLAYER_LIVE555))
+ $(addprefix -I$(STAGING_DIR)/usr/include/,$(MPLAYER_LIVE555))
MPLAYER_LDFLAGS += $(addprefix -l,$(MPLAYER_LIVE555)) -lstdc++
else
MPLAYER_CONF_OPTS += --disable-live
VLC_DEPENDENCIES += live555
VLC_CONF_ENV += \
LIVE555_CFLAGS="\
- -I$(STAGING_DIR)/usr/include/live \
- -I$(STAGING_DIR)/usr/include/live/BasicUsageEnvironment \
- -I$(STAGING_DIR)/usr/include/live/groupsock \
- -I$(STAGING_DIR)/usr/include/live/liveMedia \
- -I$(STAGING_DIR)/usr/include/live/UsageEnvironment \
+ -I$(STAGING_DIR)/usr/include/BasicUsageEnvironment \
+ -I$(STAGING_DIR)/usr/include/groupsock \
+ -I$(STAGING_DIR)/usr/include/liveMedia \
+ -I$(STAGING_DIR)/usr/include/UsageEnvironment \
" \
LIVE555_LIBS="-L$(STAGING_DIR)/usr/lib -lliveMedia"
else