diff options
author | thierry <thierry@FreeBSD.org> | 2014-07-06 02:36:55 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2014-07-06 02:36:55 +0800 |
commit | 56b9406e1890d318c60aee32fe8d7def6ac6d34e (patch) | |
tree | 1d1acec6c855af1051347101ea56c8402fb8c984 /net-p2p/twister | |
parent | 9b5fa2b8df05b572935347112bdb2b9fc5eee933 (diff) | |
download | freebsd-ports-gnome-56b9406e1890d318c60aee32fe8d7def6ac6d34e.tar.gz freebsd-ports-gnome-56b9406e1890d318c60aee32fe8d7def6ac6d34e.tar.zst freebsd-ports-gnome-56b9406e1890d318c60aee32fe8d7def6ac6d34e.zip |
Fix build on FreeBSD-9.
Diffstat (limited to 'net-p2p/twister')
-rw-r--r-- | net-p2p/twister/Makefile | 7 | ||||
-rw-r--r-- | net-p2p/twister/files/patch-src_makefile.freebsd | 11 | ||||
-rw-r--r-- | net-p2p/twister/files/patch-src_scrypt.cpp | 12 |
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 */ |