2012-12-10 14:18:28 +01:00
|
|
|
# Created by: Gerrit Beine (<tux@pinguru.net>)
|
2004-04-09 19:43:25 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-07-12 23:07:27 +02:00
|
|
|
PORTNAME= poseidon
|
2009-04-26 10:15:35 +02:00
|
|
|
PORTVERSION= 6.0.2
|
2005-06-10 20:03:33 +02:00
|
|
|
CATEGORIES= java devel
|
2009-05-16 06:28:18 +02:00
|
|
|
MASTER_SITES= http://download.gentleware.com/ \
|
|
|
|
ftp://gentleware.com/
|
2005-06-10 20:03:33 +02:00
|
|
|
DISTNAME= ${PORTNAME}${EDITION}-${PORTVERSION}
|
2004-04-09 19:43:25 +02:00
|
|
|
|
2008-12-08 07:43:50 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-07-05 21:27:03 +02:00
|
|
|
COMMENT= Popular UML CASE tool
|
2004-04-09 19:43:25 +02:00
|
|
|
|
2014-03-10 16:21:21 +01:00
|
|
|
USES= zip
|
2004-11-02 02:04:56 +01:00
|
|
|
USE_JAVA= yes
|
2012-12-10 14:18:28 +01:00
|
|
|
JAVA_VERSION= 1.6+
|
2012-12-10 17:49:34 +01:00
|
|
|
JAVA_VENDOR= openjdk # the port is broken with Sun JDKs
|
2004-04-09 19:43:25 +02:00
|
|
|
NO_BUILD= yes
|
2006-09-03 02:57:45 +02:00
|
|
|
RESTRICTED= Redistribution is not permitted
|
2004-04-09 19:43:25 +02:00
|
|
|
|
2004-12-20 20:25:59 +01:00
|
|
|
EDITION= CE
|
|
|
|
.if defined(WITH_EDITION)
|
|
|
|
EDITION= ${WITH_EDITION}
|
2004-07-12 23:07:27 +02:00
|
|
|
.endif
|
2006-05-03 11:18:06 +02:00
|
|
|
DATAFILES= LICENSE.txt lib licenses-3rdparty
|
2004-12-20 20:25:59 +01:00
|
|
|
.if ${EDITION} == "PE"
|
2004-11-22 03:19:50 +01:00
|
|
|
DATAFILES+= LICENSE-concurrent.txt
|
|
|
|
.endif
|
|
|
|
PLIST_FILES= bin/poseidon %%DATADIR%%/bin/poseidon.sh
|
2004-04-09 19:43:25 +02:00
|
|
|
|
2005-10-07 20:00:40 +02:00
|
|
|
.if make(makesum)
|
|
|
|
DISTFILES+= ${PORTNAME}CE-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}PE-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}SE-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
.else
|
|
|
|
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
.endif
|
|
|
|
|
2014-07-05 02:22:07 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2004-11-22 03:19:50 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
PLIST_FILES+= %%DATADIR%%/docs %%DATADIR%%/examples
|
|
|
|
.endif
|
2004-07-12 23:07:27 +02:00
|
|
|
|
2004-12-20 20:25:59 +01:00
|
|
|
SUB_FILES= poseidon.sh
|
|
|
|
SUB_LIST= JAVA_HOME="${JAVA_HOME}" EDITION="${EDITION}"
|
|
|
|
|
2013-09-20 21:48:32 +02:00
|
|
|
NO_STAGE= yes
|
2004-07-12 23:07:27 +02:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "There is a free usable edition of Poseidon for UML,"
|
|
|
|
@${ECHO_MSG} "the Community Edition, which is installed by default."
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "If you like to install the Standard Edition or the Professional Edition"
|
2004-12-20 20:25:59 +01:00
|
|
|
@${ECHO_MSG} "please specify WITH_EDITION=SE for the Standard Edition"
|
|
|
|
@${ECHO_MSG} "or WITH_EDITION=PE for the Professional Edition."
|
2004-07-12 23:07:27 +02:00
|
|
|
@${ECHO_MSG}
|
|
|
|
|
2004-04-09 19:43:25 +02:00
|
|
|
do-install:
|
2004-11-22 03:19:50 +01:00
|
|
|
${MKDIR} ${DATADIR}/bin
|
2004-12-20 20:25:59 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/poseidon.sh ${DATADIR}/bin/
|
2004-11-22 03:19:50 +01:00
|
|
|
${LN} -s ${DATADIR}/bin/poseidon.sh ${PREFIX}/bin/poseidon
|
|
|
|
cd ${WRKSRC}/ \
|
|
|
|
&& ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \; \
|
|
|
|
&& ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
|
2014-07-05 02:22:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2004-11-22 03:19:50 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${LN} -s ${DOCSDIR} ${DATADIR}/docs
|
|
|
|
cd ${WRKSRC}/docs/ \
|
|
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
|
|
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${LN} -s ${EXAMPLESDIR} ${DATADIR}/examples
|
|
|
|
cd ${WRKSRC}/examples/ \
|
|
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \
|
|
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
|
2004-04-09 19:43:25 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2004-11-22 03:19:50 +01:00
|
|
|
@${FIND} -s ${DATAFILES:S,^,${WRKSRC}/,} -not -type d \
|
|
|
|
| ${SED} -ne 's,^${WRKSRC},${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
@${FIND} -s -d ${DATAFILES:S,^,${WRKSRC}/,} -type d \
|
|
|
|
| ${SED} -ne 's,^${WRKSRC},@dirrm ${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm ${DATADIR:S,^${PREFIX}/,,}/bin" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm ${DATADIR:S,^${PREFIX}/,,}" >> ${TMPPLIST}
|
2014-07-05 02:22:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2004-11-22 03:19:50 +01:00
|
|
|
@${FIND} -s ${WRKSRC}/examples -not -type d \
|
|
|
|
| ${SED} -ne 's,^${WRKSRC}/examples,${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
@${FIND} -s -d ${WRKSRC}/examples -type d \
|
|
|
|
| ${SED} -ne 's,^${WRKSRC}/examples,@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
.endif
|
2004-04-09 19:43:25 +02:00
|
|
|
|
2004-07-12 23:07:27 +02:00
|
|
|
.include <bsd.port.mk>
|