efffb3ea45
oracle-mysql won't built its own bundled zlib since commit
6fed83a030
so don't unconditionally link
with zlib instead use mysql_config to retrieve cflags and libs as
suggested by Thomas Petazzoni in review of first iteration
Fixes:
- No autobuilder failures yet
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
39 lines
1.2 KiB
Makefile
39 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# open2300
|
|
#
|
|
################################################################################
|
|
|
|
OPEN2300_SITE = http://www.lavrsen.dk/svn/open2300/trunk
|
|
OPEN2300_SITE_METHOD = svn
|
|
OPEN2300_VERSION = 12
|
|
OPEN2300_LICENSE = GPL-2.0
|
|
OPEN2300_LICENSE_FILES = COPYING
|
|
|
|
OPEN2300_BINS = \
|
|
open2300 dump2300 log2300 fetch2300 wu2300 cw2300 history2300 \
|
|
histlog2300 bin2300 xml2300 light2300 interval2300 minmax2300
|
|
OPEN2300_CFLAGS = $(TARGET_CFLAGS)
|
|
OPEN2300_LDFLAGS = $(TARGET_LDFLAGS)
|
|
|
|
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
|
OPEN2300_DEPENDENCIES += mysql
|
|
OPEN2300_BINS += mysql2300 mysqlhistlog2300
|
|
OPEN2300_CFLAGS += $(shell $(STAGING_DIR)/usr/bin/mysql_config --cflags)
|
|
OPEN2300_LDFLAGS += $(shell $(STAGING_DIR)/usr/bin/mysql_config --libs)
|
|
endif
|
|
|
|
define OPEN2300_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" \
|
|
CFLAGS="$(OPEN2300_CFLAGS)" CC_LDFLAGS="$(OPEN2300_LDFLAGS)" \
|
|
-C $(@D) $(OPEN2300_BINS)
|
|
endef
|
|
|
|
define OPEN2300_INSTALL_TARGET_CMDS
|
|
for prog in $(OPEN2300_BINS); do \
|
|
$(INSTALL) -D -m 0755 $(@D)/$$prog $(TARGET_DIR)/usr/bin/$$prog ; \
|
|
done
|
|
endef
|
|
|
|
$(eval $(generic-package))
|