Advertisement
Guest User

Untitled

a guest
Aug 31st, 2011
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.48 KB | None | 0 0
  1. TOPSRCDIR = @top_srcdir@
  2. TOPOBJDIR = ..
  3. SRCDIR    = @srcdir@
  4. VPATH     = @srcdir@
  5. MODULE    = none
  6.  
  7. SUBDIRS = winesplash
  8. INSTALLSUBDIRS = \
  9.     winesplash
  10.  
  11. INSTALLDIRS = \
  12.     $(DESTDIR)$(datadir)/wine \
  13.     $(DESTDIR)$(initdir) \
  14.     $(DESTDIR)$(sysconfdir)/wine \
  15.     $(DESTDIR)$(sysconfdir)/sysctl.d \
  16.     $(DESTDIR)$(sysconfdir)/wine/reg.d \
  17.     $(DESTDIR)$(sysconfdir)/wine/script.d \
  18.     $(DESTDIR)$(datadir)/applications \
  19.     $(DESTDIR)$(datadir)/icons
  20.  
  21. scripts/wine: scripts/wine.in
  22.     sed -e "s,@bindir\@,$(bindir),g" -e "s,@datadir\@,$(datadir),g" -e "s,@sysconfdir\@,$(sysconfdir),g" $^ >$@ || ($(RM) $@ && false)
  23.     chmod +x $@
  24.  
  25. all: $(SUBDIRS) scripts/wine
  26.     make -C $(SUBDIRS) all
  27.  
  28. distclean::
  29.    
  30.  
  31. @MAKE_RULES@
  32.  
  33. # due various xargs options
  34. XARGS=`echo | xargs -IQQQ 2>/dev/null && echo "xargs -IQQQ" || echo "xargs -iQQQ"`
  35.  
  36. install install-lib:: $(INSTALLDIRS)
  37.  
  38.  
  39. install-etersoft:: $(INSTALLDIRS) scripts/wine
  40.     make -C $(INSTALLSUBDIRS) install
  41.     cd root ; find  ./ -type d | $(XARGS) mkdir -p "$(DESTDIR)$(datadir)/wine/skel/QQQ"
  42.     cd root ; find  ./ -type f | $(XARGS) $(INSTALL_DATA) -m 0644 "QQQ" "$(DESTDIR)$(datadir)/wine/skel/QQQ"
  43.     chmod a+x $(DESTDIR)$(datadir)/wine/skel/windows/command/*
  44.  
  45.     # TODO: comment it and check
  46.     # enable stack execution (for newest kernels > 2.6.12?) - need prelink package already installed
  47.     test -e /usr/bin/execstack && /usr/bin/execstack -s $(DESTDIR)$(bindir)/wine-pthread || echo "WARNING: your have no %_bindir/execstack utility from prelink package"
  48.     # enable stack execution in wine binary (old kernel patches)
  49.     test -e /usr/bin/chstk && /usr/bin/chstk -e $(DESTDIR)$(bindir)/wine-kthread $(DESTDIR)$(bindir)/wine-pthread || true
  50.  
  51.     cd ies4linux ; $(MAKE) prefix=$(DESTDIR)$(prefix) libdir=$(DESTDIR)$(libdir) datadir=$(DESTDIR)$(datadir)
  52.     # user helper scripts
  53.  
  54.     # will replace with our launcher
  55.     [ -r $(DESTDIR)$(bindir)/wine64 ] && mv $(DESTDIR)$(bindir)/wine64 $(DESTDIR)$(bindir)/wine-glibc || mv $(DESTDIR)$(bindir)/wine $(DESTDIR)$(bindir)/wine-glibc
  56.  
  57.     $(INSTALL_SCRIPT) scripts/* $(DESTDIR)$(bindir)/
  58.     test -r $(DESTDIR)$(bindir)/wine
  59.     # remove template files
  60.     rm -f $(DESTDIR)$(bindir)/*.in
  61.    
  62.     $(INSTALL_DATA) desktop/winesplash.xpm $(DESTDIR)$(datadir)/wine/winesplash.xpm
  63.     $(INSTALL_DATA) desktop/menu.directory $(DESTDIR)$(datadir)/wine/menu.directory
  64.     # install logo if exists
  65.     test ! -r desktop/logo.bmp || $(INSTALL_DATA) desktop/logo.bmp $(DESTDIR)$(datadir)/wine/logo.bmp
  66.     test ! -r desktop/companylogo.bmp || $(INSTALL_DATA) desktop/companylogo.bmp $(DESTDIR)$(datadir)/wine/companylogo.bmp
  67.     #
  68.     $(INSTALL_SCRIPT) init/wine.init $(DESTDIR)$(initdir)/wine
  69.     $(INSTALL_DATA) init/wine.outformat $(DESTDIR)$(initdir)/
  70.  
  71.     #
  72.     $(INSTALL_DATA) reg.d/* $(DESTDIR)$(sysconfdir)/wine/reg.d/
  73.     $(INSTALL_DATA) script.d/* $(DESTDIR)$(sysconfdir)/wine/script.d/
  74.     #$(INSTALL_DATA) sysctl.d/* $(DESTDIR)$(sysconfdir)/sysctl.d/
  75.  
  76.     # install our config file
  77.     $(INSTALL_DATA) init/config $(DESTDIR)$(sysconfdir)/wine/config
  78.  
  79.     # install all desktop files
  80.     $(INSTALL_DATA) desktop/*.desktop $(DESTDIR)$(datadir)/applications/
  81.  
  82.     # install all icon files
  83.     $(INSTALL_DATA) icons/*.png $(DESTDIR)$(datadir)/icons/
  84.  
  85.     # Do not use wineprefixcreate
  86.     rm -f $(DESTDIR)$(bindir)/wineprefixcreate
  87.     @rm -f $(DESTDIR)$(datadir)/man/man1/wineprefixcreate.*
  88.     # we cannot recognize real man path here :(
  89.     @rm -f $(DESTDIR)$(prefix)/man/man1/wineprefixcreate.*
  90.     # at first run wine does like wineprefixcreate
  91.     ln -s wine $(DESTDIR)$(bindir)/wineprefixcreate
  92.  
  93.     # for shared dir
  94.     $(INSTALL) -d $(DESTDIR)$(prefix)/../var/lib/wine/
  95.  
  96.     # comment it out to fix bug #1536
  97.     # due bug with instmsia (needed for Win98)
  98.     #rm -f $(libdir)/wine/mscoree.dll.so
  99.  
  100.     # Font helper (rarely used)
  101.     $(INSTALL_SCRIPT) ../tools/fnt2bdf $(DESTDIR)$(bindir)/fnt2bdf
  102.  
  103.     #$(INSTALL) -d -m 755 $(DESTDIR)$(sysconfdir)/xdg/menus/applications-merged/
  104.     #$(INSTALL) -m 644 wine.menu $(DESTDIR)$(sysconfdir)/xdg/menus/applications-merged/wine.menu
  105.     $(INSTALL) -d -m 755 $(DESTDIR)$(datadir)/desktop-directories/
  106.     $(INSTALL_DATA) desktop/wine.directory $(DESTDIR)$(datadir)/desktop-directories/wine.directory
  107.  
  108.     cp -f ../tools/winedump/README ../README.winedump
  109.  
  110.     # Check for freetype is compiled in and fail if no
  111.     strings $(DESTDIR)$(libdir)/wine/gdi32.dll.so | grep "freetype" >/dev/null
  112.  
  113.     # Check for ncursesw is compiled in and warning if no
  114.     strings $(DESTDIR)$(libdir)/wineconsole.exe.so | grep "ncursesw" >/dev/null | echo "NCURSESW missing: not found"
  115.  
  116.     rm -f $(DESTDIR)$(bindir)/function_grep.pl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement