1 ################################################################################
5 ################################################################################
7 OPEN2300_SITE
= http
://www.lavrsen.dk
/svn
/open2300
/trunk
8 OPEN2300_SITE_METHOD
= svn
10 OPEN2300_LICENSE
= GPLv2
11 OPEN2300_LICENSE_FILES
= COPYING
14 open2300 dump2300 log2300 fetch2300 wu2300 cw2300 history2300 \
15 histlog2300 bin2300 xml2300 light2300 interval2300 minmax2300
16 OPEN2300_CFLAGS
= $(TARGET_CFLAGS
)
17 OPEN2300_LDFLAGS
= $(TARGET_LDFLAGS
)
19 ifeq ($(BR2_PACKAGE_MYSQL
),y
)
20 OPEN2300_DEPENDENCIES
+= mysql
21 OPEN2300_BINS
+= mysql2300 mysqlhistlog2300
22 OPEN2300_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include/mysql
23 OPEN2300_LDFLAGS
+= -L
$(STAGING_DIR
)/usr
/lib
/mysql
-lmysqlclient
24 ifeq ($(BR2_STATIC_LIBS
),y
)
25 # mysql needs -lz, so we need to specify it for static builds
26 OPEN2300_LDFLAGS
+= -lz
30 define OPEN2300_BUILD_CMDS
31 $(TARGET_MAKE_ENV
) $(MAKE
) CC
="$(TARGET_CC)" LD
="$(TARGET_LD)" \
32 CFLAGS
="$(OPEN2300_CFLAGS)" CC_LDFLAGS
="$(OPEN2300_LDFLAGS)" \
33 -C
$(@D
) $(OPEN2300_BINS
)
36 define OPEN2300_INSTALL_TARGET_CMDS
37 for prog in
$(OPEN2300_BINS
); do \
38 $(INSTALL
) -D
-m
0755 $(@D
)/$$prog $(TARGET_DIR
)/usr
/bin
/$$prog ; \
42 $(eval
$(generic-package
))