NEW APR/APR-Utils
Dewayne Geraghty
dewayne.geraghty at heuristicsystems.com.au
Fri Jun 23 01:59:50 UTC 2017
Andre,
I've been down this path a few times and Bernard (who looks after
most/all? things related to libressl) does a great job in supporting
people like us that build our own packages.
Out of frustration of build failures, I applied the patch below, please
pay attention to line-breaks.
This isn't the best solution as the patches to individual ports as a
place holder until the upstream devs do things properly, is the best
course. I build 1057 ports (for server use only) successfully, including
-rw-r--r-- 1 root wheel 473K Jun 18 19:21
/usr/packages2/K8/All/apr-1.5.2.1.5.4_2.txz ; # libressl
Index: /usr/ports/security/libressl/Makefile
===================================================================
--- /usr/ports/security/libressl/Makefile (revision 444004)
+++ /usr/ports/security/libressl/Makefile (working copy)
@@ -13,6 +13,7 @@
LICENSE_FILE= ${WRKSRC}/COPYING
CPE_VENDOR= openbsd
+CFLAGS+="-O3"
OPTIONS_DEFINE= MAN3 NC
OPTIONS_DEFAULT= MAN3 NC
@@ -35,8 +36,17 @@
INSTALL_TARGET= install-strip
TEST_TARGET= check
+pre-configure:
+.if ${ARCH} == "amd64"
+ @${REINPLACE_CMD} -e '/define
OPENSSL_VERSION_NUMBER/s|OPENSSL_VERSION_NUMBER.*|OPENSSL_VERSION_NUMBER
0x100020bfL|1' ${WRKSRC}/include/openssl/opensslv.h
+.endif
+
+# pre-install:
post-install:
${RM} -r ${STAGEDIR}/${PREFIX}/etc/ssl/cert.pem
+.if ${ARCH} == "amd64"
+ @${REINPLACE_CMD} -e '/define
OPENSSL_VERSION_NUMBER/s|OPENSSL_VERSION_NUMBER.*|OPENSSL_VERSION_NUMBER
0x100020bfL|1' ${STAGEDIR}${PREFIX}/include/openssl/opensslv.h
+.endif
post-install-NC-on:
${INSTALL_MAN} ${WRKSRC}/apps/nc/nc.1
${STAGEDIR}/${PREFIX}/man/man1/nc.1
This should get you over the hump. :)
Regards, Dewayne.
More information about the freebsd-ports
mailing list