diff options
author | woodsb02 <woodsb02@FreeBSD.org> | 2016-11-13 13:55:49 +0800 |
---|---|---|
committer | woodsb02 <woodsb02@FreeBSD.org> | 2016-11-13 13:55:49 +0800 |
commit | 1baa267a5e0258ef2ce885241ccbed84c7ebe505 (patch) | |
tree | d5d30337acb69bad05e856e7e0f6abd759d0c260 | |
parent | 23ef6df40da0ee2461216945963fcd70fe646126 (diff) | |
download | freebsd-ports-gnome-1baa267a5e0258ef2ce885241ccbed84c7ebe505.tar.gz freebsd-ports-gnome-1baa267a5e0258ef2ce885241ccbed84c7ebe505.tar.zst freebsd-ports-gnome-1baa267a5e0258ef2ce885241ccbed84c7ebe505.zip |
audio/logitechmediaserver: Fix build with perl 5.24
PR: 214267
Submitted by: Mark Dixon (maintainer)
Reported by: Alan Braslau <alan.braslau@comcast.net>
Approved by: adamw (mentor, implicit)
-rw-r--r-- | audio/logitechmediaserver/Makefile | 7 | ||||
-rw-r--r-- | audio/logitechmediaserver/files/vendorpatch-CPAN_buildme.sh | 101 |
2 files changed, 101 insertions, 7 deletions
diff --git a/audio/logitechmediaserver/Makefile b/audio/logitechmediaserver/Makefile index a2ad9f8533fc..5b98fefb94f5 100644 --- a/audio/logitechmediaserver/Makefile +++ b/audio/logitechmediaserver/Makefile @@ -2,7 +2,7 @@ PORTNAME= logitechmediaserver PORTVERSION= 7.9.0.g2016.09.30 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio MAINTAINER= mark@tranquillussoftware.co.uk @@ -83,6 +83,7 @@ SLIMGROUP?= ${SLIMUSER} do-build: cd ${WRKSRC_vendor}/CPAN && ./buildme.sh + cd ${WRKSRC}/CPAN/arch && ${CP} -R 5.22 5.24 do-install: @(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${SLIMDIR}) @@ -109,8 +110,8 @@ do-install: ${INSTALL_SCRIPT} ${WRKSRC}/Bin/dbish ${STAGEDIR}${PREFIX}/${SLIMDIR}/Bin/ (cd ${WRKSRC_vendor}/CPAN/build && \ ${COPYTREE_SHARE} arch ${STAGEDIR}${PREFIX}/${SLIMDIR}/CPAN) - (cd ${WRKSRC_vendor}/CPAN/build/5.20/lib/perl5 && \ - ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${SLIMDIR}/CPAN/arch/5.20/) + (cd ${WRKSRC_vendor}/CPAN/build/${PERL_VER}/lib/perl5 && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${SLIMDIR}/CPAN/arch/${PERL_VER}/) do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${STAGEDIR}${DOCSDIR}) diff --git a/audio/logitechmediaserver/files/vendorpatch-CPAN_buildme.sh b/audio/logitechmediaserver/files/vendorpatch-CPAN_buildme.sh index 5d4a9178cafb..ff8ef2934479 100644 --- a/audio/logitechmediaserver/files/vendorpatch-CPAN_buildme.sh +++ b/audio/logitechmediaserver/files/vendorpatch-CPAN_buildme.sh @@ -1,5 +1,5 @@ ---- ../slimserver-vendor-14cc392/CPAN/buildme.sh.orig 2016-08-12 14:27:39.000000000 +0100 -+++ ../slimserver-vendor-14cc392/CPAN/buildme.sh 2016-08-17 21:24:10.394225000 +0100 +--- ../slimserver-vendor-14cc392/CPAN/buildme.sh.orig 2016-08-12 21:27:39.000000000 +0800 ++++ ../slimserver-vendor-14cc392/CPAN/buildme.sh 2016-11-13 13:08:08.765866000 +0800 @@ -92,7 +92,7 @@ exit fi @@ -9,7 +9,64 @@ which $i > /dev/null if [ $? -ne 0 ] ; then echo "$i not found - please install it" -@@ -552,7 +552,7 @@ +@@ -309,6 +309,19 @@ + PERL_ARCH=$BUILD/arch/5.22 + fi + ++# Path to Perl 5.24 ++if [ -x "/usr/bin/perl5.24.1" ]; then ++ PERL_524=/usr/bin/perl5.24.1 ++fi ++ ++if [ $PERL_524 ]; then ++ echo "Building with Perl 5.24 at $PERL_524" ++ PERL_BIN=$PERL_524 ++ # Install dir for 5.24 ++ PERL_BASE=$BUILD/5.24 ++ PERL_ARCH=$BUILD/arch/5.24 ++fi ++ + # try to use default perl version + if [ "$PERL_BIN" = "" ]; then + PERL_BIN=`which perl` +@@ -339,6 +352,9 @@ + "5.22") + PERL_522=$PERL_BIN + ;; ++ "5.24") ++ PERL_524=$PERL_BIN ++ ;; + *) + echo "Failed to find supported Perl version for '$PERL_BIN'" + exit +@@ -504,7 +520,7 @@ + ;; + + Class::XSAccessor) +- if [ "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o "$PERL_522" ]; then ++ if [ "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o "$PERL_524" ]; then + build_module Class-XSAccessor-1.18 + cp -pR $PERL_BASE/lib/perl5/$ARCH/Class $PERL_ARCH/ + else +@@ -520,7 +536,7 @@ + ;; + + DBI) +- if [ "$PERL_518" -o "$PERL_520" -o "$PERL_522" ]; then ++ if [ "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o "$PERL_524" ]; then + build_module DBI-1.628 + cp -p $PERL_BASE/lib/perl5/$ARCH/DBI.pm $PERL_ARCH/ + cp -pR $PERL_BASE/lib/perl5/$ARCH/DBI $PERL_ARCH/ +@@ -530,7 +546,7 @@ + ;; + + DBD::SQLite) +- if [ "$PERL_518" -o "$PERL_520" -o "$PERL_522" ]; then ++ if [ "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o "$PERL_524" ]; then + build_module DBI-1.628 "" 0 + else + build_module DBI-1.616 "" 0 +@@ -552,7 +568,7 @@ ICUOS="FreeBSD" fi CFLAGS="$ICUFLAGS" CXXFLAGS="$ICUFLAGS" LDFLAGS="$FLAGS $OSX_ARCH $OSX_FLAGS" \ @@ -18,7 +75,34 @@ $MAKE if [ $? != 0 ]; then echo "make failed" -@@ -1223,6 +1223,9 @@ +@@ -616,7 +632,7 @@ + rm -rf DBD-SQLite-1.34_01 + else + cd .. +- if [ "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o "$PERL_522" ]; then ++ if [ "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o "$PERL_524" ]; then + build_module DBD-SQLite-1.34_01 "" 0 + fi + build_module DBD-SQLite-1.34_01 +@@ -698,7 +714,7 @@ + JSON::XS) + build_module common-sense-2.0 + +- if [ "$PERL_518" -o "$PERL_520" -o "$PERL_522" ]; then ++ if [ "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o "$PERL_524" ]; then + build_module JSON-XS-2.34 + cp -pR $PERL_BASE/lib/perl5/$ARCH/JSON $PERL_ARCH/ + else +@@ -728,7 +744,7 @@ + ;; + + YAML::LibYAML) +- if [ "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o "$PERL_522" ]; then ++ if [ "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o "$PERL_524" ]; then + build_module YAML-LibYAML-0.35 "" 0 + else + build_module YAML-LibYAML-0.35 +@@ -1223,6 +1239,9 @@ if [ "$ARCH" = "amd64-freebsd" -o "$ARCH" = "amd64-freebsd-thread-multi" ]; then FFOPTS="$FFOPTS --arch=x86" fi @@ -28,3 +112,12 @@ if [ "$OS" = "Darwin" ]; then SAVED_FLAGS=$FLAGS +@@ -1387,7 +1406,7 @@ + + # create our directory structure + # rsync is used to avoid copying non-binary modules or other extra stuff +-if [ "$PERL_512" -o "$PERL_514" -o "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o "$PERL_522" ]; then ++if [ "$PERL_512" -o "$PERL_514" -o "$PERL_516" -o "$PERL_518" -o "$PERL_520" -o "$PERL_522" -o "$PERL_524" ]; then + # Check for Perl using use64bitint and add -64int + ARCH=`$PERL_BIN -MConfig -le 'print $Config{archname}' | sed 's/gnu-//' | sed 's/^i[3456]86-/i386-/' | sed 's/armv.*?-/arm-/' ` + fi |