2014-02-07 20:16:15 -08:00
|
|
|
PATCH:=patch -N -p0 --strip=1
|
|
|
|
|
2014-02-07 19:37:54 -08:00
|
|
|
install:
|
|
|
|
# Apply our patches to Wine
|
|
|
|
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-07 20:16:15 -08:00
|
|
|
cd $(DESTDIR); $(PATCH) < $$DIR/$$FILE || cat || exit 1; \
|
2014-02-07 19:37:54 -08:00
|
|
|
done \
|
|
|
|
done
|
|
|
|
|
|
|
|
# Update the configure script
|
|
|
|
cd $(DESTDIR); autoreconf;
|
|
|
|
|
|
|
|
# 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
|
|
|
|
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-02-07 20:16:15 -08:00
|
|
|
cd $(DESTDIR); $(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;
|
|
|
|
|