blob: ab5bf8afa1938c2861ba5cd58ab500b9d5510bb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $NetBSD: Makefile,v 1.22 2022/09/18 18:33:51 he Exp $
#
GITHUB_PROJECT= encfs
GITHUB_TAG= v${PKGVERSION_NOREV}
DISTNAME= encfs-1.9.5
PKGREVISION= 1
PKGNAME= fuse-${DISTNAME}
CATEGORIES= filesystems
MASTER_SITES= ${MASTER_SITE_GITHUB:=vgough/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://vgough.github.io/encfs/
COMMENT= FUSE Encrypted Filesystem
LICENSE= gnu-gpl-v3
USE_TOOLS+= autoconf cmake pkg-config
USE_CMAKE= yes
USE_LANGUAGES= c c++
CONFIGURE_DIRS= ${WRKDIR}/build
CMAKE_ARG_PATH= ${WRKSRC}
# Remediate open-coding in cmake that badly reimplements autoconf's
# --mandir=.
# \todo File a bug upstream.
SUBST_CLASSES+= mandir
SUBST_STAGE.mandir= pre-configure
SUBST_MESSAGE.mandir= Remediating cmake PKGMANDIR
SUBST_FILES.mandir= CMakeLists.txt
SUBST_SED.mandir= -E -e "/MAN_DESTINATION/s,share/man,${PKGMANDIR},"
# \todo Add TEST_DEPENDS for unittest, after finding it or packaging
# it.
TEST_TARGET= test
post-extract:
${RUN} mkdir -p ${WRKDIR}/build
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/fuse.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/atomic64.mk"
.include "../../mk/bsd.pkg.mk"
|