2004-04-20 15:50:33 +02:00
|
|
|
# New ports collection makefile for: jude_take
|
|
|
|
# Date created: 19 April 2004
|
|
|
|
# Whom: Yoshihiko Sarumaru <mistral@imasy.or.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-11-23 16:54:21 +01:00
|
|
|
PORTNAME= jude-community
|
2006-07-26 17:05:11 +02:00
|
|
|
PORTVERSION= 3.0.1
|
2005-04-22 11:59:37 +02:00
|
|
|
CATEGORIES= devel java
|
2004-11-23 16:54:21 +01:00
|
|
|
MASTER_SITES= # you have to register yourself as a member to download
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S!.!_!g}
|
2004-04-20 15:50:33 +02:00
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
|
|
|
MAINTAINER= mistral@imasy.or.jp
|
|
|
|
COMMENT= A Java/UML Object-Oriented Design Tool
|
|
|
|
|
|
|
|
USE_ZIP= yes
|
2005-10-23 14:24:24 +02:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.4+
|
2004-04-20 15:50:33 +02:00
|
|
|
# It doesn't work well with linux-sun-jdk14
|
|
|
|
# I haven't tested with the jdks of blackdown or ibm
|
|
|
|
JAVA_OS= native
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2006-07-04 14:13:16 +02:00
|
|
|
RESTRICTED= See http://jude.change-vision.com/jude-web/notes/ProductLicenseAgreement.html
|
2004-04-20 15:50:33 +02:00
|
|
|
|
2004-11-23 16:54:21 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME:S!-!_!}
|
|
|
|
|
2006-03-25 06:45:56 +01:00
|
|
|
DOWNLOAD_URL= http://jude.change-vision.com/jude-web/download/index.html
|
2004-04-20 15:50:33 +02:00
|
|
|
|
2006-07-04 14:13:16 +02:00
|
|
|
PLIST_FILES= bin/jude share/${PORTNAME}/mozilla
|
|
|
|
DATA_FILES= ${PORTNAME}.jar jude-api.jar JudeDefaultModel.jude \
|
|
|
|
jude.ico jude-doc.ico Welcome.jude
|
|
|
|
.for file in ${DATA_FILES}
|
|
|
|
PLIST_FILES+= share/${PORTNAME}/${file}
|
|
|
|
.endfor
|
|
|
|
PLIST_FILES+= share/${PORTNAME}/tools.jar
|
|
|
|
PLIST_DIRS= share/${PORTNAME}
|
|
|
|
|
2004-04-20 15:50:33 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-07-04 14:13:16 +02:00
|
|
|
PORTDOCS+= README-e.txt README.txt ReleaseNote-e.html ReleaseNote.html \
|
|
|
|
ProductInformation.txt
|
2004-04-20 15:50:33 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
2005-11-03 16:17:16 +01:00
|
|
|
IGNORE= needs you to fetch manually the distribution file\
|
|
|
|
from ${DOWNLOAD_URL}, \
|
|
|
|
then place it in ${DISTDIR} and run make again
|
2004-04-20 15:50:33 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2004-11-23 16:54:21 +01:00
|
|
|
${REINPLACE_CMD} -e "s!%%JAVA_HOME%%!${JAVA_HOME}!; \
|
|
|
|
s!%%DATADIR%%!${DATADIR}!" ${WRKSRC}/jude
|
2006-07-04 14:13:16 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${REINPLACE_CMD} 's/png\\/png\//' ${WRKSRC}/api/*/doc/index.html
|
|
|
|
.endif
|
2004-04-20 15:50:33 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/jude ${PREFIX}/bin
|
2005-08-01 16:32:28 +02:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/mozilla ${DATADIR}
|
2006-07-04 14:13:16 +02:00
|
|
|
.for datafile in ${DATA_FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${datafile} ${DATADIR}
|
|
|
|
.endfor
|
2004-04-20 15:50:33 +02:00
|
|
|
# ExportHTML needs lib/tools.jar to be copied
|
2004-11-23 16:54:21 +01:00
|
|
|
${LN} -s ${JAVA_HOME}/lib/tools.jar ${DATADIR}
|
2004-04-20 15:50:33 +02:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2006-07-04 14:13:16 +02:00
|
|
|
.for docfile in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
2004-04-20 15:50:33 +02:00
|
|
|
.endfor
|
2006-07-04 14:13:16 +02:00
|
|
|
@ ${MKDIR} ${DOCSDIR}/api
|
|
|
|
@ cd ${WRKSRC}/api && ${FIND} . | \
|
|
|
|
${CPIO} --quiet -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}/api
|
|
|
|
@ cd ${PREFIX} && ${FIND} share/doc/${PORTNAME}/api -type f -print | \
|
|
|
|
${SORT} -r >> ${TMPPLIST}
|
|
|
|
@ cd ${PREFIX} && ${FIND} share/doc/${PORTNAME}/api -type d -print | \
|
|
|
|
${SORT} -r | ${SED} -e 's#^#@dirrm #' >> ${TMPPLIST}
|
2004-04-20 15:50:33 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|