peercast: use uclibc++.mk
authorFelix Fietkau <nbd@openwrt.org>
Thu, 14 Jun 2012 20:26:25 +0000 (20:26 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 14 Jun 2012 20:26:25 +0000 (20:26 +0000)
SVN-Revision: 32373

multimedia/peercast/Makefile

index ab5cb845de5bf2fd7171e2bf38785c19644374a9..afbcda1b7fe346e3c46b6c19b8544b30dd3bb454 100644 (file)
@@ -20,12 +20,13 @@ PKG_REMOVE_FILES:=aclocal.m4 acinclude.m4
 
 PKG_INSTALL:=1
 
+include $(INCLUDE_DIR)/uclibc++.mk
 include $(INCLUDE_DIR)/package.mk
 
 define Package/peercast
   SECTION:=multimedia
   CATEGORY:=Multimedia
-  DEPENDS:=+libpthread +uclibcxx
+  DEPENDS:=+libpthread $(CXX_DEPENDS)
   TITLE:=P2P audio and video streaming server
   URL:=http://www.peercast.org/
 endef
@@ -45,9 +46,7 @@ CONFIGURE_ARGS += \
        --enable-staticbin \
 
 CONFIGURE_VARS += \
-       CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
-       CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
-       LIBS="-nodefaultlibs -lc -luClibc++ -lpthread -lgcc_s" \
+       LIBS="-lpthread"
 
 define Package/peercast/install
        $(INSTALL_DIR) $(1)/usr/sbin