freebsd-ports/www/rssowl/Makefile
Mark Linimon 06e6677793 Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,
remove support for them from bsd.java.mk.  As Jikes is not available in Java 1.5
or higher, remove it from bsd.java.mk too (suggested by hq@) and from the ports
which used it (only occurences were USE_JIKES=no).  Support for the Blackdown VM
is also removed, as it is not available in Java 1.5 and higher.

Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect
old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5.
While here, replace static values of JAVA_VERSION in files/*.in by
%%JAVA_VERSION%% .

PR:		ports/158969
Submitted by:	rene
Tested on:	pointyhat-west -exp
2011-07-21 05:03:02 +00:00

75 lines
1.8 KiB
Makefile

# New ports collection makefile for: rssowl
# Date created: February, 1st 2006
# Whom: Matthias Sund <m.sund@arcor.de>
#
# $FreeBSD$
#
PORTNAME= rssowl
PORTVERSION= 1.2.3
PORTREVISION= 7
CATEGORIES= www java
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20classic%20%28dont%20use%29/${PORTVERSION}
DISTNAME= rssowl_${PORTVERSION:S|.|_|g}_src
MAINTAINER= m.sund@arcor.de
COMMENT= Portable RSS, RDF, Atom Newsfeeds reader
BUILD_DEPENDS= ${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt
RUN_DEPENDS= ${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt
BUILD_WRKSRC= ${WRKSRC}/src
ONLY_FOR_ARCHS= i386 amd64
USE_JAVA= yes
JAVA_VERSION= 1.5+
JAVA_OS= native
JAVA_RUN= yes
USE_ANT= yes
ALL_TARGET= deploy_linux
DOCS_PREFIX= doc
PORTDOCS= CHANGELOG.txt epl-v10.html mpl-v11.txt LICENSE.txt \
faq.html rssowl_i18n.template README.txt faq.xml
PLIST_FILES= bin/rssowl %%DATADIR%%/rssowl.jar share/pixmaps/rssowl.png
PLIST_DIRS= %%DATADIR%%
DESKTOP_ENTRIES="RSSOwl" \
"Read newsfeeds" \
"rssowl.png" \
"rssowl" \
"Application;Network;News;" \
true
post-patch:
@${REINPLACE_CMD} -e \
's|$${java\.io\.tmpdir}/source/|$${basedir}/temp/|; \
s|$${root}/lib/swt\.jar|${JAVALIBDIR}/swt.jar|; \
s|3230|3235|' \
${BUILD_WRKSRC}/build.xml
post-build:
@${ECHO_CMD} '#!/bin/sh' > ${WRKSRC}/rssowl
@${ECHO_CMD} "exec java -jar ${DATADIR}/rssowl.jar" >> ${WRKSRC}/rssowl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/rssowl ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/rssowl.jar ${DATADIR}
${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/img/32x32.png ${PREFIX}/share/pixmaps/rssowl.png
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${DOCS_PREFIX}/${f} ${DOCSDIR}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>