termux-packages/packages/unrar/makefile.patch

42 lines
1.0 KiB
Diff
Raw Normal View History

--- ./makefile.orig 2021-05-25 19:02:31.081243251 +0000
+++ ./makefile 2021-05-25 19:02:50.741677177 +0000
@@ -2,14 +2,13 @@
2015-06-13 01:03:31 +02:00
# Makefile for UNIX - unrar
# Linux using GCC
2017-01-31 13:12:45 +01:00
-CXX=c++
2018-03-12 11:39:33 +01:00
-CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
2015-06-13 01:03:31 +02:00
-LIBFLAGS=-fPIC
2017-01-31 13:12:45 +01:00
+CXX?=c++
2018-03-12 11:39:33 +01:00
+CXXFLAGS?=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
2015-06-13 01:03:31 +02:00
+LIBFLAGS=$(LDFLAGS)
DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
-STRIP=strip
2017-06-12 02:14:45 +02:00
-AR=ar
2015-06-13 01:03:31 +02:00
-LDFLAGS=-pthread
-DESTDIR=/usr
2017-01-31 13:12:45 +01:00
+STRIP?=strip
2017-06-12 02:14:45 +02:00
+AR?=ar
2017-01-31 13:12:45 +01:00
+LDFLAGS?=-pthread
2015-06-13 01:03:31 +02:00
# Linux using LCC
2017-06-12 02:14:45 +02:00
#CXX=lcc
@@ -161,14 +160,14 @@
$(AR) rcs libunrar.a $(OBJECTS) $(LIB_OBJ)
install-unrar:
- install -D unrar $(DESTDIR)/bin/unrar
+ install -D unrar $(DESTDIR)$(PREFIX)/bin/unrar
uninstall-unrar:
rm -f $(DESTDIR)/bin/unrar
install-lib:
- install libunrar.so $(DESTDIR)/lib
- install libunrar.a $(DESTDIR)/lib
+ install libunrar.so $(DESTDIR)$(PREFIX)/lib
+ install libunrar.a $(DESTDIR)$(PREFIX)/lib
uninstall-lib:
rm -f $(DESTDIR)/lib/libunrar.so