1 ################################################################################
5 ################################################################################
7 LIVE555_VERSION
= 2016.03.16
8 LIVE555_SOURCE
= live.
$(LIVE555_VERSION
).
tar.gz
9 LIVE555_SITE
= http
://www.live555.com
/liveMedia
/public
10 LIVE555_LICENSE
= LGPLv2.1
+
11 LIVE555_LICENSE_FILES
= COPYING
12 LIVE555_INSTALL_STAGING
= YES
14 LIVE555_CFLAGS
= $(TARGET_CFLAGS
)
16 ifeq ($(BR2_STATIC_LIBS
),y
)
17 LIVE555_CONFIG_TARGET
= linux
18 LIVE555_LIBRARY_LINK
= $(TARGET_AR
) cr
20 LIVE555_CONFIG_TARGET
= linux-with-shared-libraries
21 LIVE555_LIBRARY_LINK
= $(TARGET_CC
) -o
22 LIVE555_CFLAGS
+= -fPIC
25 ifndef ($(BR2_ENABLE_LOCALE
),y
)
26 LIVE555_CFLAGS
+= -DLOCALE_NOT_USED
29 define LIVE555_CONFIGURE_CMDS
30 echo
'COMPILE_OPTS = $$(INCLUDES) -I. -DSOCKLEN_T=socklen_t $(LIVE555_CFLAGS)' >> $(@D
)/config.
$(LIVE555_CONFIG_TARGET
)
31 echo
'C_COMPILER = $(TARGET_CC)' >> $(@D
)/config.
$(LIVE555_CONFIG_TARGET
)
32 echo
'CPLUSPLUS_COMPILER = $(TARGET_CXX)' >> $(@D
)/config.
$(LIVE555_CONFIG_TARGET
)
34 echo
'LINK = $(TARGET_CXX) -o' >> $(@D
)/config.
$(LIVE555_CONFIG_TARGET
)
35 echo
'LINK_OPTS = -L. $(TARGET_LDFLAGS)' >> $(@D
)/config.
$(LIVE555_CONFIG_TARGET
)
36 echo
'PREFIX = /usr' >> $(@D
)/config.
$(LIVE555_CONFIG_TARGET
)
37 # Must have a whitespace at the end of LIBRARY_LINK, otherwise static link
39 echo
'LIBRARY_LINK = $(LIVE555_LIBRARY_LINK) ' >> $(@D
)/config.
$(LIVE555_CONFIG_TARGET
)
40 (cd
$(@D
); .
/genMakefiles
$(LIVE555_CONFIG_TARGET
))
43 define LIVE555_BUILD_CMDS
44 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) all
47 define LIVE555_INSTALL_STAGING_CMDS
48 $(TARGET_MAKE_ENV
) $(MAKE
) DESTDIR
=$(STAGING_DIR
) -C
$(@D
) install
51 define LIVE555_INSTALL_TARGET_CMDS
52 $(TARGET_MAKE_ENV
) $(MAKE
) DESTDIR
=$(TARGET_DIR
) PREFIX
=/usr
-C
$(@D
) install
55 $(eval
$(generic-package
))