19b4a6f4e0
This allows pkg-config-aware packages to include headers from, and link against Broadcom VideoCore host API library. bcm_host.pc copied almost as-is from: http://cgit.collabora.com/git/user/pq/android-pc-files.git/tree/pkgconfig?h=raspberrypi with only a fix to the prefix (we're using /usr). [Peter: s/TARGET/STAGING/] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
26 lines
865 B
Makefile
26 lines
865 B
Makefile
################################################################################
|
|
#
|
|
# rpi-userland
|
|
#
|
|
################################################################################
|
|
|
|
RPI_USERLAND_VERSION = 77d32cd
|
|
RPI_USERLAND_SITE = http://github.com/raspberrypi/userland/tarball/$(RPI_USERLAND_VERSION)
|
|
RPI_USERLAND_LICENSE = BSD-3c
|
|
RPI_USERLAND_LICENSE_FILES = LICENCE
|
|
RPI_USERLAND_INSTALL_STAGING = YES
|
|
RPI_USERLAND_CONF_OPT = -DVMCS_INSTALL_PREFIX=/usr
|
|
|
|
define RPI_USERLAND_POST_TARGET_CLEANUP
|
|
rm -Rf $(TARGET_DIR)/usr/src
|
|
endef
|
|
RPI_USERLAND_POST_INSTALL_TARGET_HOOKS += RPI_USERLAND_POST_TARGET_CLEANUP
|
|
|
|
define RPI_USERLAND_POST_STAGING_PC_FILE
|
|
install -D -m 0644 package/rpi-userland/bcm_host.pc \
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/bcm_host.pc
|
|
endef
|
|
RPI_USERLAND_POST_INSTALL_STAGING_HOOKS += RPI_USERLAND_POST_STAGING_PC_FILE
|
|
|
|
$(eval $(cmake-package))
|