aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/tonicpoint-viewer/Makefile
blob: 380ae760ce97e8eebf846aa7b3ed58aa9bd10cd7 (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
# New ports collection makefile for:    tonicpoint-viewer
# Date created:     2007-02-06
# Whom:         ports@c0decafe.net
#
# $FreeBSD$
#

PORTNAME=   viewer
PORTVERSION=    1.4
PORTREVISION=   1
CATEGORIES= graphics java
MASTER_SITES=   http://downloads.tonicsystems.com/viewer/
PKGNAMEPREFIX=  tonicpoint-
DISTNAME=   tonicpoint-${PORTVERSION}
EXTRACT_SUFX=   .jar
EXTRACT_ONLY=

MAINTAINER= ports@c0decafe.net
COMMENT=    PowerPoint presentations viewer

NO_CDROM=   free for non-commercial use

USE_JAVA=   yes
JAVA_VERSION=   1.5+

NO_WRKSUBDIR=   yes
NO_BUILD=   yes

BINNAME=    tonicpoint
JARFILE=    ${BINNAME}.jar
PLIST_FILES=    %%JAVAJARDIR%%/${JARFILE} bin/${BINNAME}

do-configure:
    @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|;'\
        -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|;'\
        -e 's|%%JARFILE%%|${JARFILE}|;' \
    ${FILESDIR}/${BINNAME} > ${WRKSRC}/${BINNAME}

do-install:
    @${MKDIR} ${JAVAJARDIR}
    ${INSTALL_DATA} ${DISTDIR}/${DISTNAME}.jar ${JAVAJARDIR}/${JARFILE}
    ${INSTALL_SCRIPT} ${WRKSRC}/${BINNAME} ${PREFIX}/bin/${BINNAME}

.include <bsd.port.mk>