aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2009-02-18 20:36:38 +0800
committeritetcu <itetcu@FreeBSD.org>2009-02-18 20:36:38 +0800
commite849686211fd15a0c58d2dc2f18cd35c9d106f37 (patch)
tree232bbab37eee219ab5dbfef68ecbf0f216a2b453 /archivers
parent73e2eca86bf05a32a8589ce8b498589c8f7ec30c (diff)
downloadfreebsd-ports-graphics-e849686211fd15a0c58d2dc2f18cd35c9d106f37.tar.gz
freebsd-ports-graphics-e849686211fd15a0c58d2dc2f18cd35c9d106f37.tar.zst
freebsd-ports-graphics-e849686211fd15a0c58d2dc2f18cd35c9d106f37.zip
Force commit to backout previous one, this update depends on devel/tbb being
updated to v2.1 (ports/129686).
Diffstat (limited to 'archivers')
-rw-r--r--archivers/par2cmdline-tbb/Makefile17
-rw-r--r--archivers/par2cmdline-tbb/distinfo6
-rw-r--r--archivers/par2cmdline-tbb/files/patch-Makefile.am44
-rw-r--r--archivers/par2cmdline-tbb/files/patch-configure11
-rw-r--r--archivers/par2cmdline-tbb/files/patch-md5.h47
-rw-r--r--archivers/par2cmdline-tbb/files/patch-par2cmdline.h11
6 files changed, 70 insertions, 66 deletions
diff --git a/archivers/par2cmdline-tbb/Makefile b/archivers/par2cmdline-tbb/Makefile
index 1336183b998..8deb29c75ae 100644
--- a/archivers/par2cmdline-tbb/Makefile
+++ b/archivers/par2cmdline-tbb/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= par2cmdline-tbb
-PORTVERSION= 20090203
+PORTVERSION= 20080420
CATEGORIES= archivers
MASTER_SITES= http://chuchusoft.com/par2_tbb/
DISTNAME= par2cmdline-0.4-tbb-${PORTVERSION}
@@ -14,21 +14,22 @@ DISTNAME= par2cmdline-0.4-tbb-${PORTVERSION}
MAINTAINER= ganael.laplanche@martymac.com
COMMENT= Tools for using Parity v2 Archive files (tbb version)
-BUILD_DEPENDS= ${LOCALBASE}/lib/libtbb.so:${PORTSDIR}/devel/tbb
+BUILD_DEPENDS= ${LOCALBASE}/lib/libtbb.so:${PORTSDIR}/devel/tbb \
+ ${NONEXISTENT}:${PORTSDIR}/devel/tbb:extract
-ONLY_FOR_ARCHS= i386 amd64 ia64
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-USE_AUTOTOOLS= aclocal:110 automake:110 autoconf:262
-USE_GCC= 4.2+
+ LDFLAGS="-L${LOCALBASE}/lib"
PORTDOCS= README
CONFLICTS= par2cmdline-[0-9]*
PLIST_FILES= bin/par2 bin/par2create bin/par2repair bin/par2verify
-post-extract:
- @${CHMOD} u+x ${WRKSRC}/install-sh
+TBBWRKSRC= `(cd ${PORTSDIR}/devel/tbb && ${MAKE} -V WRKSRC)`
+
+post-configure:
+ @${CP} ${TBBWRKSRC}/src/tbb/tbb_misc.h ${WRKSRC}/tbb_misc.h
+ @${REINPLACE_CMD} -e 's|#include "tbb/tbb_misc\.h"|#include "tbb_misc.h"|' ${WRKSRC}/par2cmdline.h
post-install:
.if !defined(NOPORTDOCS)
diff --git a/archivers/par2cmdline-tbb/distinfo b/archivers/par2cmdline-tbb/distinfo
index e78f63ce5ec..3836c4f7c0c 100644
--- a/archivers/par2cmdline-tbb/distinfo
+++ b/archivers/par2cmdline-tbb/distinfo
@@ -1,3 +1,3 @@
-MD5 (par2cmdline-0.4-tbb-20090203.tar.gz) = f32c83c524f55171e8d639d6bfe9a7d8
-SHA256 (par2cmdline-0.4-tbb-20090203.tar.gz) = 6105dd1a4debd773a35d3274ef8d3ab97f1f25c55d130e2596201a5b850838a4
-SIZE (par2cmdline-0.4-tbb-20090203.tar.gz) = 320864
+MD5 (par2cmdline-0.4-tbb-20080420.tar.gz) = 806d0a4810da2d8fca2375ca12e07fcd
+SHA256 (par2cmdline-0.4-tbb-20080420.tar.gz) = 37220ff064b256e24f59b4c733baeffd124efa1551ff32d469ca574f40aae3c1
+SIZE (par2cmdline-0.4-tbb-20080420.tar.gz) = 283148
diff --git a/archivers/par2cmdline-tbb/files/patch-Makefile.am b/archivers/par2cmdline-tbb/files/patch-Makefile.am
deleted file mode 100644
index 9afd0d08c7b..00000000000
--- a/archivers/par2cmdline-tbb/files/patch-Makefile.am
+++ /dev/null
@@ -1,44 +0,0 @@
---- Makefile.am.orig 2009-02-09 13:44:21.426445712 +0100
-+++ Makefile.am 2009-02-09 13:45:18.592707625 +0100
-@@ -22,23 +22,23 @@
- bin_PROGRAMS = par2
-
- if AMD64
--ARCH = x86_64
-+ARCH_SCALAR = x86_64
- ARCH_MMX = x86_64
- endif
- if X86MMX
--ARCH = i386
-+ARCH_SCALAR = i386
- ARCH_MMX = i686
- else
- if X86CPU
--ARCH = i386
-+ARCH_SCALAR = i386
- ARCH_MMX = i686
- endif
- endif
- if PPC64
--ARCH = ppc64
-+ARCH_SCALAR = ppc64
- endif
- if PPC32
--ARCH = ppc
-+ARCH_SCALAR = ppc
- endif
-
- if PLATFORM_DARWIN
-@@ -55,10 +55,10 @@
- endif
-
- if AMD64
--ASMSOURCES = reedsolomon-$(ARCH)-scalar-$(PLATFORM).s reedsolomon-$(ARCH_MMX)-mmx-$(PLATFORM).s
-+ASMSOURCES = reedsolomon-$(ARCH_SCALAR)-scalar-$(PLATFORM).s reedsolomon-$(ARCH_MMX)-mmx-$(PLATFORM).s
- endif
- if X86CPU
--ASMSOURCES = reedsolomon-$(ARCH)-scalar-$(PLATFORM).s reedsolomon-$(ARCH_MMX)-mmx-$(PLATFORM).s $(ASMSOURCES_PLATFORM)
-+ASMSOURCES = reedsolomon-$(ARCH_SCALAR)-scalar-$(PLATFORM).s reedsolomon-$(ARCH_MMX)-mmx-$(PLATFORM).s $(ASMSOURCES_PLATFORM)
- endif
-
- if GPGPU_CUDA
diff --git a/archivers/par2cmdline-tbb/files/patch-configure b/archivers/par2cmdline-tbb/files/patch-configure
deleted file mode 100644
index 8022ce18c3c..00000000000
--- a/archivers/par2cmdline-tbb/files/patch-configure
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure.orig 2009-02-09 06:07:02.000000000 +0100
-+++ configure 2009-02-09 06:09:27.000000000 +0100
-@@ -4113,7 +4113,7 @@
-
-
- case "$host_cpu" in
-- x86_64|amd64)
-+ x86_64|amd64|ia64)
- { echo "$as_me:$LINENO: result: SSE2_on_x86_64 is enabled" >&5
- echo "${ECHO_T}SSE2_on_x86_64 is enabled" >&6; }
- if true; then
diff --git a/archivers/par2cmdline-tbb/files/patch-md5.h b/archivers/par2cmdline-tbb/files/patch-md5.h
new file mode 100644
index 00000000000..11d5313cca2
--- /dev/null
+++ b/archivers/par2cmdline-tbb/files/patch-md5.h
@@ -0,0 +1,47 @@
+--- md5.h.orig 2008-05-06 13:24:40.000000000 +0200
++++ md5.h 2008-05-06 13:24:58.000000000 +0200
+@@ -38,11 +38,8 @@
+ class MD5Hash
+ {
+ public:
+- // removed this to stop GCC warnings about using the 'pack' attribute on
+- // non-POD members in classes such as PACKET_HEADER:
+-
+ // Constructor does not initialise the value
+- //MD5Hash(void) {};
++ MD5Hash(void) {};
+
+ // Comparison operators
+ bool operator==(const MD5Hash &other) const;
+@@ -57,12 +54,9 @@
+ friend ostream& operator<<(ostream &s, const MD5Hash &hash);
+ string print(void) const;
+
+- // removed these to stop GCC warnings about using the 'pack' attribute on
+- // non-POD members in classes such as PACKET_HEADER:
+-
+ // Copy and assignment
+- //MD5Hash(const MD5Hash &other);
+- //MD5Hash& operator=(const MD5Hash &other);
++ MD5Hash(const MD5Hash &other);
++ MD5Hash& operator=(const MD5Hash &other);
+
+ public:
+ u8 hash[16]; // 16 byte MD5 Hash value
+@@ -150,7 +144,7 @@
+ return !other.operator<(*this);
+ }
+
+-/*inline MD5Hash::MD5Hash(const MD5Hash &other)
++inline MD5Hash::MD5Hash(const MD5Hash &other)
+ {
+ memcpy(&hash, &other.hash, sizeof(hash));
+ }
+@@ -160,6 +154,6 @@
+ memcpy(&hash, &other.hash, sizeof(hash));
+
+ return *this;
+-}*/
++}
+
+ #endif // __MD5_H__
diff --git a/archivers/par2cmdline-tbb/files/patch-par2cmdline.h b/archivers/par2cmdline-tbb/files/patch-par2cmdline.h
new file mode 100644
index 00000000000..44f922adc3a
--- /dev/null
+++ b/archivers/par2cmdline-tbb/files/patch-par2cmdline.h
@@ -0,0 +1,11 @@
+--- par2cmdline.h.orig 2008-05-01 08:53:49.729467641 +0200
++++ par2cmdline.h 2008-05-01 08:54:02.616707220 +0200
+@@ -443,7 +443,7 @@
+ incrementing_parallel_while_with_max> >& w,
+ ITEM* item)
+ {
+- const size_t n = item->is_first() ? tbb::DetectNumberOfWorkers() : 1;
++ const size_t n = item->is_first() ? tbb::internal::DetectNumberOfWorkers() : 1;
+
+ bool res = false;
+ std::pair<bool, size_t> pr(w.increment_next_i());