2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=http
://downloads.us.xiph.org
/releases
/libshout
/
15 PKG_MD5SUM
:=89cebf8cb0197f639cde69c95177fe47
16 PKG_HASH
:=f3acb8dec26f2dbf6df778888e0e429a4ce9378a9d461b02a7ccbf2991bbf24d
18 PKG_LICENSE
:=LGPL-2.0
+
19 PKG_LICENSE_FILES
:=COPYING
20 PKG_MAINTAINER
:=Nicolas Thill
<nico@openwrt.org
>, \
21 Ted Hess
<thess@kitschensync.net
>
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libshout
/default
31 TITLE
:=Shoutcast client library
32 URL
:=http
://www.icecast.org
33 DEPENDS
:= +libvorbisidec
+libpthread
36 define Package
/libshout
37 $(call Package
/libshout
/default
)
43 define Package
/libshout-nossl
44 $(call Package
/libshout
/default
)
45 TITLE
+= (no ssl
/theora
)
49 define Package
/libshout-full
50 $(call Package
/libshout
/default
)
52 DEPENDS
+= +libtheora
+libopenssl
56 define Package
/libshout
/description
/default
57 libshout allows applications to easily communicate and broadcast
58 to an Icecast streaming media server. It handles the socket connections
,
59 metadata communication
, and data streaming for the calling application
,
60 and lets developers focus on feature sets instead of implementation
64 define Package
/libshout
/description
65 $(call Package
/libshout
/description
/default
)
67 This package does not have Theora support.
70 define Package
/libshout-nossl
/description
71 $(call Package
/libshout
/description
/default
)
73 This package does not have OpenSSL or Theora support.
76 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
--with-openssl
="no"
92 VORBIS_CFLAGS
="-I$(STAGING_DIR)/usr/include/tremor/" \
93 VORBIS_LIBS
="$(TARGET_LDFLAGS) -lvorbisidec" \
95 TARGET_CFLAGS
+= $(FPIC
) -Wl
,-rpath-link
="$(STAGING_DIR)/usr/lib"
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
))