wok-next rev 2818

fix: QT receipts for apps:smplayer,vlc
author Rohit Joshi <jozee@slitaz.org>
date Wed Apr 29 07:58:11 2009 +0000 (2009-04-29)
parents 28e65b8aa704
children cfba44c15c99
files Qt4-dev/receipt libQtCore/receipt qt-x11-opensource-src/receipt
line diff
     1.1 --- a/Qt4-dev/receipt	Wed Apr 29 10:39:52 2009 +0000
     1.2 +++ b/Qt4-dev/receipt	Wed Apr 29 07:58:11 2009 +0000
     1.3 @@ -15,5 +15,18 @@
     1.4  {
     1.5  	mkdir -p $fs/usr
     1.6  	cp -a $_pkg/usr/include $fs/usr
     1.7 +	cp -a $_pkg/usr/lib/pkgconfig  $fs/usr/lib
     1.8 +	cp -a $_pkg/usr/lib/*.*a  $fs/usr/lib/	
     1.9 +	cp -a $_pkg/usr/lib/*.prl  $fs/usr/lib/	
    1.10 +	cp -a $_pkg/usr/share  $fs/usr	
    1.11 +	cp -a $_pkg/usr/lib/qt $fs/usr/lib
    1.12 +	
    1.13 +	# all bin and remove QT applications designer, qmake, assistant, linguist: provide seperate packages
    1.14 +	cp -a $_pkg/usr/bin $fs/usr	
    1.15 +	rm $fs/usr/bin/qmake
    1.16 +	rm $fs/usr/bin/designer
    1.17 +	# Linguist and assistant are not yet seperate packages
    1.18 +	#rm $fs/usr/bin/linguist
    1.19 +	#rm $fs/usr/bin/assistant
    1.20  }
    1.21  
     2.1 --- a/libQtCore/receipt	Wed Apr 29 10:39:52 2009 +0000
     2.2 +++ b/libQtCore/receipt	Wed Apr 29 07:58:11 2009 +0000
     2.3 @@ -15,6 +15,6 @@
     2.4  {
     2.5  	mkdir -p $fs/usr/lib
     2.6  	cp -a $_pkg/usr/lib/libQtCore.so* $fs/usr/lib
     2.7 -	cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
     2.8 +	
     2.9  }
    2.10  
     3.1 --- a/qt-x11-opensource-src/receipt	Wed Apr 29 10:39:52 2009 +0000
     3.2 +++ b/qt-x11-opensource-src/receipt	Wed Apr 29 07:58:11 2009 +0000
     3.3 @@ -15,7 +15,23 @@
     3.4  compile_rules()
     3.5  {
     3.6  	cd $src
     3.7 -	yes yes | ./configure --prefix=/usr &&
     3.8 +	./configure \
     3.9 +             -prefix /usr \
    3.10 +			-confirm-license \
    3.11 +			-silent \
    3.12 +			-sysconfdir /etc \
    3.13 +			-plugindir /usr/lib/qt/plugins \
    3.14 +			-translationdir /usr/share/qt/translations \
    3.15 +			-datadir /usr/share/qt \
    3.16 +			-docdir /usr/share/doc/qt \
    3.17 +			-examplesdir /usr/share/doc/qt/examples \
    3.18 +			-demosdir /usr/share/doc/qt/demos \
    3.19 +			-no-separate-debug-info \
    3.20 +			-nomake demos \
    3.21 +			-nomake examples \
    3.22 +			-nomake docs \
    3.23 +			-no-phonon \
    3.24 +			-optimized-qmake &&
    3.25  	make &&
    3.26  	make INSTALL_ROOT=$PWD/_pkg install
    3.27  }
    3.28 @@ -25,5 +41,9 @@
    3.29  {
    3.30  	# dummy tree to avoid 'tazwok cmp --cook' building loop
    3.31  	mkdir $fs/etc
    3.32 +	# pkgconfig path fixes
    3.33 +	sed -i -e "s|-L$src/_pkg/usr/lib||g" $_pkg/usr/lib/pkgconfig/*.pc
    3.34 +	sed -i -e "s|$src/_pkg/usr/bin/moc|/usr/bin/moc|g" $_pkg/usr/lib/pkgconfig/*.pc
    3.35 +	sed -i -e "s|$src/_pkg/usr/bin/uic|/usr/bin/uic|g" $_pkg/usr/lib/pkgconfig/*.pc
    3.36  }
    3.37