d84aa50743
Approved by: araujo (mentor) Differential Revision: https://reviews.freebsd.org/D21854
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= coyim
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.3.11
|
|
PORTREVISION= 3
|
|
CATEGORIES= net-im
|
|
|
|
MAINTAINER= fox@FreeBSD.org
|
|
COMMENT= Safe and secure by default chat client
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
|
|
libfreetype.so:print/freetype2
|
|
|
|
USES= gnome go pkgconfig
|
|
|
|
USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk30 pango
|
|
|
|
OPTIONS_DEFINE= NLS
|
|
OPTIONS_SUB= yes
|
|
|
|
NLS_USES= gettext
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= coyim
|
|
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME}
|
|
|
|
GO_BUILDFLAGS= -tags ${GTK_BUILD_TAG}
|
|
|
|
SUB_LIST= PORTNAME=${PORTNAME}
|
|
|
|
PLIST_FILES= bin/coyim \
|
|
share/applications/coyim.desktop \
|
|
share/pixmaps/coyim.png
|
|
|
|
GTK_VERSION= "$$(pkg-config --modversion gtk+-3.0 | ${TR} . _ | cut -d '_' -f 1-2)"
|
|
GTK_BUILD_TAG= gtk_${GTK_VERSION}
|
|
|
|
COYIM_ICON= coyim.png
|
|
COYIM_ICON_SRC= ${WRKSRC}/build/mac-bundle/coy.iconset/icon_32x32@2x.png
|
|
COYIM_DESKTOP= ${WRKSRC}/build/coyim.desktop
|
|
|
|
pre-build:
|
|
cd ${WRKSRC} && ${SH} ./gen_version_file.sh ${DISTVERSIONPREFIX}${DISTVERSION}
|
|
|
|
post-build:
|
|
@${REINPLACE_CMD} -e '/^#/d' \
|
|
-e '/^$$/d' \
|
|
${COYIM_DESKTOP}
|
|
${ECHO_CMD} "Exec=${PREFIX}/bin/coyim" >> ${COYIM_DESKTOP}
|
|
${ECHO_CMD} "Icon=${COYIM_ICON}" >> ${COYIM_DESKTOP}
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${COYIM_DESKTOP} ${STAGEDIR}${PREFIX}/share/applications/
|
|
${INSTALL_DATA} ${COYIM_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${COYIM_ICON}
|
|
|
|
.include <bsd.port.mk>
|