mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
o update to 0.91.
o respect CFLAGS. o passing PTHREAD_* bits via makefile.machine. With this four patches no longer required. Approved by: maintainer
This commit is contained in:
parent
434fac9146
commit
6fa57456f7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120371
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= p7zip
|
||||
PORTVERSION= 0.90
|
||||
PORTVERSION= 0.91
|
||||
CATEGORIES= archivers
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= p7zip
|
||||
@ -18,15 +18,22 @@ COMMENT= Command line versions of 7-zip
|
||||
USE_BZIP2= yes
|
||||
USE_GMAKE= yes
|
||||
MAKEFILE= makefile
|
||||
MAKE_ARGS+= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS}
|
||||
ONLY_FOR_ARCHS= alpha amd64 i386 ia64
|
||||
|
||||
USE_REINPLACE= yes
|
||||
MMACHINE= ${WRKSRC}/makefile.machine
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 500039
|
||||
BROKEN= 'Requires wchar functions (mbrtowc(3) etc.) for compilation'
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${ECHO} "LOCAL_LIBS= ${PTHREAD_LIBS}" > ${MMACHINE}
|
||||
${ECHO} "LOCAL_FLAGS+= ${PTHREAD_CFLAGS}" >> ${MMACHINE}
|
||||
${REINPLACE_CMD} -e 's/-O2/${CXXFLAGS}/' ${WRKSRC}/makefile.glb
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/libexec/p7zip/Codecs
|
||||
${MKDIR} ${PREFIX}/libexec/p7zip/Formats
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (p7zip_0.90.tar.bz2) = 6600fd9711b5cebd52aac2ce4d9ba727
|
||||
SIZE (p7zip_0.90.tar.bz2) = 447371
|
||||
MD5 (p7zip_0.91.tar.bz2) = 8c6a7b49f360917cbdd8391f3a926a19
|
||||
SIZE (p7zip_0.91.tar.bz2) = 448147
|
||||
|
@ -1,12 +0,0 @@
|
||||
Index: myWindows/makefile
|
||||
@@ -1,8 +1,8 @@
|
||||
PROG=all.so
|
||||
|
||||
-LOCAL_FLAGS=-I. -I.. -I../include_windows
|
||||
+LOCAL_FLAGS=-I. -I.. -I../include_windows ${PTHREAD_CFLAGS}
|
||||
|
||||
-LOCAL_SHARED=-lpthread -lm
|
||||
+LOCAL_SHARED=${PTHREAD_LIBS}
|
||||
|
||||
OBJS=myEvents.o myFiles.o myFindFile.o myDirectoryAndPath.o \
|
||||
myLastError.o myModuleFileName.o my_itow.o \
|
@ -1,18 +0,0 @@
|
||||
Index: 7zip/UI/Console/makefile
|
||||
@@ -1,6 +1,6 @@
|
||||
PROG=../../../bin/7z
|
||||
|
||||
-LOCAL_FLAGS=
|
||||
+LOCAL_FLAGS=${PTHREAD_CFLAGS}
|
||||
|
||||
OPERATING_SYSTEM=$(shell uname -o)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# Cygwin does not support -ldl
|
||||
LOCAL_LIBS=-lpthread
|
||||
else
|
||||
-LOCAL_LIBS=-lpthread -ldl -lm
|
||||
+LOCAL_LIBS=${PTHREAD_LIBS}
|
||||
endif
|
||||
|
||||
MY_WINDOWS=$(MY_HOME)/myDirectoryAndPath.o \
|
@ -1,20 +0,0 @@
|
||||
Index: 7zip/Bundles/Alone/makefile
|
||||
@@ -6,7 +6,8 @@
|
||||
-DFORMAT_GZIP -DCOMPRESS_LZMA -DCOMPRESS_BCJ_X86 -DCOMPRESS_BCJ2 \
|
||||
-DCOMPRESS_COPY -DCOMPRESS_MF_PAT -DCOMPRESS_MF_BT -DCOMPRESS_MF_HC \
|
||||
-DCOMPRESS_MF_MT -DCOMPRESS_PPMD -DCOMPRESS_DEFLATE -DCOMPRESS_DEFLATE64 \
|
||||
--DCOMPRESS_IMPLODE -DCOMPRESS_BZIP2 -DCRYPTO_ZIP -DCRYPTO_7ZAES -DCRYPTO_AES
|
||||
+-DCOMPRESS_IMPLODE -DCOMPRESS_BZIP2 -DCRYPTO_ZIP -DCRYPTO_7ZAES -DCRYPTO_AES \
|
||||
+${PTHREAD_CFLAGS}
|
||||
|
||||
MY_WINDOWS=$(MY_HOME)/myEvents.o \
|
||||
$(MY_HOME)/myFiles.o \
|
||||
@@ -21,7 +22,7 @@
|
||||
$(MY_HOME)/wine_strings.o \
|
||||
$(MY_HOME)/stuff_for_cygwin.o
|
||||
|
||||
-LOCAL_SHARED=-lpthread -lm
|
||||
+LOCAL_SHARED=${PTHREAD_LIBS}
|
||||
|
||||
|
||||
OBJS=\
|
@ -1,19 +0,0 @@
|
||||
Index: Windows/Time.h
|
||||
@@ -41,7 +41,7 @@
|
||||
fileTime.dwHighDateTime = DWORD(ll >> 32);
|
||||
}
|
||||
|
||||
-inline bool FileTimeToUnixTime(const FILETIME &fileTime, long &unixTime)
|
||||
+inline bool FileTimeToUnixTime(const FILETIME &fileTime, time_t &unixTime)
|
||||
{
|
||||
UINT64 winTime = (((UINT64)fileTime.dwHighDateTime) << 32) + fileTime.dwLowDateTime;
|
||||
if (winTime < kUnixTimeStartValue)
|
||||
@@ -49,7 +49,7 @@
|
||||
winTime = (winTime - kUnixTimeStartValue) / kNumTimeQuantumsInSecond;
|
||||
if (winTime >= 0xFFFFFFFF)
|
||||
return false;
|
||||
- unixTime = (long)winTime;
|
||||
+ unixTime = (time_t)winTime;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user