freebsd-ports/x11/roxterm/Makefile
2015-04-04 11:48:28 +00:00

93 lines
2.9 KiB
Makefile

# Created by: Yinghong Liu <relaxbsd@gmail.com>
# $FreeBSD$
PORTNAME= roxterm
PORTVERSION= 2.9.7
CATEGORIES= x11
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= GTK+ terminal emulator with tabs
LICENSE= GPLv3
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lockfile>0:${PORTSDIR}/devel/py-lockfile \
docbook-xsl>0:${PORTSDIR}/textproc/docbook-xsl \
itstool:${PORTSDIR}/textproc/itstool \
po4a:${PORTSDIR}/textproc/po4a
LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils
USES= gettext libtool:build pkgconfig python:build tar:bzip2
USE_GNOME= librsvg2:run libxslt:build
INSTALLS_ICONS= yes
OPTIONS_DEFINE= DOCS GTK3
MAITCHFLAGS= DISABLE_GTK3=${DISABLE_GTK3};DISABLE_GIT=True;
MAITCHFLAGS+= CC=${CC};GCC=${CC};CPP=${CC};CFLAGS=${CFLAGS};
MAITCHFLAGS+= PARALLEL=${MAKE_JOBS_NUMBER};PREFIX=${PREFIX};
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGTK3}
#USE_GNOME+= vte3
# use older vte3-290 port until roxterm can support the 2.91 API from vte3
LIB_DEPENDS+= libvte2_90.so:${PORTSDIR}/x11-toolkits/vte290
.else
USE_GNOME+= vte
DISABLE_GTK3= True
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/local|${LOCALBASE}|' ${WRKSRC}/maitch.py
@${REINPLACE_CMD} -e \
's|x-www-browser|xdg-open|' ${WRKSRC}/src/uri.c
do-configure:
@(cd ${WRKSRC} && ${SETENV} MAITCHFLAGS="${MAITCHFLAGS}" \
${PYTHON_CMD} mscript.py configure)
do-build:
@(cd ${WRKSRC} && ${PYTHON_CMD} mscript.py build)
do-install:
.for i in roxterm roxterm-config
(cd ${WRKSRC}/build && ${INSTALL_PROGRAM} ${i} \
${STAGEDIR}${PREFIX}/bin)
.endfor
(cd ${WRKSRC}/build && ${INSTALL_MAN} *.1 \
${STAGEDIR}${MANPREFIX}/man/man1)
.for i in es fr pt_BR ru uk
@${MKDIR} ${STAGEDIR}${MANPREFIX}/man/${i}/man1
(cd ${WRKSRC}/build/po4a/${i} && ${INSTALL_MAN} *.1 \
${STAGEDIR}${MANPREFIX}/man/${i}/man1)
.endfor
@${MKDIR} ${STAGEDIR}${PREFIX}/share/appdata
(cd ${WRKSRC}/build && ${INSTALL_DATA} roxterm.appdata.xml \
${STAGEDIR}${PREFIX}/share/appdata)
(cd ${WRKSRC} && ${INSTALL_DATA} roxterm.desktop \
${STAGEDIR}${DESKTOPDIR})
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
(cd ${WRKSRC} && ${INSTALL_DATA} roxterm.svg \
${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps)
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}/src && ${INSTALL_DATA} roxterm-config.ui \
${STAGEDIR}${DATADIR})
@(cd ${WRKSRC} && ${COPYTREE_SHARE} Config ${STAGEDIR}${DATADIR})
.for i in es fr pt_BR ru uk
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${i}/LC_MESSAGES
(cd ${WRKSRC}/build/po && ${INSTALL_DATA} ${i}.mo \
${STAGEDIR}${PREFIX}/share/locale/${i}/LC_MESSAGES/roxterm.mo)
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog README
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.for i in en es fr lib pt_BR ru uk
@${MKDIR} ${STAGEDIR}${DOCSDIR}/${i}
(cd ${WRKSRC}/Help/${i} && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}/${i})
.endfor
.include <bsd.port.mk>