aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/twister
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2014-07-05 18:36:55 +0000
committerThierry Thomas <thierry@FreeBSD.org>2014-07-05 18:36:55 +0000
commit975bb59729a14dfdc7f2fa6259d6a89461265d25 (patch)
tree1d1acec6c855af1051347101ea56c8402fb8c984 /net-p2p/twister
parent5eafe13d23e38376561f7f3971af8d3282ba2fb2 (diff)
downloadports-975bb59729a14dfdc7f2fa6259d6a89461265d25.tar.gz
ports-975bb59729a14dfdc7f2fa6259d6a89461265d25.zip
Notes
Diffstat (limited to 'net-p2p/twister')
-rw-r--r--net-p2p/twister/Makefile7
-rw-r--r--net-p2p/twister/files/patch-src_makefile.freebsd11
-rw-r--r--net-p2p/twister/files/patch-src_scrypt.cpp12
3 files changed, 29 insertions, 1 deletions
diff --git a/net-p2p/twister/Makefile b/net-p2p/twister/Makefile
index 611286f0cac7..566d238497e9 100644
--- a/net-p2p/twister/Makefile
+++ b/net-p2p/twister/Makefile
@@ -45,13 +45,18 @@ BUILD_WRKSRC= ${WRKSRC}/src
MAKE_ENV= BOOST_INCLUDE_PATH=${LOCALBASE}/include \
BOOST_LIB_PATH=${LOCALBASE}/lib \
BDB_INCLUDE_PATH=${BDB_INCLUDE_DIR} \
- BDB_LIB_PATH=${BDB_LIB_DIR}
+ BDB_LIB_PATH=${BDB_LIB_DIR} \
+ ICONV_LIB="${ICONV_LIB}"
PLIST_FILES= bin/twisterd
PORTDOCS= README.md
.include <bsd.port.options.mk>
+.if (${OPSYS} == FreeBSD && ${OSVERSION} < 1000000)
+WITH_OPENSSL_PORT= yes
+.endif
+
pre-configure:
(cd ${CONFIGURE_WRKSRC} && ./autotool.sh)
.if ${PORT_OPTIONS:MUPNP}
diff --git a/net-p2p/twister/files/patch-src_makefile.freebsd b/net-p2p/twister/files/patch-src_makefile.freebsd
new file mode 100644
index 000000000000..d763662b74fa
--- /dev/null
+++ b/net-p2p/twister/files/patch-src_makefile.freebsd
@@ -0,0 +1,11 @@
+--- src/makefile.freebsd.orig 2014-06-28 13:26:56.000000000 +0200
++++ src/makefile.freebsd 2014-07-05 20:16:28.000000000 +0200
+@@ -40,7 +40,7 @@
+ -l boost_thread$(BOOST_LIB_SUFFIX) \
+ -l boost_locale$(BOOST_LIB_SUFFIX) \
+ -l db_cxx$(BDB_LIB_SUFFIX) \
+- -l ssl \
++ $(ICONV_LIB) -l ssl \
+ -l crypto \
+ -l rt
+
diff --git a/net-p2p/twister/files/patch-src_scrypt.cpp b/net-p2p/twister/files/patch-src_scrypt.cpp
new file mode 100644
index 000000000000..85d877a60d29
--- /dev/null
+++ b/net-p2p/twister/files/patch-src_scrypt.cpp
@@ -0,0 +1,12 @@
+--- src/scrypt.cpp.orig 2014-06-28 13:26:56.000000000 +0200
++++ src/scrypt.cpp 2014-07-05 19:42:46.000000000 +0200
+@@ -33,6 +33,9 @@
+ #include <stdint.h>
+ #include <string.h>
+ #include <openssl/sha.h>
++#if defined(__FreeBSD__) && (__FreeBSD_version < 100000)
++#include <sys/endian.h>
++#endif
+
+ #ifndef __FreeBSD__
+ /* Allready defined in sys/endian.h */