freebsd-ports/net-im/sayaka/Makefile
Sunpoet Po-Chuan Hsieh 0e7c254e76 Fix build with curl 7.62.0
- While I'm here, add USES=gnome
2018-11-03 22:50:32 +00:00

53 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= sayaka
PORTVERSION= 3.2.2
CATEGORIES= net-im
MAINTAINER= sue@iwmt.org
COMMENT= Command-line twitter client for SIXEL-supported terminal
LICENSE= BSD2CLAUSE
BUILD_DEPENDS= valac:lang/vala
LIB_DEPENDS= libcurl.so:ftp/curl
USES= gettext-runtime gnome pkgconfig
USE_GNOME= glib20 gdkpixbuf2
USE_GITHUB= yes
GH_ACCOUNT= isaki68k
PORTDOCS= README.md
WRKSRC_SUBDIR= vala
OPTIONS_DEFINE= COLORMAP DOCS
OPTIONS_DEFAULT=COLORMAP
OPTIONS_SUB= yes
COLORMAP_DESC= Install colormap data for external sixel command
COLORMAP_RUN_DEPENDS= img2sixel:graphics/libsixel
COLORMAP_FILES= colormap16.png colormap8.png
post-patch:
@${REINPLACE_CMD} -e '/^[a-z]/s/:$$/: vala-make2/' \
${WRKSRC}/Makefile
post-patch-COLORMAP-on:
@${REINPLACE_CMD} -e '/colormapdir =/s|basedir|"${DATADIR}"|' \
${WRKSRC}/sayaka.vala
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sayaka ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/../README.md ${STAGEDIR}${DOCSDIR}
do-install-COLORMAP-on:
${MKDIR} ${STAGEDIR}${DATADIR}
.for f in ${COLORMAP_FILES}
${INSTALL_DATA} ${WRKSRC}/../$f ${STAGEDIR}${DATADIR}
.endfor
.include <bsd.port.mk>