aboutsummaryrefslogblamecommitdiff
path: root/deskutils/freeplane/Makefile
blob: 1e272bbddd97923a30f21c488a853832ba2a23fd (plain) (tree)
1
2
3
4
5
6
7
8
9
                         
                      
                                      
                                                   

                                              
                                 
                                                                   
                                          



                                     
                                
 
                                                     
                   


                                      

                   


                                           
 
                                                    
 
                                            
 
           
                                                                   



                                                                                                                                      

                      
PORTNAME=	freeplane
DISTVERSION=	1.11.4
CATEGORIES=	deskutils editors java
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}%20stable
DISTNAME=	${PORTNAME}_bin-${PORTVERSION}

MAINTAINER=	nivit@FreeBSD.org
COMMENT=	Free mind mapping and knowledge management software
WWW=		https://www.freeplane.org/

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/license.txt

RUN_DEPENDS=	bash:shells/bash

USES=		cpe desktop-file-utils shebangfix zip
USE_JAVA=	yes

SHEBANG_FILES=	${WRKSRC}/freeplane.sh

NO_ARCH=	yes
NO_BUILD=	yes
SUB_FILES=	freeplane freeplane.desktop
SUB_LIST=	DATADIR=${DATADIR} \
		PREFIX=${PREFIX}

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

PLIST_SUB=	PORTVERSION="${PORTVERSION}"

do-install:
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} \
		"! ( -name license\.txt -or -name *\.bat -or -name *\.exe -or -name *\.orig -or -name *\.bak -or -name freeplane.sh )"
	${INSTALL_DATA} ${WRKDIR}/freeplane.desktop ${STAGEDIR}${DESKTOPDIR}/
	${INSTALL_SCRIPT} ${WRKSRC}/freeplane.sh ${STAGEDIR}${DATADIR}
	${INSTALL_SCRIPT} ${WRKDIR}/freeplane ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>