4e1b79a0a6
With hat: portmgr Sponsored by: Absolight
39 lines
1.3 KiB
Makefile
39 lines
1.3 KiB
Makefile
# Created by: Beat Gaetzi <beat@chruetertee.ch>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= thinkingrock
|
|
PORTVERSION= 2.2.1
|
|
PORTREVISION= 3
|
|
CATEGORIES= deskutils java
|
|
MASTER_SITES= SF/${PORTNAME}/ThinkingRock/TR%20${PORTVERSION}
|
|
DISTNAME= tr-${PORTVERSION}
|
|
|
|
MAINTAINER= beat@FreeBSD.org
|
|
COMMENT= Application for collecting and processing your thoughts
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/xdg-open:devel/xdg-utils \
|
|
${LOCALBASE}/bin/xdg-email:devel/xdg-utils
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
NO_BUILD= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/bin/tr
|
|
@${REINPLACE_CMD} -e \
|
|
's|default_options="|default_options="-J-Djava.endorsed.dirs=${PREFIX}/${PORTNAME}/tr/modules/ext/endorsed |' \
|
|
${WRKSRC}/etc/tr.conf
|
|
@${RM} ${WRKSRC}/bin/tr.bak ${WRKSRC}/bin/tr.exe \
|
|
${WRKSRC}/bin/tr_w.exe ${WRKSRC}/etc/tr.conf.bak
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}
|
|
@${CP} -r ${WRKSRC}/* ${STAGEDIR}${PREFIX}/${PORTNAME}
|
|
@${LN} -sf ${PREFIX}/${PORTNAME}/bin/tr ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
@${ECHO} bin/${PORTNAME} >> ${TMPPLIST}
|
|
@(cd ${WRKSRC}; ${FIND} . ! -type d) | ${SORT} | ${SED} "s|^.|${PORTNAME}|" >> ${TMPPLIST}
|
|
@(cd ${WRKSRC}; ${FIND} . -type d -empty) | ${SORT} -r | ${SED} "s|^.|@dir ${PORTNAME}|" >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|