wok-6.x rev 19542

Build *.pc files for ncurses(w)-dev; rebuild sc-im with ncursesw.pc
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 05 15:16:10 2016 +0200 (2016-12-05)
parents 54759b13f3b3
children 8312b3fd937f
files ncurses-dev/receipt ncurses/receipt ncursesw-dev/receipt ncursesw/receipt sc-im/receipt
line diff
     1.1 --- a/ncurses-dev/receipt	Mon Dec 05 04:55:00 2016 +0200
     1.2 +++ b/ncurses-dev/receipt	Mon Dec 05 15:16:10 2016 +0200
     1.3 @@ -15,10 +15,10 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -	mkdir -p $fs/lib $fs/usr/bin
     1.8 +	mkdir -p $fs/lib $fs/usr/bin $fs/usr/lib
     1.9  	cp -a $install/lib/*.a $fs/lib
    1.10  	# Use include file from ncursesw-dev
    1.11  	#cp -a $install/usr/include $fs/usr
    1.12  	cp $install/usr/bin/ncurses5-config $fs/usr/bin
    1.13 -	chmod 755 $fs/usr/bin/*
    1.14 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.15  }
     2.1 --- a/ncurses/receipt	Mon Dec 05 04:55:00 2016 +0200
     2.2 +++ b/ncurses/receipt	Mon Dec 05 15:16:10 2016 +0200
     2.3 @@ -13,6 +13,8 @@
     2.4  
     2.5  DEPENDS="ncurses-common libtinfo libtic"
     2.6  BUILD_DEPENDS=""
     2.7 +SPLIT="ncurses-common ncurses-extra ncurses-dev ncurses-man libform libmenu \
     2.8 +libpanel libtic libtinfo"
     2.9  
    2.10  # Rules to configure and make the package.
    2.11  compile_rules()
    2.12 @@ -40,6 +42,7 @@
    2.13  		--with-build-cc="gcc -D_GNU_SOURCE" \
    2.14  		--with-termlib \
    2.15  		--with-ticlib \
    2.16 +		--enable-pc-files \
    2.17  		$CONFIGURE_ARGS &&
    2.18  	make && make install
    2.19  }
     3.1 --- a/ncursesw-dev/receipt	Mon Dec 05 04:55:00 2016 +0200
     3.2 +++ b/ncursesw-dev/receipt	Mon Dec 05 15:16:10 2016 +0200
     3.3 @@ -15,11 +15,11 @@
     3.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     3.5  genpkg_rules()
     3.6  {
     3.7 -	mkdir -p $fs/lib $fs/usr/bin
     3.8 +	mkdir -p $fs/lib $fs/usr/bin $fs/usr/lib
     3.9  	cp -a $install/lib/*.a $fs/lib
    3.10  	# Include files are from the same source than ncuses-dev and work
    3.11  	# nicely for both.
    3.12  	cp -a $install/usr/include $fs/usr
    3.13  	cp $install/usr/bin/ncursesw5-config $fs/usr/bin
    3.14 -	chmod 755 $fs/usr/bin/*
    3.15 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    3.16  }
     4.1 --- a/ncursesw/receipt	Mon Dec 05 04:55:00 2016 +0200
     4.2 +++ b/ncursesw/receipt	Mon Dec 05 15:16:10 2016 +0200
     4.3 @@ -44,6 +44,7 @@
     4.4  		--without-ada \
     4.5  		--enable-widec \
     4.6  		--with-build-cc="gcc -D_GNU_SOURCE" \
     4.7 +		--enable-pc-files \
     4.8  		$CONFIGURE_ARGS &&
     4.9  	make && make install
    4.10  }
     5.1 --- a/sc-im/receipt	Mon Dec 05 04:55:00 2016 +0200
     5.2 +++ b/sc-im/receipt	Mon Dec 05 15:16:10 2016 +0200
     5.3 @@ -9,21 +9,17 @@
     5.4  WEB_SITE="https://github.com/andmarti1424/sc-im"
     5.5  WGET_URL="git|git://github.com/andmarti1424/sc-im"
     5.6  
     5.7 -DEPENDS="ncurses libtinfo"
     5.8 -BUILD_DEPENDS="ncurses-dev git bzip2 bison flex"
     5.9 +DEPENDS="ncursesw"
    5.10 +BUILD_DEPENDS="git ncursesw-dev bison"
    5.11  
    5.12  # Rules to configure and make the package.
    5.13  compile_rules()
    5.14  {
    5.15  	cd $src/src
    5.16 -	sed -i 's|ncursesw/curses|curses|' *.c *.h
    5.17 -	make -j1
    5.18 -	make DESTDIR=$DESTDIR install
    5.19 +	make -j1 && make install
    5.20  }
    5.21  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.22  genpkg_rules()
    5.23  {
    5.24 -	mkdir -p $fs/usr/share
    5.25 -	cp -a $install/usr/bin $fs/usr 
    5.26 -	cp -a $install/usr/share/scim $fs/usr/share
    5.27 +	cook_copy_files scim scim_help
    5.28  }