2014-02-26 12:01:53 -08:00
|
|
|
SUBDIRS=10-Missing_Fonts
|
|
|
|
|
2014-03-04 16:00:27 -08:00
|
|
|
#PATCH:=patch -N -p0 --strip=1
|
|
|
|
#PATCH:=git apply
|
2014-05-02 17:14:24 -07:00
|
|
|
CURDIR ?= ${.CURDIR}
|
2014-03-04 16:00:27 -08:00
|
|
|
PATCH:=$(CURDIR)/../debian/tools/gitapply.sh
|
2014-02-07 20:16:15 -08:00
|
|
|
|
2014-02-07 19:37:54 -08:00
|
|
|
install:
|
2014-02-15 17:38:28 -08:00
|
|
|
# Update the list of patches
|
2014-03-04 14:35:20 -08:00
|
|
|
cd $(CURDIR)/..; ./debian/tools/generate-patchlist.sh > $(CURDIR)/patch-list.patch;
|
2014-02-15 17:38:28 -08:00
|
|
|
|
2014-02-07 19:37:54 -08:00
|
|
|
# Apply our patches to Wine
|
2014-02-17 09:09:44 -08:00
|
|
|
cd $(DESTDIR); \
|
2014-02-07 19:37:54 -08:00
|
|
|
for DIR in $$(find $(CURDIR) -type d | sort); do \
|
|
|
|
for FILE in $$(ls $$DIR | sort | grep '\.patch$$'); do \
|
2014-02-07 19:51:20 -08:00
|
|
|
SHORTNAME=$$(echo "$$DIR/$$FILE" | sed 's|$(CURDIR)|\.|g' ); \
|
|
|
|
printf "Applying patch '$$SHORTNAME'...\n"; \
|
2014-02-20 19:54:31 -08:00
|
|
|
$(PATCH) < $$DIR/$$FILE || exit 1; \
|
2014-02-07 19:37:54 -08:00
|
|
|
done \
|
|
|
|
done
|
|
|
|
|
|
|
|
# Update the configure script
|
2014-06-05 14:38:43 -07:00
|
|
|
cd $(DESTDIR); autoreconf -f;
|
2014-02-07 19:37:54 -08:00
|
|
|
|
|
|
|
# Update the wineserver protocol request data
|
|
|
|
cd $(DESTDIR); ./tools/make_requests;
|
2014-02-07 19:43:37 -08:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
# Remove our patches from Wine
|
2014-03-04 16:00:27 -08:00
|
|
|
cd $(DESTDIR); \
|
2014-02-07 19:43:37 -08:00
|
|
|
for DIR in $$(find $(CURDIR) -type d | sort -r); do \
|
|
|
|
for FILE in $$(ls $$DIR | sort -r | grep '\.patch$$'); do \
|
2014-02-07 19:51:20 -08:00
|
|
|
SHORTNAME=$$(echo "$$DIR/$$FILE" | sed 's|$(CURDIR)|\.|g' ); \
|
|
|
|
printf "Reversing patch '$$SHORTNAME'...\n"; \
|
2014-03-04 16:00:27 -08:00
|
|
|
$(PATCH) -R < $$DIR/$$FILE || exit 1; \
|
2014-02-07 19:43:37 -08:00
|
|
|
done \
|
|
|
|
done
|
|
|
|
|
|
|
|
# Update the configure script
|
|
|
|
cd $(DESTDIR); autoreconf;
|
|
|
|
|
|
|
|
# Update the wineserver protocol request data
|
|
|
|
cd $(DESTDIR); ./tools/make_requests;
|
|
|
|
|