# Created by: Yinghong Liu # $FreeBSD$ PORTNAME= roxterm PORTVERSION= 3.3.2 PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= GTK+ terminal emulator with tabs LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lockfile>0:devel/py-lockfile@${PY_FLAVOR} \ docbook-xsl>0:textproc/docbook-xsl \ itstool:textproc/itstool \ po4a:textproc/po4a LIB_DEPENDS= libdbus-1.so:devel/dbus \ libdbus-glib-1.so:devel/dbus-glib \ libgnutls.so:security/gnutls RUN_DEPENDS= xdg-open:devel/xdg-utils USES= gettext libtool:build pkgconfig python:build tar:xz USE_XORG= ice sm x11 USE_GNOME= cairo librsvg2:run libxslt:build vte3 USE_CSTD= c99 INSTALLS_ICONS= yes OPTIONS_DEFINE= DOCS MAITCHFLAGS= DISABLE_GIT=True; MAITCHFLAGS+= CC=${CC};GCC=${CC};CPP=${CC};CFLAGS=${CFLAGS}; MAITCHFLAGS+= PARALLEL=${MAKE_JOBS_NUMBER};PREFIX=${PREFIX}; 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 ${INSTALL_PROGRAM} ${WRKSRC}/build/${i} ${STAGEDIR}${PREFIX}/bin .endfor ${INSTALL_MAN} ${WRKSRC}/build/*.1 ${STAGEDIR}${MANPREFIX}/man/man1 .for i in es fr pt_BR ru uk @${MKDIR} ${STAGEDIR}${MANPREFIX}/man/${i}/man1 ${INSTALL_MAN} ${WRKSRC}/build/po4a/${i}/*.1 ${STAGEDIR}${MANPREFIX}/man/${i}/man1 .endfor @${MKDIR} ${STAGEDIR}${PREFIX}/share/appdata ${INSTALL_DATA} ${WRKSRC}/build/roxterm.appdata.xml ${STAGEDIR}${PREFIX}/share/appdata ${INSTALL_DATA} ${WRKSRC}/roxterm.desktop ${STAGEDIR}${DESKTOPDIR} @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps ${INSTALL_DATA} ${WRKSRC}/roxterm.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/src/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 ${INSTALL_DATA} ${WRKSRC}/build/po/${i}.mo ${STAGEDIR}${PREFIX}/share/locale/${i}/LC_MESSAGES/roxterm.mo .endfor do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in AUTHORS ChangeLog README ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor .for i in en es fr lib pt_BR ru uk @${MKDIR} ${STAGEDIR}${DOCSDIR}/${i} ${INSTALL_DATA} ${WRKSRC}/Help/${i}/* ${STAGEDIR}${DOCSDIR}/${i} .endfor .include