#
-# Copyright (C) 2008 OpenWrt.org
+# Copyright (C) 2008-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
-# $Id$
include $(TOPDIR)/rules.mk
define Build/Configure
$(call Build/Configure/Default, \
VORBIS_CFLAGS="-I$(STAGING_DIR)/usr/include/tremor/"\
- VORBIS_LIBS="-L$(STAGING_DIR)/usr/lib" \
+ VORBIS_LIBS="$(TARGET_LDFLAGS)" \
--enable-shared \
--enable-static \
)
endef
define Build/InstallDev
- mkdir -p $(1)/usr/include/shout
+ $(INSTALL_DIR) $(1)/usr/include/shout
$(CP) $(PKG_INSTALL_DIR)/usr/include/shout/shout.h $(1)/usr/include/shout
- mkdir -p $(1)/usr/lib
+ $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.{a,so*} $(1)/usr/lib/
- mkdir -p $(1)/usr/lib/pkgconfig
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ $(SED) 's|/usr/include|$(STAGING_DIR)/usr/include|' \
+ $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/shout.pc
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/shout.pc $(1)/usr/lib/pkgconfig/
endef