destDirFix.patch   [plain text]


--- src/Makefile.in	2013-11-25 19:15:26.000000000 +0100
+++ src/Makefile.in	2013-12-06 12:05:51.000000000 +0100
@@ -16,6 +16,7 @@
 
 # $Id: Makefile.am 6752 2013-09-16 18:27:04Z rousseau $
 
+DRIVER_DEST="$(DSTROOT)"
 
 VPATH = @srcdir@
 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
@@ -1178,9 +1179,9 @@
 	$(srcdir)/create_Info_plist.pl $(srcdir)/../readers/supported_readers.txt $(srcdir)/Info.plist.src --target=$(CCID_LIB) --version=$(VERSION) $(NOCLASS) > Info.plist
 
 install_ccid: libccid.la Info.plist
-	$(mkinstalldirs) "$(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/"
-	cp Info.plist "$(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/"
-	cp .libs/$(CCID_LIB) "$(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/$(CCID_LIB)"
+	$(mkinstalldirs) "$(DRIVER_DEST)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/"
+	cp Info.plist "$(DRIVER_DEST)$(usbdropdir)/$(CCID_BUNDLE)/Contents/"
+	cp .libs/$(CCID_LIB) "$(DRIVER_DEST)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/$(CCID_LIB)"
 	$(INSTALL_UDEV_RULE_FILE)
 
 install_ccidtwin: libccidtwin.la