mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
97 lines
2.5 KiB
Makefile
97 lines
2.5 KiB
Makefile
PORTNAME= eaglemode
|
|
PORTVERSION= 0.96.0
|
|
PORTREVISION= 5
|
|
CATEGORIES= x11
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Futuristic zoomable user environment
|
|
WWW= https://eaglemode.sourceforge.net/
|
|
|
|
LICENSE= GPLv3
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png \
|
|
libtiff.so:graphics/tiff \
|
|
libfreetype.so:print/freetype2
|
|
|
|
USES= compiler:c++11-lib jpeg gnome perl5 \
|
|
pkgconfig tar:bzip2 xorg
|
|
USE_PERL5= build
|
|
USE_XORG= x11
|
|
SUB_FILES= eaglemode.sh
|
|
|
|
BUILD_ARGS= continue=no
|
|
|
|
DATADIR= ${PREFIX}/lib/${PORTNAME}
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
PORTDATA= *
|
|
|
|
OPTIONS_DEFINE= RSVG PDF WEBP
|
|
OPTIONS_DEFAULT=VLC RSVG PDF WEBP
|
|
OPTIONS_SUB= yes
|
|
OPTIONS_GROUP= EMAV
|
|
OPTIONS_GROUP_EMAV= XINE VLC
|
|
|
|
RSVG_DESC= SVG support through librsvg
|
|
PDF_DESC= PDF support through poppler-glib
|
|
EMAV_DESC= Video preview backend
|
|
VLC_DESC= Multimedia support via VLC
|
|
|
|
XINE_LIB_DEPENDS= libxine.so:multimedia/libxine
|
|
XINE_VARS= EMAV+=xine
|
|
RSVG_USE= GNOME=librsvg2
|
|
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 !empty(EMAV)
|
|
BUILD_ARGS+= emAv=${EMAV:ts,} # seed perl make.pl show-extra-options
|
|
.endif
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name "*.pl" | ${XARGS} \
|
|
${REINPLACE_CMD} -e '1s|/usr/bin/perl|${perl_CMD}|'
|
|
.if empty(EMAV)
|
|
@${RM} ${WRKSRC}/makers/emAv.maker.pm
|
|
.endif
|
|
|
|
post-patch-RSVG-off:
|
|
@${RM} ${WRKSRC}/makers/emSvg.maker.pm
|
|
|
|
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})
|
|
|
|
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-VLC-on:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/eaglemode/lib/emAv/emAvServerProc_vlc
|
|
|
|
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>
|