1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Update to 0.94.0

- Fix link with lld by correctly passing LDFLAGS
This commit is contained in:
Dmitry Marakasov 2018-12-25 16:29:25 +00:00
parent b5722fac7f
commit c9bb29895f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=488328
4 changed files with 39 additions and 26 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= eaglemode
PORTVERSION= 0.93.2
PORTREVISION= 2
PORTVERSION= 0.94.0
CATEGORIES= x11
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
@ -16,7 +15,8 @@ LIB_DEPENDS= libpng.so:graphics/png \
libtiff.so:graphics/tiff \
libfreetype.so:print/freetype2
USES= compiler:features jpeg perl5 pkgconfig shebangfix tar:bzip2
USES= compiler:features jpeg gnome perl5 \
pkgconfig tar:bzip2
USE_PERL5= build
USE_XORG= x11 xext xxf86vm
SUB_FILES= eaglemode.sh
@ -58,8 +58,6 @@ BUILD_ARGS+= xine-inc-dir="${LOCALBASE}/include" \
.endif
post-patch:
@${REINPLACE_CMD} -e 's|gcc|${CC}|; s|"-O2"|"${CFLAGS}"|' \
${WRKSRC}/makers/unicc/plugins/unicc_gnu.pm
@${FIND} ${WRKSRC} -name "*.pl" | ${XARGS} \
${REINPLACE_CMD} -e '1s|/usr/bin/perl|${perl_CMD}|'

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1532802088
SHA256 (eaglemode-0.93.2.tar.bz2) = 28724e92d17d9cb6a6dc5de5b5097e5c85389abffde3d216a33188a8f0de9bf9
SIZE (eaglemode-0.93.2.tar.bz2) = 16541578
TIMESTAMP = 1545663590
SHA256 (eaglemode-0.94.0.tar.bz2) = 33798753e41f22756a6402efc445729d25ef93982a43de36de5ac8e4535b23eb
SIZE (eaglemode-0.94.0.tar.bz2) = 16726294

View File

@ -1,18 +0,0 @@
--- makers/unicc/plugins/unicc_gnu.pm.orig 2008-10-29 08:27:34.000000000 +0300
+++ makers/unicc/plugins/unicc_gnu.pm 2008-10-30 00:08:33.000000000 +0300
@@ -142,6 +142,7 @@
push(@args,GetObjFiles->[$index]);
}
+ @args = split(/\s+/, join(' ', @args));
return PrintAndRun(@args);
}
@@ -178,6 +179,7 @@
}
}
+ @args = split(/\s+/, join(' ', @args));
return PrintAndRun(@args);
}

View File

@ -0,0 +1,33 @@
--- makers/unicc/plugins/unicc_gnu.pm.orig 2018-12-23 06:47:44 UTC
+++ makers/unicc/plugins/unicc_gnu.pm
@@ -35,7 +35,7 @@ my $IsWinOrCygwin;
my $IsDarwin;
{
- my $s=`gcc -dumpversion`; # Examples: "4.3", "2.95.3"
+ my $s=`$ENV{'CC'} -dumpversion`; # Examples: "4.3", "2.95.3"
if ($? != 0) { exit(1); }
for (;; $s=substr($s,1)) {
if (length($s)==0) { die("Cannot determine GCC version, stopped"); }
@@ -112,9 +112,9 @@ sub Compile
push(@args,("-o",GetObjFiles->[$index]));
}
else {
- push(@args,"gcc");
+ push(@args,$isCpp ? $ENV{'CXX'} : $ENV{'CC'});
if (HaveDebug) { push(@args,"-g"); }
- push(@args,"-O2");
+ push(@args,split(/\s+/, $isCpp ? $ENV{'CXXFLAGS'} : $ENV{'CFLAGS'}));
if ($isCpp && $GccVersion>=4.7 && $GccVersion<6.1) {
push(@args,"-std=c++11");
}
@@ -167,7 +167,8 @@ sub Link
push(@args,(@{GetObjFiles()}));
}
else {
- push(@args,"gcc");
+ push(@args,$ENV{'CC'});
+ push(@args,split(/\s+/, $ENV{'LDFLAGS'}));
if (HaveDebug) { push(@args,"-g"); }
if ($type eq 'dynlib') {
push(@args,$IsDarwin ? "-dynamiclib" : "-shared");