openbsd-ports/archivers/unrar/patches/patch-makefile_unix

25 lines
813 B
Plaintext

$OpenBSD: patch-makefile_unix,v 1.16 2012/11/26 17:17:41 naddy Exp $
--- makefile.unix.orig Tue May 15 07:31:03 2012
+++ makefile.unix Sun Nov 25 23:28:26 2012
@@ -5,9 +5,10 @@
CXX=g++
CXXFLAGS=-O2
LIBFLAGS=-fPIC
-DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DOPENSSL
STRIP=strip
DESTDIR=/usr
+LIBS=-lcrypto
# Linux using LCC
#CXX=lcc
@@ -103,6 +104,8 @@ OBJECTS=rar.o strlist.o strfn.o pathfn.o savepos.o sma
archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o rawread.o encname.o \
resource.o match.o timefn.o rdwrfn.o consio.o options.o ulinks.o errhnd.o rarvm.o secpassword.o \
rijndael.o getbits.o sha1.o extinfo.o extract.o volume.o list.o find.o unpack.o cmddata.o
+
+.SUFFIXES: .cpp
.cpp.o:
$(COMPILE) -D$(WHAT) -c $<