diff options
author | hq <hq@FreeBSD.org> | 2004-12-19 03:34:56 +0000 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2004-12-19 03:34:56 +0000 |
commit | 0d03238ac07cd754daa0f4e8a20c8bccc28a63ed (patch) | |
tree | 3011ec7794f34a48bab4e5e6bc3c04931c5749b6 /textproc/jdictionary/Makefile | |
parent | 1b36f3f4b619cbbbb75ba76735ca9119193fe5e3 (diff) | |
download | FreeBSD-ports-0d03238ac07cd754daa0f4e8a20c8bccc28a63ed.zip FreeBSD-ports-0d03238ac07cd754daa0f4e8a20c8bccc28a63ed.tar.gz |
- Use bsd.java.mk
- Use SUB_LIST to transform the launcher shell script
- Use DATADIR=${JAVASHAREDIR}/${PORTNAME} as encouraged in the Porter's
handbook for Java application ports.
- Add $FreeBSD$ tags where missing
- Use INSTALL_DATA to install JAR file
- Minor cosmetic improvements
- Bump PORTREVISION as the location of files has changed
- Add support for plugin ports (this port will act as the MASTERDIR for plugin
ports that will include Makefile.plugin)
Reviewed by: glewis
Approved by: maintainer
Diffstat (limited to 'textproc/jdictionary/Makefile')
-rw-r--r-- | textproc/jdictionary/Makefile | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/textproc/jdictionary/Makefile b/textproc/jdictionary/Makefile index 9b8e1fb..f38390f 100644 --- a/textproc/jdictionary/Makefile +++ b/textproc/jdictionary/Makefile @@ -7,31 +7,30 @@ PORTNAME= jdictionary PORTVERSION= 1.8 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc java MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR=jdictionary -DISTNAME= jdictionary-1_8 +MASTER_SITE_SUBDIR=${PORTNAME} +DISTNAME= ${PORTNAME}-${PORTVERSION:S,.,_,} MAINTAINER= janos.mohacsi@bsd.hu -COMMENT= JDictionary - Platform independent, plugin based dictionary +COMMENT= Platform independent, plugin based dictionary -RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper \ - ${LOCALBASE}/etc/javavms:${PORTSDIR}/java/jdk13 +RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper + +USE_JAVA= yes +JAVA_VERSION= 1.3+ USE_ZIP= yes -WRKSRC= ${WRKDIR}/jdictionary -NO_BUILD=yes +WRKSRC= ${WRKDIR}/${PORTNAME} +NO_BUILD= yes -do-configure: - @${SED} "s|%%PREFIX%%|${PREFIX}|g ; s|%%LOCALBASE%%|${LOCALBASE}|g" \ - ${FILESDIR}/jdictionary.sh > ${WRKDIR}/jdictionary.sh +DATADIR= ${JAVASHAREDIR}/${PORTNAME} +SUB_FILES= jdictionary.sh do-install: - @if [ ! -d ${PREFIX}/share/java/classes/jdictionary ]; then \ - ${MKDIR} ${PREFIX}/share/java/classes/jdictionary; fi - ${CP} ${WRKSRC}/jdictionary.jar \ - ${PREFIX}/share/java/classes/jdictionary/ + ${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/jdictionary.jar ${DATADIR}/ ${INSTALL_SCRIPT} ${WRKDIR}/jdictionary.sh ${PREFIX}/bin/jdictionary .include <bsd.port.mk> |