Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TOPSRCDIR = @top_srcdir@
- TOPOBJDIR = ..
- SRCDIR = @srcdir@
- VPATH = @srcdir@
- MODULE = none
- SUBDIRS = winesplash
- INSTALLSUBDIRS = \
- winesplash
- INSTALLDIRS = \
- $(DESTDIR)$(datadir)/wine \
- $(DESTDIR)$(initdir) \
- $(DESTDIR)$(sysconfdir)/wine \
- $(DESTDIR)$(sysconfdir)/sysctl.d \
- $(DESTDIR)$(sysconfdir)/wine/reg.d \
- $(DESTDIR)$(sysconfdir)/wine/script.d \
- $(DESTDIR)$(datadir)/applications \
- $(DESTDIR)$(datadir)/icons
- scripts/wine: scripts/wine.in
- sed -e "s,@bindir\@,$(bindir),g" -e "s,@datadir\@,$(datadir),g" -e "s,@sysconfdir\@,$(sysconfdir),g" $^ >$@ || ($(RM) $@ && false)
- chmod +x $@
- all: $(SUBDIRS) scripts/wine
- make -C $(SUBDIRS) all
- distclean::
- @MAKE_RULES@
- # due various xargs options
- XARGS=`echo | xargs -IQQQ 2>/dev/null && echo "xargs -IQQQ" || echo "xargs -iQQQ"`
- install install-lib:: $(INSTALLDIRS)
- install-etersoft:: $(INSTALLDIRS) scripts/wine
- make -C $(INSTALLSUBDIRS) install
- cd root ; find ./ -type d | $(XARGS) mkdir -p "$(DESTDIR)$(datadir)/wine/skel/QQQ"
- cd root ; find ./ -type f | $(XARGS) $(INSTALL_DATA) -m 0644 "QQQ" "$(DESTDIR)$(datadir)/wine/skel/QQQ"
- chmod a+x $(DESTDIR)$(datadir)/wine/skel/windows/command/*
- # TODO: comment it and check
- # enable stack execution (for newest kernels > 2.6.12?) - need prelink package already installed
- test -e /usr/bin/execstack && /usr/bin/execstack -s $(DESTDIR)$(bindir)/wine-pthread || echo "WARNING: your have no %_bindir/execstack utility from prelink package"
- # enable stack execution in wine binary (old kernel patches)
- test -e /usr/bin/chstk && /usr/bin/chstk -e $(DESTDIR)$(bindir)/wine-kthread $(DESTDIR)$(bindir)/wine-pthread || true
- cd ies4linux ; $(MAKE) prefix=$(DESTDIR)$(prefix) libdir=$(DESTDIR)$(libdir) datadir=$(DESTDIR)$(datadir)
- # user helper scripts
- # will replace with our launcher
- [ -r $(DESTDIR)$(bindir)/wine64 ] && mv $(DESTDIR)$(bindir)/wine64 $(DESTDIR)$(bindir)/wine-glibc || mv $(DESTDIR)$(bindir)/wine $(DESTDIR)$(bindir)/wine-glibc
- $(INSTALL_SCRIPT) scripts/* $(DESTDIR)$(bindir)/
- test -r $(DESTDIR)$(bindir)/wine
- # remove template files
- rm -f $(DESTDIR)$(bindir)/*.in
- $(INSTALL_DATA) desktop/winesplash.xpm $(DESTDIR)$(datadir)/wine/winesplash.xpm
- $(INSTALL_DATA) desktop/menu.directory $(DESTDIR)$(datadir)/wine/menu.directory
- # install logo if exists
- test ! -r desktop/logo.bmp || $(INSTALL_DATA) desktop/logo.bmp $(DESTDIR)$(datadir)/wine/logo.bmp
- test ! -r desktop/companylogo.bmp || $(INSTALL_DATA) desktop/companylogo.bmp $(DESTDIR)$(datadir)/wine/companylogo.bmp
- #
- $(INSTALL_SCRIPT) init/wine.init $(DESTDIR)$(initdir)/wine
- $(INSTALL_DATA) init/wine.outformat $(DESTDIR)$(initdir)/
- #
- $(INSTALL_DATA) reg.d/* $(DESTDIR)$(sysconfdir)/wine/reg.d/
- $(INSTALL_DATA) script.d/* $(DESTDIR)$(sysconfdir)/wine/script.d/
- #$(INSTALL_DATA) sysctl.d/* $(DESTDIR)$(sysconfdir)/sysctl.d/
- # install our config file
- $(INSTALL_DATA) init/config $(DESTDIR)$(sysconfdir)/wine/config
- # install all desktop files
- $(INSTALL_DATA) desktop/*.desktop $(DESTDIR)$(datadir)/applications/
- # install all icon files
- $(INSTALL_DATA) icons/*.png $(DESTDIR)$(datadir)/icons/
- # Do not use wineprefixcreate
- rm -f $(DESTDIR)$(bindir)/wineprefixcreate
- @rm -f $(DESTDIR)$(datadir)/man/man1/wineprefixcreate.*
- # we cannot recognize real man path here :(
- @rm -f $(DESTDIR)$(prefix)/man/man1/wineprefixcreate.*
- # at first run wine does like wineprefixcreate
- ln -s wine $(DESTDIR)$(bindir)/wineprefixcreate
- # for shared dir
- $(INSTALL) -d $(DESTDIR)$(prefix)/../var/lib/wine/
- # comment it out to fix bug #1536
- # due bug with instmsia (needed for Win98)
- #rm -f $(libdir)/wine/mscoree.dll.so
- # Font helper (rarely used)
- $(INSTALL_SCRIPT) ../tools/fnt2bdf $(DESTDIR)$(bindir)/fnt2bdf
- #$(INSTALL) -d -m 755 $(DESTDIR)$(sysconfdir)/xdg/menus/applications-merged/
- #$(INSTALL) -m 644 wine.menu $(DESTDIR)$(sysconfdir)/xdg/menus/applications-merged/wine.menu
- $(INSTALL) -d -m 755 $(DESTDIR)$(datadir)/desktop-directories/
- $(INSTALL_DATA) desktop/wine.directory $(DESTDIR)$(datadir)/desktop-directories/wine.directory
- cp -f ../tools/winedump/README ../README.winedump
- # Check for freetype is compiled in and fail if no
- strings $(DESTDIR)$(libdir)/wine/gdi32.dll.so | grep "freetype" >/dev/null
- # Check for ncursesw is compiled in and warning if no
- strings $(DESTDIR)$(libdir)/wineconsole.exe.so | grep "ncursesw" >/dev/null | echo "NCURSESW missing: not found"
- rm -f $(DESTDIR)$(bindir)/function_grep.pl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement