1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/x11/eaglemode/Makefile
Gerald Pfeifer 04d6f52202 Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using using Mk/bsd.octave.mk which in turn has USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
   c++11-lang, c++0x, c11, or gcc-c++11-lib.

PR:		216707
2017-04-01 15:23:30 +00:00

97 lines
2.5 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= eaglemode
PORTVERSION= 0.92.0
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Futuristic zoomable user environment
LICENSE= GPLv3
LIB_DEPENDS= libpng.so:graphics/png \
libtiff.so:graphics/tiff \
libfreetype.so:print/freetype2
USES= compiler:features jpeg perl5 pkgconfig shebangfix tar:bzip2
USE_PERL5= build
USE_XORG= x11 xext xxf86vm
SUB_FILES= eaglemode.sh
WANT_GNOME= 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= XINE RSVG PDF
OPTIONS_DEFAULT=XINE RSVG PDF
OPTIONS_SUB= yes
RSVG_DESC= SVG support through librsvg
PDF_DESC= PDF support through poppler-glib
XINE_LIB_DEPENDS= libxine.so:multimedia/libxine
RSVG_USE= GNOME=librsvg2
PDF_LIB_DEPENDS= libpoppler-glib.so:graphics/poppler-glib
PDF_USE= GNOME=gtk20
.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
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}|'
post-patch-XINE-off:
@${RM} ${WRKSRC}/makers/emAv.maker.pm
post-patch-RSVG-off:
@${RM} ${WRKSRC}/makers/emSvg.maker.pm
post-patch-PDF-off:
@${RM} ${WRKSRC}/makers/emPdf.maker.pm
do-build:
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${PERL} make.pl build ${BUILD_ARGS})
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && ${PERL} make.pl install dir=${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/eaglemode.sh ${STAGEDIR}${PREFIX}/bin/eaglemode
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/eaglemode/bin/* \
${STAGEDIR}${PREFIX}/lib/eaglemode/lib/*.so \
${STAGEDIR}${PREFIX}/lib/eaglemode/lib/emClock/emTimeZonesProc \
${STAGEDIR}${PREFIX}/lib/eaglemode/lib/emTmpConv/emTmpConvProc
do-install-XINE-on:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/eaglemode/lib/emAv/emAvServerProc_xine
do-install-RSVG-on:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/eaglemode/lib/emSvg/emSvgServerProc
do-install-PDF-on:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/eaglemode/lib/emPdf/emPdfServerProc
.include <bsd.port.post.mk>