diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2004-07-12 21:07:27 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2004-07-12 21:07:27 +0000 |
commit | 1f7d4b3c10f352a34526f7168c7d3dd5cf4099ec (patch) | |
tree | 0b9774482740be58c8e5e54deb82a6d22a5d8ddf /java/poseidon/Makefile | |
parent | - Unbreak (diff) |
Added support for the Standard Edition and the Professional Edition of
Poseidon for UML to the port.
It is possible to switch the edition using the knobs
POSEIDON_SE=yes for the Standard Edition or
POSEIDON_PE=yes for the Professional Edition.
The download mechanism also changed. The packages will be fetched
automatically from Gentleware's FTP server from now on.
PR: ports/68929
Submitted by: maintainer.
Notes
Notes:
svn path=/head/; revision=113503
Diffstat (limited to 'java/poseidon/Makefile')
-rw-r--r-- | java/poseidon/Makefile | 56 |
1 files changed, 42 insertions, 14 deletions
diff --git a/java/poseidon/Makefile b/java/poseidon/Makefile index f12908e3859c..369a1a95fb89 100644 --- a/java/poseidon/Makefile +++ b/java/poseidon/Makefile @@ -5,11 +5,11 @@ # $FreeBSD$ # -PORTNAME= poseidonCE +PORTNAME= poseidon PORTVERSION= 2.4.1 CATEGORIES= java -MASTER_SITES= # http://www.gentleware.com/products/download.php4 -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} # Required to print the message +MASTER_SITES= ftp://ftp.gentleware.org/ +DISTNAME= ${PORTNAME}${EDI}-${PORTVERSION} MAINTAINER= tux@pinguru.net COMMENT= A popular UML CASE tool @@ -22,28 +22,56 @@ NO_PACKAGE= "Redistribution is not permitted" NO_CDROM= ${NO_PACKAGE} RESTRICTED= ${NO_PACKAGE} -.include <bsd.port.pre.mk> - -.if !exists(${DISTDIR}/${DISTFILES}) -ECHO_MSG=/usr/bin/printf -IGNORE= :\n\ -Because of licensing restrictions, you must fetch the source distribution\n\ -manually. Please access http://www.gentleware.com/products/download.php4\n\ -with a web browser and load the \"ZIP for any Platform\" of the\n\ -Community Edition.\n\ -After download the file, place it into ${DISTDIR}.\n +.for edition in SE PE +. if defined(POSEIDON_${edition}) +EDI= ${edition} +. endif +.endfor +.if !defined(EDI) +EDI= CE +.endif +PKGLIST= pkg-plist.${EDI} +.if (${EDI} != PE) +POSEIDON_PATCH= ${PORTNAME}${EDI}.sh.patch .endif +PLIST:= ${WRKSRC}/PLIST + +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" + @${ECHO_MSG} "please specify POSEIDON_SE=yes for the Standard Edition" + @${ECHO_MSG} "or POSEIDON_PE=yes for the Professional Edition." + @${ECHO_MSG} + post-patch: +.if(defined(POSEIDON_PATCH)) + @cd ${WRKSRC} && ${PATCH} < ${PATCHDIR}/${POSEIDON_PATCH} +.endif @${REINPLACE_CMD} -e "s,%%JAVA_HOME%%,${JAVA_HOME}," ${WRKSRC}/bin/poseidon.sh +pre-install: + @${CAT} ${PKGLIST} ${PKGDIR}/pkg-plist > ${PLIST} + do-install: @${MKDIR} ${DATADIR}/bin @${MKDIR} ${DATADIR}/lib +.if(defined(POSEIDON_PE)) + @${MKDIR} ${DATADIR}/lib/templates +.endif ${INSTALL_SCRIPT} ${WRKSRC}/bin/poseidon.sh ${DATADIR}/bin ${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${DATADIR}/lib ${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DATADIR} +.if(defined(POSEIDON_PE)) + ${INSTALL_DATA} ${WRKSRC}/lib/templates/* ${DATADIR}/lib/templates + ${INSTALL_DATA} ${WRKSRC}/lib/templates.zip ${DATADIR}/lib +.endif +.if(!defined(POSEIDON_SE) && !defined(POSEIDON_PE)) ${INSTALL_DATA} ${WRKSRC}/license-keys.txt ${DATADIR} +.endif .if !defined(NOPORTDOCS) ${CP} -r ${WRKSRC}/docs ${DATADIR} ${CP} -r ${WRKSRC}/examples ${DATADIR} @@ -52,4 +80,4 @@ do-install: post-install: ${LN} -s ${DATADIR}/bin/poseidon.sh ${LOCALBASE}/bin/poseidon -.include <bsd.port.post.mk> +.include <bsd.port.mk> |