git: c02ad6203c32 - 2021Q3 - games/rlvm: drop runtime dependency on boost-libs
Jan Beich
jbeich at FreeBSD.org
Fri Aug 13 16:49:10 UTC 2021
The branch 2021Q3 has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c02ad6203c327b4b873b346fe6c6bbf31a0f20d2
commit c02ad6203c327b4b873b346fe6c6bbf31a0f20d2
Author: Jan Beich <jbeich at FreeBSD.org>
AuthorDate: 2021-08-13 16:08:56 +0000
Commit: Jan Beich <jbeich at FreeBSD.org>
CommitDate: 2021-08-13 16:47:26 +0000
games/rlvm: drop runtime dependency on boost-libs
Until subpackaging arrives to bsd.port.mk and boost-libs is split into
smaller packages this shaves ~166 MiB of install size.
(cherry picked from commit 01b2e1fe2030d24f83ec3f5b08542e87e8994aed)
---
games/rlvm/Makefile | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/games/rlvm/Makefile b/games/rlvm/Makefile
index a81eeefc1f51..cc9d329bae5c 100644
--- a/games/rlvm/Makefile
+++ b/games/rlvm/Makefile
@@ -2,7 +2,7 @@ PORTNAME= rlvm
DISTVERSIONPREFIX= release-
DISTVERSION= 0.14-75
DISTVERSIONSUFFIX= -g975e740c
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= games
MAINTAINER= jbeich at FreeBSD.org
@@ -14,10 +14,10 @@ LICENSE_COMB= multi
BROKEN_FreeBSD_11_powerpc64= fails to link on powerpc64 elfv1: gcn_platform.cc: undefined reference to gcn::Exception::Exception
BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: gcn_platform.cc: undefined reference to gcn::Exception::Exception
-BUILD_DEPENDS= ${LOCALBASE}/include/utf8cpp/utf8.h:devel/utf8cpp
+BUILD_DEPENDS= boost-libs>0:devel/boost-libs \
+ utf8cpp>0:devel/utf8cpp
LIB_DEPENDS= libsndfile.so:audio/libsndfile \
libvorbisfile.so:audio/libvorbis \
- libboost_serialization.so:devel/boost-libs \
libguichan.so:devel/guichan
RUN_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans.ttf:x11-fonts/dejavu
@@ -36,6 +36,11 @@ MAKE_ARGS= VERBOSE=1
INSTALLS_ICONS= yes
PORTDOCS= AUTHORS.TXT NEWS.TXT README.md STATUS.TXT notes
+.if exists(/usr/bin/ld.lld) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld
+# undefined reference to symbol `inflateEnd@@ZLIB_1.2.4.0' (try adding -lz)
+LDFLAGS+= -fuse-ld=lld
+.endif
+
OPTIONS_DEFINE= DEBUG DOCS NLS TEST
OPTIONS_DEFAULT=MONA
OPTIONS_MULTI= JAPANESE_FONT
@@ -59,6 +64,8 @@ TEST_BUILD_DEPENDS=googletest>=1.7.0:devel/googletest \
TEST_EXTRA_PATCHES_OFF=${FILESDIR}/extra-patch-disable-test
post-patch:
+ @${REINPLACE_CMD} -e "s/boost_[^\"]*/:lib&$$'\\\x2e'a/" \
+ ${WRKSRC}/SConstruct
@${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,' \
${WRKSRC}/src/platforms/gtk/gtk_rlvm_instance.cc
@${REINPLACE_CMD} -e 's,/usr/share,${LOCALBASE}/share,' \
More information about the dev-commits-ports-all
mailing list