4711bdbd25
Fix the following build failure with gcc 4.8 raised since the addition
of the package in commit e821078031
:
In file included from framebuffer.cc:20:0:
framebuffer-internal.h:83:10: error: 'constexpr' does not name a type
static constexpr int kBitPlanes = 11;
^
framebuffer-internal.h:83:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
Fixes:
- http://autobuild.buildroot.org/results/c035da0d183f21343f19f7dee982e8e73ee781e4
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
83 lines
3.5 KiB
Makefile
83 lines
3.5 KiB
Makefile
################################################################################
|
|
#
|
|
# rpi-rgb-led-matrix
|
|
#
|
|
################################################################################
|
|
|
|
RPI_RGB_LED_MATRIX_VERSION = 63e3e7ffdbe88223cc80e1faa508bc4f3cf2bea4
|
|
RPI_RGB_LED_MATRIX_SITE = $(call github,hzeller,rpi-rgb-led-matrix,$(RPI_RGB_LED_MATRIX_VERSION))
|
|
RPI_RGB_LED_MATRIX_LICENSE = GPL-2.0
|
|
RPI_RGB_LED_MATRIX_LICENSE_FILES = COPYING
|
|
RPI_RGB_LED_MATRIX_INSTALL_STAGING = YES
|
|
|
|
RPI_RGB_LED_MATRIX_MAKE_OPTS = \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
CXXFLAGS="$(TARGET_CXXFLAGS) -fPIC -std=c++11"
|
|
|
|
define RPI_RGB_LED_MATRIX_BUILD_CMDS
|
|
$(MAKE) $(RPI_RGB_LED_MATRIX_MAKE_OPTS) -C $(@D)/lib all
|
|
endef
|
|
|
|
define RPI_RGB_LED_MATRIX_INSTALL_STAGING_CMDS
|
|
$(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include/rpi-rgb-led-matrix/
|
|
$(INSTALL) -m 0644 $(@D)/include/*.h $(STAGING_DIR)/usr/include/rpi-rgb-led-matrix/
|
|
$(INSTALL) -D -m 0644 $(@D)/lib/librgbmatrix.a $(STAGING_DIR)/usr/lib/librgbmatrix.a
|
|
$(INSTALL) -D -m 0755 $(@D)/lib/librgbmatrix.so.1 $(STAGING_DIR)/usr/lib/librgbmatrix.so.1
|
|
ln -sf librgbmatrix.so.1 $(STAGING_DIR)/usr/lib/librgbmatrix.so
|
|
endef
|
|
|
|
define RPI_RGB_LED_MATRIX_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/lib/librgbmatrix.so.1 $(TARGET_DIR)/usr/lib/librgbmatrix.so.1
|
|
ln -sf librgbmatrix.so.1 $(TARGET_DIR)/usr/lib/librgbmatrix.so
|
|
endef
|
|
|
|
ifeq ($(BR2_PACKAGE_RPI_RGB_LED_MATRIX_IMAGE_VIEWER),y)
|
|
RPI_RGB_LED_MATRIX_DEPENDENCIES += graphicsmagick
|
|
|
|
define RPI_RGB_LED_MATRIX_BUILD_IMAGE_VIEWER_CMDS
|
|
$(MAKE) $(RPI_RGB_LED_MATRIX_MAKE_OPTS) \
|
|
MAGICK_CXXFLAGS="-I$(STAGING_DIR)/usr/include/GraphicsMagick $(shell $(STAGING_DIR)/usr/bin/GraphicsMagick++-config --cxxflags)" \
|
|
MAGICK_LDFLAGS="-L$(STAGING_DIR)/usr/lib $(shell $(STAGING_DIR)/usr/bin/GraphicsMagick++-config --libs)" \
|
|
-C $(@D)/utils led-image-viewer
|
|
endef
|
|
RPI_RGB_LED_MATRIX_POST_BUILD_HOOKS += RPI_RGB_LED_MATRIX_BUILD_IMAGE_VIEWER_CMDS
|
|
|
|
define RPI_RGB_LED_MATRIX_INSTALL_IMAGE_VIEWER_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/utils/led-image-viewer $(TARGET_DIR)/usr/bin/led-image-viewer
|
|
endef
|
|
RPI_RGB_LED_MATRIX_POST_INSTALL_TARGET_HOOKS += RPI_RGB_LED_MATRIX_INSTALL_IMAGE_VIEWER_CMDS
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_RPI_RGB_LED_MATRIX_TEXT_SCROLLER),y)
|
|
define RPI_RGB_LED_MATRIX_BUILD_TEXT_SCROLLER_CMDS
|
|
$(MAKE) $(RPI_RGB_LED_MATRIX_MAKE_OPTS) -C $(@D)/utils text-scroller
|
|
endef
|
|
RPI_RGB_LED_MATRIX_POST_BUILD_HOOKS += RPI_RGB_LED_MATRIX_BUILD_TEXT_SCROLLER_CMDS
|
|
|
|
define RPI_RGB_LED_MATRIX_INSTALL_TEXT_SCROLLER_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/utils/text-scroller $(TARGET_DIR)/usr/bin/text-scroller
|
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/share/rpi-rgb-led-matrix/fonts/
|
|
$(INSTALL) -m 0644 $(@D)/fonts/*.bdf $(TARGET_DIR)/usr/share/rpi-rgb-led-matrix/fonts/
|
|
endef
|
|
RPI_RGB_LED_MATRIX_POST_INSTALL_TARGET_HOOKS += RPI_RGB_LED_MATRIX_INSTALL_TEXT_SCROLLER_CMDS
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_RPI_RGB_LED_MATRIX_VIDEO_VIEWER),y)
|
|
RPI_RGB_LED_MATRIX_DEPENDENCIES += ffmpeg
|
|
|
|
define RPI_RGB_LED_MATRIX_BUILD_VIDEO_VIEWER_CMDS
|
|
$(MAKE) $(RPI_RGB_LED_MATRIX_MAKE_OPTS) \
|
|
AV_CXXFLAGS="$(shell $(HOST_DIR)/bin/pkg-config --cflags libavcodec libavformat libswscale libavutil)" \
|
|
AV_LDFLAGS="$(shell $(HOST_DIR)/bin/pkg-config --libs libavcodec libavformat libswscale libavutil)" \
|
|
-C $(@D)/utils video-viewer
|
|
endef
|
|
RPI_RGB_LED_MATRIX_POST_BUILD_HOOKS += RPI_RGB_LED_MATRIX_BUILD_VIDEO_VIEWER_CMDS
|
|
|
|
define RPI_RGB_LED_MATRIX_INSTALL_VIDEO_VIEWER_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/utils/video-viewer $(TARGET_DIR)/usr/bin/video-viewer
|
|
endef
|
|
RPI_RGB_LED_MATRIX_POST_INSTALL_TARGET_HOOKS += RPI_RGB_LED_MATRIX_INSTALL_VIDEO_VIEWER_CMDS
|
|
endif
|
|
|
|
$(eval $(generic-package))
|