2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
10 PKG_RELEASE
:=$(AUTORELEASE
)
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_SOURCE_URL
:=https
://downloads.us.xiph.org
/releases
/libshout
/
14 PKG_HASH
:=d9e568668a673994ebe3f1eb5f2bee06e3236a5db92b8d0c487e1c0f886a6890
16 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
17 PKG_LICENSE
:=LGPL-2.1
-or-later
18 PKG_LICENSE_FILES
:=COPYING
19 PKG_CPE_ID
:=cpe
:/a
:libshout
:libshout
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/libshout
/default
30 TITLE
:=Shoutcast client library
31 URL
:=http
://www.icecast.org
32 DEPENDS
:= +libvorbisidec
+libpthread
35 define Package
/libshout
36 $(call Package
/libshout
/default
)
42 define Package
/libshout-nossl
43 $(call Package
/libshout
/default
)
44 TITLE
+= (no ssl
/theora
)
48 define Package
/libshout-full
49 $(call Package
/libshout
/default
)
51 DEPENDS
+= +libtheora
+libopenssl
55 define Package
/libshout
/description
/default
56 libshout allows applications to easily communicate and broadcast
57 to an Icecast streaming media server. It handles the socket connections
,
58 metadata communication
, and data streaming for the calling application
,
59 and lets developers focus on feature sets instead of implementation
63 define Package
/libshout
/description
64 $(call Package
/libshout
/description
/default
)
66 This package does not have Theora support.
69 define Package
/libshout-nossl
/description
70 $(call Package
/libshout
/description
/default
)
72 This package does not have OpenSSL or Theora support.
75 Package
/libshout-full
/description
=$(Package
/libshout
/description
/default
)
83 ifeq ($(BUILD_VARIANT
),notheora
)
84 CONFIGURE_ARGS
+= --disable-theora
87 ifeq ($(BUILD_VARIANT
),nossl
)
88 CONFIGURE_ARGS
+= --disable-theora
--without-openssl
92 VORBIS_CFLAGS
="-I$(STAGING_DIR)/usr/include/tremor/" \
93 VORBIS_LIBS
="$(TARGET_LDFLAGS) -lvorbisidec" \
95 TARGET_CFLAGS
+= $(FPIC
)
97 PACKAGE_CONFIG_FILE
=shout
$(if
$(findstring $(BUILD_VARIANT
),full
),-full
).
pc
99 define Build
/InstallDev
100 $(INSTALL_DIR
) $(1)/usr
/include
101 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/shout
$(1)/usr
/include/
102 $(INSTALL_DIR
) $(1)/usr
/lib
103 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libshout.
{a
,so
*} $(1)/usr
/lib
/
104 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
105 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/shout.
pc $(1)/usr
/lib
/pkgconfig
/$(PACKAGE_CONFIG_FILE
)
106 $(SED
) 's| -I/usr/include||' $(1)/usr
/lib
/pkgconfig
/$(PACKAGE_CONFIG_FILE
)
109 define Package
/libshout
/install
110 $(INSTALL_DIR
) $(1)/usr
/lib
111 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libshout.so.
* $(1)/usr
/lib
/
114 Package
/libshout-full
/install=$(Package
/libshout
/install)
115 Package
/libshout-nossl
/install=$(Package
/libshout
/install)
117 $(eval
$(call BuildPackage
,libshout
))
118 $(eval
$(call BuildPackage
,libshout-nossl
))
119 $(eval
$(call BuildPackage
,libshout-full
))