2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-01-12 15:03:02 +01:00
|
|
|
#
|
2013-06-06 01:53:28 +02:00
|
|
|
# open2300
|
2012-01-12 15:03:02 +01:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-01-12 15:03:02 +01:00
|
|
|
|
2014-07-31 10:46:58 +02:00
|
|
|
OPEN2300_SITE = http://www.lavrsen.dk/svn/open2300/trunk
|
2012-01-12 15:03:02 +01:00
|
|
|
OPEN2300_SITE_METHOD = svn
|
2014-06-24 20:55:31 +02:00
|
|
|
OPEN2300_VERSION = 12
|
|
|
|
OPEN2300_LICENSE = GPLv2
|
|
|
|
OPEN2300_LICENSE_FILES = COPYING
|
2012-01-12 15:03:02 +01:00
|
|
|
|
2014-12-30 08:36:23 +01:00
|
|
|
OPEN2300_BINS = \
|
|
|
|
open2300 dump2300 log2300 fetch2300 wu2300 cw2300 history2300 \
|
|
|
|
histlog2300 bin2300 xml2300 light2300 interval2300 minmax2300
|
2014-02-06 21:49:36 +01:00
|
|
|
OPEN2300_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
OPEN2300_LDFLAGS = $(TARGET_LDFLAGS)
|
2012-01-12 15:03:02 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
OPEN2300_DEPENDENCIES += mysql
|
|
|
|
OPEN2300_BINS += mysql2300 mysqlhistlog2300
|
|
|
|
OPEN2300_CFLAGS += -I$(STAGING_DIR)/usr/include/mysql
|
|
|
|
OPEN2300_LDFLAGS += -L$(STAGING_DIR)/usr/lib/mysql -lmysqlclient
|
2016-07-04 15:05:17 +02:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
# mysql needs -lz, so we need to specify it for static builds
|
|
|
|
OPEN2300_LDFLAGS += -lz
|
|
|
|
endif
|
2012-01-12 15:03:02 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
define OPEN2300_BUILD_CMDS
|
2014-02-06 21:49:36 +01:00
|
|
|
$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" \
|
|
|
|
CFLAGS="$(OPEN2300_CFLAGS)" CC_LDFLAGS="$(OPEN2300_LDFLAGS)" \
|
|
|
|
-C $(@D) $(OPEN2300_BINS)
|
2012-01-12 15:03:02 +01:00
|
|
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|