# New ports collection makefile for: jude_take # Date created: 19 April 2004 # Whom: Yoshihiko Sarumaru # # $FreeBSD$ # PORTNAME= jude-community PORTVERSION= 5.5.2 CATEGORIES= devel java MASTER_SITES= # you have to register yourself as a member to download DISTNAME= ${PORTNAME}-${PORTVERSION:S!.!_!g} MAINTAINER= sarumaru@jp.FreeBSD.org COMMENT= A Java/UML Object-Oriented Design Tool USE_ZIP= yes .include # In case you are going to use JDK1.5 in Japanese environment, make sure # you have prepared following command to avoid from font problem: # ln -s ${LOCALBASE}/lib/X11/fonts/TrueType \ # ${LOCALBASE}/diablo-jdk1.5.0/jre/lib/fonts/fallback JAVA_VERSION= 1.5+ USE_JAVA= yes JAVA_OS= native NO_BUILD= yes .include "${PORTSDIR}/Mk/bsd.java.mk" RESTRICTED= See http://jude.change-vision.com/jude-web/notes/ProductLicenseAgreement.html WRKSRC= ${WRKDIR}/${PORTNAME:S!-!_!} REINPLACE_ARGS= -i "" .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) DOWNLOAD_URL= http://jude.change-vision.com/jude-web/download/index.html IGNORE= needs you to fetch manually the distribution file\ from ${DOWNLOAD_URL}, \ then place it in ${DISTDIR} and run make again .endif PLIST_FILES= bin/jude .if !defined(NOPORTDATA) PORTDATA= ${PORTNAME}.jar jude-api.jar jude-gui_en.properties_org \ jude.ico jude-doc.ico Welcome.jude Welcome_ja.jude \ template \ mozilla \ tools.jar .endif .if !defined(NOPORTDOCS) PORTDOCS= ReleaseNote-e.html ReleaseNote.html \ ProductInformation.txt \ README-e.txt README.txt \ API_sample_program_license_agreement-e.txt \ API_sample_program_license_agreement.txt .endif post-patch: ${REINPLACE_CMD} -e "s!%%JAVA_HOME%%!${JAVA_HOME}!; \ s!%%DATADIR%%!${DATADIR}!" ${WRKSRC}/jude .if !defined(NOPORTDOCS) ${REINPLACE_CMD} 's/png\\/png\//' ${WRKSRC}/api/*/doc/JudeAPI_reference.html .endif do-install: ${INSTALL_SCRIPT} ${WRKSRC}/jude ${PREFIX}/bin .if !defined(NOPORTDATA) ${MKDIR} ${DATADIR} (cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA:Nmozilla:Ntools.jar}" ${DATADIR}) ${INSTALL_SCRIPT} ${FILESDIR}/mozilla ${DATADIR} # ExportHTML needs lib/tools.jar of JDK1.5/1.6 ${LN} -s ${JAVA_HOME}/lib/tools.jar ${DATADIR} .endif .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} .for docfile in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR} .endfor ${MKDIR} ${DOCSDIR}/api (cd ${WRKSRC}/api && ${COPYTREE_SHARE} \* ${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} .endif .include