65 lines
2.1 KiB
Makefile
65 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.48 2022/12/08 16:14:19 bsiegert Exp $
|
|
|
|
DISTNAME= coyim-0.3.11
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=coyim/}
|
|
PKGREVISION= 46
|
|
CATEGORIES= chat
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
EXTRACT_USING= bsdtar
|
|
|
|
MAINTAINER= fox@NetBSD.org
|
|
HOMEPAGE= https://coy.im/
|
|
COMMENT= Safe and secure by default chat client
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
USE_TOOLS+= pkg-config gmake
|
|
|
|
GO_DIST_BASE= ${PKGNAME_NOREV}
|
|
GO_SRCPATH= github.com/coyim/coyim
|
|
GO_BUILD_PATTERN= ${GO_SRCPATH}
|
|
|
|
MAKE_ENV+= CGO_LDFLAGS_ALLOW=".*"
|
|
MAKE_ENV+= CGO_CFLAGS_ALLOW=".*"
|
|
MAKE_ENV+= CGO_CXXFLAGS_ALLOW=".*"
|
|
MAKE_ENV+= CGO_CPPFLAGS_ALLOW=".*"
|
|
|
|
CHECK_PORTABILITY_SKIP+= build/mac-bundle/coyim-launcher.sh
|
|
|
|
COYIM_ICON= coyim.png
|
|
COYIM_ICON_SRC= ${WRKSRC}/build/mac-bundle/coy.iconset/icon_32x32@2x.png
|
|
COYIM_DESKTOP= ${WRKSRC}/build/coyim.desktop
|
|
COYIM_VERSION_FILE= ${WRKSRC}/gen_version_file.sh
|
|
|
|
INSTALLATION_DIRS+= share/applications share/pixmaps
|
|
|
|
REPLACE_SH+= gen_version_file.sh
|
|
|
|
SUBST_CLASSES+= desktop-entry
|
|
SUBST_STAGE.desktop-entry= post-build
|
|
SUBST_MESSAGE.desktop-entry= Create desktop entry.
|
|
SUBST_FILES.desktop-entry= ${COYIM_DESKTOP}
|
|
SUBST_SED.desktop-entry= -e 's|\# Exec=/path/to/coyim/executable|Exec=${PREFIX}/bin/coyim|'
|
|
SUBST_SED.desktop-entry+= -e 's|\# Icon=/path/to/Coy.icns|Icon=${COYIM_ICON}|'
|
|
SUBST_SED.desktop-entry+= -e '/^\#/d'
|
|
SUBST_SED.desktop-entry+= -e '/^$$/d'
|
|
|
|
CHECK_RELRO_SKIP= bin/coyim
|
|
|
|
pre-build:
|
|
${RUN} cd ${WRKSRC} && ${COYIM_VERSION_FILE} ${GITHUB_TAG}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKDIR}/bin/coyim ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${COYIM_DESKTOP} ${DESTDIR}${PREFIX}/share/applications/
|
|
${INSTALL_DATA} ${COYIM_ICON_SRC} ${DESTDIR}${PREFIX}/share/pixmaps/${COYIM_ICON}
|
|
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../graphics/cairo/buildlink3.mk"
|
|
.include "../../devel/pango/buildlink3.mk"
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
.include "../../x11/gtk3/buildlink3.mk"
|
|
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
|
|
.include "../../devel/go-golang-lru/buildlink3.mk"
|
|
.include "../../lang/go/go-package.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|