Move buildroot to bsp directory.
This commit is contained in:
23
bsp/buildroot/package/cppdb/0001-mysql-library-suffix.patch
Normal file
23
bsp/buildroot/package/cppdb/0001-mysql-library-suffix.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
Add mysql/ to PATH_SUFFIXES for the library search for mysql.
|
||||
|
||||
On common distros libmysqlclient* is installed and/or symlinked
|
||||
into /usr/lib.
|
||||
Since we install the libraries into /usr/lib/mysql alone cppdb
|
||||
fails to properly link to it giving runtime errors.
|
||||
|
||||
Status: https://sourceforge.net/p/cppcms/bugs/135/
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
diff -Nura cppdb-0.3.1.orig/CMakeLists.txt cppdb-0.3.1/CMakeLists.txt
|
||||
--- cppdb-0.3.1.orig/CMakeLists.txt 2014-10-17 11:05:57.875429748 -0300
|
||||
+++ cppdb-0.3.1/CMakeLists.txt 2014-10-17 11:12:57.486775484 -0300
|
||||
@@ -196,7 +196,7 @@
|
||||
endif()
|
||||
|
||||
if(NOT DISABLE_MYSQL)
|
||||
- find_library(MYSQL_LIB mysqlclient)
|
||||
+ find_library(MYSQL_LIB mysqlclient PATH_SUFFIXES mysql)
|
||||
find_path(MYSQL_PATH mysql.h PATH_SUFFIXES mysql)
|
||||
if(MYSQL_LIB AND MYSQL_PATH)
|
||||
include_directories(${MYSQL_PATH})
|
||||
19
bsp/buildroot/package/cppdb/Config.in
Normal file
19
bsp/buildroot/package/cppdb/Config.in
Normal file
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_CPPDB
|
||||
bool "cppdb"
|
||||
# dlfcn.h
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
# Can be built without them but it's useless
|
||||
depends on BR2_PACKAGE_MYSQL || BR2_PACKAGE_POSTGRESQL || BR2_PACKAGE_SQLITE
|
||||
help
|
||||
CppDB is an SQL connectivity library that is designed to provide
|
||||
platform and Database independent connectivity API similarly
|
||||
to what JDBC, ODBC and other connectivity libraries do.
|
||||
|
||||
http://cppcms.com/sql/cppdb/
|
||||
|
||||
comment "cppdb needs a toolchain w/ C++, threads, dynamic library"
|
||||
depends on BR2_PACKAGE_MYSQL || BR2_PACKAGE_POSTGRESQL || BR2_PACKAGE_SQLITE
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
BR2_STATIC_LIBS
|
||||
3
bsp/buildroot/package/cppdb/cppdb.hash
Normal file
3
bsp/buildroot/package/cppdb/cppdb.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# From http://sourceforge.net/projects/cppcms/files/cppdb/0.3.1/
|
||||
md5 129f1d75f46114b79160b93807d5223f cppdb-0.3.1.tar.bz2
|
||||
sha1 c0410dcc482d71696ac9206044b3a3ac03d31f96 cppdb-0.3.1.tar.bz2
|
||||
31
bsp/buildroot/package/cppdb/cppdb.mk
Normal file
31
bsp/buildroot/package/cppdb/cppdb.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# cppdb
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CPPDB_VERSION = 0.3.1
|
||||
CPPDB_SOURCE = cppdb-$(CPPDB_VERSION).tar.bz2
|
||||
CPPDB_SITE = http://downloads.sourceforge.net/project/cppcms/cppdb/$(CPPDB_VERSION)
|
||||
CPPDB_INSTALL_STAGING = YES
|
||||
CPPDB_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite)
|
||||
CPPDB_LICENSE = Boost-v1.0 or MIT
|
||||
CPPDB_LICENSE_FILES = LICENSE_1_0.txt MIT.txt
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
||||
CPPDB_DEPENDENCIES += mysql
|
||||
else
|
||||
CPPDB_CONF_OPTS += -DDISABLE_MYSQL=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
|
||||
CPPDB_DEPENDENCIES += postgresql
|
||||
else
|
||||
CPPDB_CONF_OPTS += -DDISABLE_PQ=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQLITE),)
|
||||
CPPDB_CONF_OPTS += -DDISABLE_SQLITE=ON
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user