aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/tonicpoint-viewer/Makefile
blob: 21d9848dc9f8aebd5570fe3aebb591abf93ac058 (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
# Created by: ports@c0decafe.net
# $FreeBSD$

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

MAINTAINER= ports@FreeBSD.org
COMMENT=    PowerPoint presentations viewer

DEPRECATED= No more public distfiles
EXPIRATION_DATE=    2012-11-26

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>