90 lines
2.4 KiB
Makefile
90 lines
2.4 KiB
Makefile
# New ports collection Makefile for: gorilla
|
|
# Date created: 2006-02-11
|
|
# Whom: Kay Lehmann <kay_lehmann@web.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gorilla
|
|
PORTVERSION= 1.5.3.6
|
|
DISTVERSIONSUFFIX= a72f9d7
|
|
CATEGORIES= security
|
|
MASTER_SITES= LOCAL/crees/gorilla/ \
|
|
http://www.bayofrum.net/dist/${PORTNAME}/
|
|
DISTFILES= zdia-${PORTNAME}-v${DISTVERSION}-0-g${DISTVERSIONSUFFIX}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= crees@FreeBSD.org
|
|
COMMENT= Password Gorilla is a cross-platform Password Manager
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= itcl>=3.4:${PORTSDIR}/lang/itcl \
|
|
wish:${PORTSDIR}/x11-toolkits/tk-wrapper
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == i386
|
|
GORILLAARCH= FreeBSD-x86
|
|
DISTFILES+= gorilla-sha256-${DISTVERSION}_1${EXTRACT_SUFX}
|
|
.elif ${ARCH} == amd64
|
|
GORILLAARCH= FreeBSD-${ARCH}
|
|
DISTFILES+= gorilla-sha256-${DISTVERSION}_1${EXTRACT_SUFX}
|
|
.else
|
|
GORILLAARCH= bogus
|
|
WITHOUTSO= "@comment "
|
|
.endif
|
|
|
|
PLIST_SUB+= GORILLAARCH=${GORILLAARCH:L} WITHOUTSO=${WITHOUTSO}
|
|
|
|
WRKSRC= ${WRKDIR}/zdia-${PORTNAME}-${DISTVERSIONSUFFIX}
|
|
USE_TCL_RUN= 85+
|
|
USE_TK= 85+
|
|
SUB_FILES= gorilla
|
|
SUB_LIST= WISH=${WISH}
|
|
PORTDOCS= *
|
|
|
|
SRC_DIRS= blowfish modules msgs pics pwsafe tcllib twofish
|
|
|
|
post-patch:
|
|
# We don't want Linux/Windows/Darwin binaries thank you
|
|
.for irrelevant in linux-ix86 linux-x86_64 macosx-ix86 \
|
|
macosx-x86_64 win32-ix86 win32-x86_64
|
|
${RM} -r ${WRKSRC}/sources/tcllib/sha256c/${irrelevant}
|
|
.endfor
|
|
.for irrelevant in f32-Darwin-x86.dylib f32-Windows-x86.dll \
|
|
f32-Linux-x86.so f32-Linux-x86_64.so
|
|
${RM} ${WRKSRC}/sources/twofish/${irrelevant}
|
|
.endfor
|
|
|
|
do-build:
|
|
.if !defined(WITHOUTSO)
|
|
${MV} ${WRKDIR}/${PORTNAME}-sha256/sha256/${GORILLAARCH}/ \
|
|
${WRKSRC}/sources/tcllib/sha256c/${GORILLAARCH:L}
|
|
.endif
|
|
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/lib/gorilla
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/sources/*.tcl ${PREFIX}/lib/gorilla
|
|
.for dir in ${SRC_DIRS}
|
|
@${MKDIR} ${PREFIX}/lib/${PORTNAME}/${dir}
|
|
@cd ${WRKSRC}/sources/${dir} \
|
|
&& ${COPYTREE_SHARE} \* \
|
|
${PREFIX}/lib/${PORTNAME}/${dir}
|
|
.endfor
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
post-install:
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/gorilla
|
|
@${FIND} ${PREFIX}/lib/${PORTNAME}/ -name "*.tcl" \
|
|
| ${XARGS} ${CHMOD} ${BINMODE}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/README \
|
|
${WRKSRC}/sources/README.install-from-source \
|
|
${WRKSRC}/sources/CHANGES.txt \
|
|
${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|