aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2021-08-13 16:08:56 +0000
committerJan Beich <jbeich@FreeBSD.org>2021-08-13 16:46:44 +0000
commit01b2e1fe2030d24f83ec3f5b08542e87e8994aed (patch)
treee54be506f3682e64b3ad40ba0bc34684a5e270e9
parent948d54c6f30b490ab1e72d8fc51395c54be51022 (diff)
downloadports-01b2e1fe2030d24f83ec3f5b08542e87e8994aed.tar.gz
ports-01b2e1fe2030d24f83ec3f5b08542e87e8994aed.zip
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.
-rw-r--r--games/rlvm/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/games/rlvm/Makefile b/games/rlvm/Makefile
index b886e73fade2..278da439fce2 100644
--- a/games/rlvm/Makefile
+++ b/games/rlvm/Makefile
@@ -2,6 +2,7 @@ PORTNAME= rlvm
DISTVERSIONPREFIX= release-
DISTVERSION= 0.14-77
DISTVERSIONSUFFIX= -gfabf134a
+PORTREVISION= 1
CATEGORIES= games
MAINTAINER= jbeich@FreeBSD.org
@@ -13,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
@@ -35,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
@@ -58,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,' \