aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2008-05-14 22:51:04 +0800
committernork <nork@FreeBSD.org>2008-05-14 22:51:04 +0800
commit5e2e6a75cbd4a5e400723bc219939670ad5eb3ae (patch)
tree25ac94335cde6842ef6366c75beca0a48b8d2f6e
parent4535028ce42011d9705cdb1b6559373552445746 (diff)
downloadfreebsd-ports-gnome-5e2e6a75cbd4a5e400723bc219939670ad5eb3ae.tar.gz
freebsd-ports-gnome-5e2e6a75cbd4a5e400723bc219939670ad5eb3ae.tar.zst
freebsd-ports-gnome-5e2e6a75cbd4a5e400723bc219939670ad5eb3ae.zip
Add OPTIONS, Exporting HTML feature (off recomended), to use newer jdk.
Bump PORTREVISION, accordingly. PR: ports/123000 Reported by: Remi LAURENT cloud at madpowah.org Reviewed by: Yoshihiko Sarumaru mistral at imasy.or.jp (maintainer)
-rw-r--r--devel/astah-community/Makefile21
-rw-r--r--devel/jude-community/Makefile21
2 files changed, 26 insertions, 16 deletions
diff --git a/devel/astah-community/Makefile b/devel/astah-community/Makefile
index 1aac036db088..f476d2c87cf3 100644
--- a/devel/astah-community/Makefile
+++ b/devel/astah-community/Makefile
@@ -7,6 +7,7 @@
PORTNAME= jude-community
PORTVERSION= 5.2.1
+PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= # you have to register yourself as a member to download
DISTNAME= ${PORTNAME}-${PORTVERSION:S!.!_!g}
@@ -15,23 +16,29 @@ MAINTAINER= mistral@imasy.or.jp
COMMENT= A Java/UML Object-Oriented Design Tool
USE_ZIP= yes
-USE_JAVA= yes
# Export HTML function can be used with JDK 1.4 only.
# (But it can work with JDK 1.5 + copying JDK 1.4 tools.jar to ${DATADIR})
+OPTIONS= EXPORT_HTML "Enable Exporting HTML function (needs JDK1.4)" Off
+
+.include <bsd.port.pre.mk>
+
# 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 /usr/local/lib/X11/fonts/TrueType \
-# /usr/local/diablo-jdk1.5.0/jre/lib/fonts/fallback
-.if !defined(WITHOUT_EXPORT_HTML)
+# ln -s ${LOCALBASE}/lib/X11/fonts/TrueType \
+# ${LOCALBASE}/diablo-jdk1.5.0/jre/lib/fonts/fallback
+.if defined(WITH_EXPORT_HTML)
JAVA_VERSION= 1.4
.else
JAVA_VERSION= 1.4+
.endif
+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!-!_!}
@@ -46,7 +53,7 @@ DATA_FILES= ${PORTNAME}.jar jude-api.jar jude-gui_en.properties_org \
.for file in ${DATA_FILES}
PLIST_FILES+= share/${PORTNAME}/${file}
.endfor
-.if !defined(WITHOUT_EXPORT_HTML)
+.if defined(WITH_EXPORT_HTML)
PLIST_FILES+= share/${PORTNAME}/tools.jar
.endif
PLIST_DIRS= share/${PORTNAME}/template/project \
@@ -58,8 +65,6 @@ PORTDOCS+= README-e.txt README.txt ReleaseNote-e.html ReleaseNote.html \
ProductInformation.txt
.endif
-.include <bsd.port.pre.mk>
-
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= needs you to fetch manually the distribution file\
from ${DOWNLOAD_URL}, \
@@ -78,7 +83,7 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/jude ${PREFIX}/bin
${INSTALL_SCRIPT} ${FILESDIR}/mozilla ${DATADIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATA_FILES}" ${DATADIR})
-.if !defined(WITHOUT_EXPORT_HTML)
+.if defined(WITH_EXPORT_HTML)
# ExportHTML needs lib/tools.jar of JDK1.4
${LN} -s ${JAVA_HOME}/lib/tools.jar ${DATADIR}
.endif
diff --git a/devel/jude-community/Makefile b/devel/jude-community/Makefile
index 1aac036db088..f476d2c87cf3 100644
--- a/devel/jude-community/Makefile
+++ b/devel/jude-community/Makefile
@@ -7,6 +7,7 @@
PORTNAME= jude-community
PORTVERSION= 5.2.1
+PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= # you have to register yourself as a member to download
DISTNAME= ${PORTNAME}-${PORTVERSION:S!.!_!g}
@@ -15,23 +16,29 @@ MAINTAINER= mistral@imasy.or.jp
COMMENT= A Java/UML Object-Oriented Design Tool
USE_ZIP= yes
-USE_JAVA= yes
# Export HTML function can be used with JDK 1.4 only.
# (But it can work with JDK 1.5 + copying JDK 1.4 tools.jar to ${DATADIR})
+OPTIONS= EXPORT_HTML "Enable Exporting HTML function (needs JDK1.4)" Off
+
+.include <bsd.port.pre.mk>
+
# 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 /usr/local/lib/X11/fonts/TrueType \
-# /usr/local/diablo-jdk1.5.0/jre/lib/fonts/fallback
-.if !defined(WITHOUT_EXPORT_HTML)
+# ln -s ${LOCALBASE}/lib/X11/fonts/TrueType \
+# ${LOCALBASE}/diablo-jdk1.5.0/jre/lib/fonts/fallback
+.if defined(WITH_EXPORT_HTML)
JAVA_VERSION= 1.4
.else
JAVA_VERSION= 1.4+
.endif
+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!-!_!}
@@ -46,7 +53,7 @@ DATA_FILES= ${PORTNAME}.jar jude-api.jar jude-gui_en.properties_org \
.for file in ${DATA_FILES}
PLIST_FILES+= share/${PORTNAME}/${file}
.endfor
-.if !defined(WITHOUT_EXPORT_HTML)
+.if defined(WITH_EXPORT_HTML)
PLIST_FILES+= share/${PORTNAME}/tools.jar
.endif
PLIST_DIRS= share/${PORTNAME}/template/project \
@@ -58,8 +65,6 @@ PORTDOCS+= README-e.txt README.txt ReleaseNote-e.html ReleaseNote.html \
ProductInformation.txt
.endif
-.include <bsd.port.pre.mk>
-
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= needs you to fetch manually the distribution file\
from ${DOWNLOAD_URL}, \
@@ -78,7 +83,7 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/jude ${PREFIX}/bin
${INSTALL_SCRIPT} ${FILESDIR}/mozilla ${DATADIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATA_FILES}" ${DATADIR})
-.if !defined(WITHOUT_EXPORT_HTML)
+.if defined(WITH_EXPORT_HTML)
# ExportHTML needs lib/tools.jar of JDK1.4
${LN} -s ${JAVA_HOME}/lib/tools.jar ${DATADIR}
.endif