aboutsummaryrefslogblamecommitdiff
path: root/mail/nextcloud-mail/Makefile
blob: 6e060b2eb81f48aa7ab1649509ceecda46a9bbc1 (plain) (tree)
1
2
3
4
5
6
7
8
9
                    
                     

                         
                                                                                                                       
                          
                                    
                         
 
                                 
                                      
                                                    

                      
                                 
 
                                                                             
 
                                       
                    
                          
 

                         


                   
                                     
                                                            



                                                                  

                                                               

                      
PORTNAME=	mail
PORTVERSION=	2.2.2
DISTVERSIONPREFIX=	v
CATEGORIES=	mail
MASTER_SITES=	https://github.com/nextcloud-releases/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/
PKGNAMEPREFIX=	nextcloud-
PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
DIST_SUBDIR=	nextcloud

MAINTAINER=	brnrd@FreeBSD.org
COMMENT=	Mail app for Nextcloud
WWW=		https://apps.nextcloud.com/apps/mail

LICENSE=	AGPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS=	nextcloud${PHP_PKGNAMESUFFIX}>=25:www/nextcloud@${PHP_FLAVOR}

USES=		cpe gettext php:flavors
USE_PHP=	imap
IGNORE_WITH_PHP=	82

CPE_VENDOR=	nextcloud

NO_BUILD=	yes
NO_ARCH=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}
WWWDIR=		${PREFIX}/www/nextcloud/apps-pkg/${PORTNAME}

do-install:
	${MKDIR} ${STAGEDIR}${WWWDIR}
	(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
	(cd ${WRKSRC}; ${FIND} . -not -type d) | ${SORT} | \
		${SED} -e 's,^\.,${WWWDIR_REL},' >> ${TMPPLIST}

.include <bsd.port.mk>