aboutsummaryrefslogtreecommitdiffstats
path: root/net/java-beepcore/Makefile
blob: 0ca470932e9747719a72c781fdc03d718aa26037 (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
# New ports collection makefile for:   beepcore-java
# Date created:                14 May 2002
# Whom:                        Kimura Fuyuki <fuyuki@mj.0038.net>
#
# $FreeBSD$
#

PORTNAME=   beepcore
PORTVERSION=    0.9.07
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}-java
PKGNAMEPREFIX=  java-
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    An implementation of BEEP core and BEEP mapping for TCP in Java

RUN_DEPENDS=    ${JAVALIBDIR}/xercesImpl.jar:${PORTSDIR}/textproc/xerces-j

USE_JAVA=   yes
JAVA_VERSION=   1.3+
NO_BUILD=   yes

.if !defined(NOPORTDOCS)
PORTDOCS=   *
.endif

do-install:
    ${INSTALL_DATA} ${WRKSRC}/lib/beep*.jar ${JAVAJARDIR}
    cd ${WRKSRC}/example \
      && ${FIND} -s . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \
      && ${FIND} -s . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
    ${INSTALL_DATA} ${WRKSRC}/lib/example.jar ${EXAMPLESDIR}

post-install:
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.txt ${WRKSRC}/*.htm ${DOCSDIR}
.if !defined(NOPORTDOCS)
    cd ${WRKSRC}/doc \
      && ${FIND} -s . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
      && ${FIND} -s . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
.endif

.include <bsd.port.mk>