1
Author: Free Ekanayaka <freee@debian.org>
2
Description: Set PREFIX properly, add DESTDIR var, create /usr/include
3
before installing the headers.
6
1 file changed, 4 insertions(+), 2 deletions(-)
8
--- clalsadrv.orig/Makefile
11
# along with this program; if not, write to the Free Software
12
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
-SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
20
+PREFIX = $(DESTDIR)/usr
21
+#SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
25
@@ -47,6 +48,7 @@ $(CLALSADRV_MIN): $(CLALSADRV_O)
27
install: $(CLALSADRV_MIN)
28
/usr/bin/install -d $(PREFIX)/$(LIBDIR)
29
+ /usr/bin/install -d $(PREFIX)/include
30
/usr/bin/install -m 644 $(CLALSADRV_H) $(PREFIX)/include
31
/usr/bin/install -m 755 $(CLALSADRV_MIN) $(PREFIX)/$(LIBDIR)
32
/sbin/ldconfig -n $(PREFIX)/$(LIBDIR)