关于深度桌面deepin-webkit的移植问题
Tofloor
poster avatar
JoveYu
deepin
2013-11-20 00:31
Author
最近没事准备移植下dde
基本上没有太大问题,目前遇到的一个问题就是dde依赖deepin-webkit
目前deepin-webkit的资料文档太少,想问下开发者,编译的一些参数,路径,以及基本的依赖

如果能有详细的编译方法最好不过!
Reply Favorite View the author
All Replies
cxbii
deepin
2013-11-20 17:48
#1
Reply View the author
JoveYu
deepin
2013-11-22 03:51
#2
我是想咨询下编译的问题   开发者来解释下最好了
Reply View the author
fasheng
deepin
2013-12-19 23:32
#3
我看到源码包中debian目录下的编译命令是
  1. ./configure --prefix=/usr \
  2.     --disable-silent-rules \
  3.     --host=x86_64-linux-gnu \
  4.     --build=x86_64-linux-gnu \
  5.     --with-gtk=3.0 \
  6.     --disable-webgl
  7. make
Copy the Code

另外 archlinux 下编译需要依赖libicu48,官方changlog有提到
webkit (1.6.1-5build1) precise; urgency=low
         
  * Rebuild for libicu48.
         
-- Colin Watson   Tue, 22 Nov 2011 11:02:11 +0000

此外 AUR 上已经有人维护 deepin-webkit,也可以参考
https://aur.archlinux.org/packages/deepin-webkit/
  1. # Maintainer: Josip Ponjavic
  2. pkgname=deepin-webkit
  3. pkgver=git20131010153235~9ac8cf628b
  4. _realver=1.8.2.1+$pkgver
  5. pkgrel=1
  6. pkgdesc="A fork of webkit-gtk for deepin-desktop-eviroment"
  7. arch=('i686' 'x86_64')
  8. url="http://webkitgtk.org/"
  9. license=(LGPL-2+ BSD)
  10. depends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk3'
  11.          'gstreamer0.10-base-plugins' 'libsecret' 'libwebp' 'harfbuzz-icu')
  12. makedepends=('gtk2' 'gperf' 'gobject-introspection' 'python2' 'mesa' 'gtk-doc' 'gawk'
  13.              'chrpath' 'bison' 'perl' 'flex' 'which' 'gettext')
  14. optdepends=('gtk2: Netscape plugin support')
  15. provides=("${pkgname%-*}")
  16. options=(!libtool !emptydirs)
  17. source=("http://packages.linuxdeepin.com/deepin/pool/main/d/${pkgname}/${pkgname}_${_realver}.tar.gz"
  18.         "webkit-gtk-1.8.2-bison-2.6.patch"
  19.         "DerivedSources.tar.gz")
  20. sha256sums=('782c4e8c22fbcc2e20338f24aa9f3ffd8929638269edefc107449eadf967c964'
  21.             '2a9c0c1b9d5259fd1254ebea228fc83313267fbe8cfec1bb43356de1f355b93e'
  22.             '7a5fbc735dcda90faeafb26778a741ebe1a5fcf0cfb44de5369db42aa60561df')
  23. build() {
  24.   cd ${pkgname}-${_realver}
  25.   
  26.   export CFLAGS="$CFLAGS -Wall -Wl,--as-needed"
  27.   export LDFLAGS="$LDFLAGS -Wl,--no-keep-memory"
  28.    
  29.   patch -p1 -i $srcdir/webkit-gtk-1.8.2-bison-2.6.patch
  30.   PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
  31.    --disable-silent-rules \
  32.    --with-gtk=3.0 \
  33.    --disable-webgl
  34.   make
  35. }
  36. package() {
  37.   cd ${pkgname}-${_realver}
  38.   
  39.   make DESTDIR="$pkgdir" install
  40.   rm -rf "$pkgdir"/usr/{bin,include,share}
  41.   mv $pkgdir/usr/lib/pkgconfig/webkitgtk-3.0.pc $pkgdir/usr/lib/pkgconfig/deepin-webkit-3.0.pc
  42.   install -Dm644 Source/WebKit/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  43. }
Copy the Code

不过webkit编译时间过长(大于一小时),所以个人觉得不如添加 libicu48 依赖,直接移植deb包,可以参考这里
https://github.com/fasheng/arch-deepin/ ... t/PKGBUILD
Reply View the author