aboutsummaryrefslogtreecommitdiffstats
path: root/www/rssowl/Makefile
blob: 31ce55b97a50f5527fb977e17de48bfd224bc292 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# 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=   1
CATEGORIES= www java
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= rssowl
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

USE_X_PREFIX=   yes
BUILD_WRKSRC=   ${WRKSRC}/src

ONLY_FOR_ARCHS= i386 amd64

USE_JAVA=   yes
JAVA_VERSION=   1.4+
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>