Skip to content

Commit

Permalink
x11/eaglemode: update 0.95.0 → 0.95.1
Browse files Browse the repository at this point in the history
- Trim unused X depends.
- Require c++11, remove ancient gcc handling.
- No need to specify *-{inc,lib}-dir args, as pkgconfig handles it
  fine.
- Further hack crippled upstream build system, make it use linker
  for correct (C/C++) language, which allows to remove LLD_UNSAFE.
  • Loading branch information
AMDmi3 committed Mar 10, 2022
1 parent 08983f3 commit 70d774b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 28 deletions.
32 changes: 10 additions & 22 deletions x11/eaglemode/Makefile
@@ -1,6 +1,5 @@
PORTNAME= eaglemode
PORTVERSION= 0.95.0
PORTREVISION= 18
PORTVERSION= 0.95.1
CATEGORIES= x11
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}

Expand All @@ -13,27 +12,20 @@ LIB_DEPENDS= libpng.so:graphics/png \
libtiff.so:graphics/tiff \
libfreetype.so:print/freetype2

USES= compiler:features jpeg gnome perl5 \
USES= compiler:c++11-lib jpeg gnome perl5 \
pkgconfig tar:bzip2 xorg
USE_PERL5= build
USE_XORG= x11 xext xxf86vm
USE_XORG= x11
SUB_FILES= eaglemode.sh

LLD_UNSAFE= yes

BUILD_ARGS= continue=no

.for lib in X11 jpeg png tiff
BUILD_ARGS+= ${lib}-inc-dir="${LOCALBASE}/include" \
${lib}-lib-dir="${LOCALBASE}/lib"
.endfor

DATADIR= ${PREFIX}/lib/${PORTNAME}
PLIST_FILES= bin/${PORTNAME}
PORTDATA= *

OPTIONS_DEFINE= RSVG PDF
OPTIONS_DEFAULT=VLC RSVG PDF
OPTIONS_DEFINE= RSVG PDF WEBP
OPTIONS_DEFAULT=VLC RSVG PDF WEBP
OPTIONS_SUB= yes
OPTIONS_GROUP= EMAV
OPTIONS_GROUP_EMAV= XINE VLC
Expand All @@ -50,19 +42,12 @@ PDF_LIB_DEPENDS= libpoppler-glib.so:graphics/poppler-glib
PDF_USE= GNOME=gtk20
VLC_LIB_DEPENDS= libvlc.so:multimedia/vlc
VLC_VARS= EMAV+=vlc
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp

.include <bsd.port.pre.mk>

.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
USE_GCC= yes
.endif

.if ${PORT_OPTIONS:MXINE}
BUILD_ARGS+= xine-inc-dir="${LOCALBASE}/include" \
xine-lib-dir="${LOCALBASE}/lib"
.endif
.if !empty(EMAV)
BUILD_ARGS+= emAv=${EMAV:ts,}
BUILD_ARGS+= emAv=${EMAV:ts,} # seed perl make.pl show-extra-options
.endif

post-patch:
Expand All @@ -78,6 +63,9 @@ post-patch-RSVG-off:
post-patch-PDF-off:
@${RM} ${WRKSRC}/makers/emPdf.maker.pm

post-patch-WEBP-off:
@${RM} ${WRKSRC}/makers/emWebp.maker.pm

do-build:
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${PERL} make.pl build ${BUILD_ARGS})
Expand Down
6 changes: 3 additions & 3 deletions x11/eaglemode/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1598183362
SHA256 (eaglemode-0.95.0.tar.bz2) = a3a63a4a5eba73d89c54840aa1f6fdb26da505d9c2b220fcca90d94b3727756a
SIZE (eaglemode-0.95.0.tar.bz2) = 16566607
TIMESTAMP = 1626355146
SHA256 (eaglemode-0.95.1.tar.bz2) = e7dd54d31f2092a766909971e2fcf8a002170e9e2bca30698e4912e66ac363a0
SIZE (eaglemode-0.95.1.tar.bz2) = 16580356
16 changes: 13 additions & 3 deletions x11/eaglemode/files/patch-makers_unicc_plugins_unicc__gnu.pm
@@ -1,4 +1,6 @@
--- makers/unicc/plugins/unicc_gnu.pm.orig 2018-12-23 06:47:44 UTC
Note that this plugin is used for both gnu and clang build.

--- makers/unicc/plugins/unicc_gnu.pm.orig 2021-07-11 05:50:52 UTC
+++ makers/unicc/plugins/unicc_gnu.pm
@@ -35,7 +35,7 @@ my $IsWinOrCygwin;
my $IsDarwin;
Expand All @@ -21,13 +23,21 @@
if ($isCpp && $GccVersion>=4.7 && $GccVersion<6.1) {
push(@args,"-std=c++11");
}
@@ -167,7 +167,8 @@ sub Link
@@ -166,7 +166,8 @@ sub Link
push(@args,(@{GetObjFiles()}));
}
else {
- push(@args,"gcc");
+ push(@args,$ENV{'CC'});
+ push(@args,HaveCppLib ? $ENV{'CXX'} : $ENV{'CC'});
+ push(@args,grep /./, split(/\s+/, $ENV{'LDFLAGS'}));
if (HaveDebug) { push(@args,"-g"); }
if ($type eq 'dynlib') {
push(@args,$IsDarwin ? "-dynamiclib" : "-shared");
@@ -182,7 +183,6 @@ sub Link
foreach my $s (@{GetLinkNames()}) { push(@args,"-l$s"); }
if ($IsCygwin && -e "/lib/libcygipc.a") { push(@args,"-lcygipc"); }
if (HaveMath) { push(@args,"-lm"); }
- if (HaveCppLib) { push(@args,"-lstdc++"); }
push(@args,"-o");
push(@args,GetTgtFile);
if ($IsWinOrCygwin and $type eq "dynlib") {

0 comments on commit 70d774b

Please sign in to comment.