freebsd-ports/x11/roxterm/Makefile
Niclas Zeising 4c46ca73d8 Add USES=xorg USES=gl, ports categories x
Add USES=xorg and USES=gl to ports in categories starting with 'x'
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-07 18:36:55 +00:00

82 lines
2.6 KiB
Makefile

# Created by: Yinghong Liu <relaxbsd@gmail.com>
# $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 gnome libtool:build pkgconfig python:build tar:xz xorg
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 <bsd.port.mk>