wok-4.x rev 1182

Add nbs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 03 06:51:20 2008 +0000 (2008-08-03)
parents 86727cae3a5d
children 41db18c068e2
files nbs-dev/receipt nbs/receipt nbs/stuff/Makefile.u
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nbs-dev/receipt	Sun Aug 03 06:51:20 2008 +0000
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="nbs-dev"
     1.7 +VERSION="2007svn"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Network Broadcast Sound development files."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://svn.digium.com/view/nbs"
    1.12 +WANTED="nbs"
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	mkdir -p $fs/usr/lib
    1.18 +	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
    1.19 +	cp -a $_pkg/usr/include $fs/usr
    1.20 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/nbs/receipt	Sun Aug 03 06:51:20 2008 +0000
     2.3 @@ -0,0 +1,39 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="nbs"
     2.7 +VERSION="2007svn"
     2.8 +CATEGORY="network"
     2.9 +SHORT_DESC="Network Broadcast Sound."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +WEB_SITE="http://svn.digium.com/view/nbs"
    2.12 +
    2.13 +# Rules to configure and make the package.
    2.14 +compile_rules()
    2.15 +{
    2.16 +	mkdir $src
    2.17 +	cd $src
    2.18 +	for i in Makefile nbs.h nbscat.c nbscat8k nbsclient.c nbsd.c; do
    2.19 +		[ -f $i ] && continue
    2.20 +		wget http://svn.digium.com/view/nbs/trunk/$i?view=co
    2.21 +		mv $i\?view=co $i
    2.22 +		[ -f ../stuff/$i.u ] && patch -p0 <  ../stuff/$i.u
    2.23 +	done
    2.24 +	make
    2.25 +	make DESTDIR=$PWD/_pkg install
    2.26 +}
    2.27 +
    2.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.29 +genpkg_rules()
    2.30 +{
    2.31 +	mkdir -p $fs/usr/lib
    2.32 +	cp -a $_pkg/usr/bin $fs/usr
    2.33 +	cp -a $_pkg/usr/sbin $fs/usr
    2.34 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.35 +	ln -s libnbs.so.1.0 $fs/usr/lib/libnbs.so.1
    2.36 +	# Package all nbs pkgs
    2.37 +	for i in $(cd $WOK; ls -d nbs-*)
    2.38 +	do
    2.39 +		tazwok genpkg $i
    2.40 +	done
    2.41 +}
    2.42 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/nbs/stuff/Makefile.u	Sun Aug 03 06:51:20 2008 +0000
     3.3 @@ -0,0 +1,31 @@
     3.4 +--- Makefile.org	2008-04-30 10:55:30.000000000 +0200
     3.5 ++++ Makefile	2008-04-30 11:03:26.000000000 +0200
     3.6 +@@ -8,17 +8,17 @@
     3.7 + all: nbsd $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY) nbscat
     3.8 + 
     3.9 + install: all
    3.10 +-	mkdir -p /usr/lib
    3.11 +-	mkdir -p /usr/sbin
    3.12 +-	mkdir -p /usr/include
    3.13 +-	install -m 755 nbsd /usr/sbin/nbsd
    3.14 +-	install -m 755 nbscat /usr/bin/nbscat
    3.15 +-	install -m 755 nbscat8k /usr/bin/nbscat8k
    3.16 +-	install -m 644 nbs.h /usr/include/nbs.h
    3.17 +-	install -m 755 $(DYNAMIC_LIBRARY) /usr/lib
    3.18 +-	( cd /usr/lib ; ln -sf libnbs.so.1 libnbs.so )
    3.19 +-	install -m 755 $(STATIC_LIBRARY) /usr/lib
    3.20 +-	/sbin/ldconfig
    3.21 ++	mkdir -p $(DESTDIR)/usr/lib
    3.22 ++	mkdir -p $(DESTDIR)/usr/bin
    3.23 ++	mkdir -p $(DESTDIR)/usr/sbin
    3.24 ++	mkdir -p $(DESTDIR)/usr/include
    3.25 ++	install -m 755 nbsd $(DESTDIR)/usr/sbin/nbsd
    3.26 ++	install -m 755 nbscat $(DESTDIR)/usr/bin/nbscat
    3.27 ++	install -m 755 nbscat8k $(DESTDIR)/usr/bin/nbscat8k
    3.28 ++	install -m 644 nbs.h $(DESTDIR)/usr/include/nbs.h
    3.29 ++	install -m 755 $(DYNAMIC_LIBRARY) $(DESTDIR)/usr/lib
    3.30 ++	( cd $(DESTDIR)/usr/lib ; ln -sf libnbs.so.1 libnbs.so )
    3.31 ++	install -m 755 $(STATIC_LIBRARY) $(DESTDIR)/usr/lib
    3.32 + 
    3.33 + %.lo : %.c
    3.34 + 	$(CC) -fPIC $(CFLAGS) -o $@ -c $<