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_HASH
:=f3acb8dec26f2dbf6df778888e0e429a4ce9378a9d461b02a7ccbf2991bbf24d
17 PKG_LICENSE
:=LGPL-2.0
+
18 PKG_LICENSE_FILES
:=COPYING
19 PKG_MAINTAINER
:=Nicolas Thill
<nico@openwrt.org
>, \
20 Ted Hess
<thess@kitschensync.net
>
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
)
82 ifeq ($(BUILD_VARIANT
),notheora
)
83 CONFIGURE_ARGS
+= --disable-theora
86 ifeq ($(BUILD_VARIANT
),nossl
)
87 CONFIGURE_ARGS
+= --disable-theora
--with-openssl
="no"
91 VORBIS_CFLAGS
="-I$(STAGING_DIR)/usr/include/tremor/" \
92 VORBIS_LIBS
="$(TARGET_LDFLAGS) -lvorbisidec" \
94 TARGET_CFLAGS
+= $(FPIC
) -Wl
,-rpath-link
="$(STAGING_DIR)/usr/lib"
96 PACKAGE_CONFIG_FILE
=shout
$(if
$(findstring $(BUILD_VARIANT
),full
),-full
).
pc
98 define Build
/InstallDev
99 $(INSTALL_DIR
) $(1)/usr
/include
100 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/shout
$(1)/usr
/include/
101 $(INSTALL_DIR
) $(1)/usr
/lib
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libshout.
{a
,so
*} $(1)/usr
/lib
/
103 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/shout.
pc $(1)/usr
/lib
/pkgconfig
/$(PACKAGE_CONFIG_FILE
)
105 $(SED
) 's| -I/usr/include||' $(1)/usr
/lib
/pkgconfig
/$(PACKAGE_CONFIG_FILE
)
108 define Package
/libshout
/install
109 $(INSTALL_DIR
) $(1)/usr
/lib
110 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libshout.so.
* $(1)/usr
/lib
/
113 Package
/libshout-full
/install=$(Package
/libshout
/install)
114 Package
/libshout-nossl
/install=$(Package
/libshout
/install)
116 $(eval
$(call BuildPackage
,libshout
))
117 $(eval
$(call BuildPackage
,libshout-nossl
))
118 $(eval
$(call BuildPackage
,libshout-full
))