blob: 917cfbf2a4c5fcc28d27420063031840851a3a60 (
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
|
# Created by: Anton Yudin <toha@toha.org.ua>
# $FreeBSD$
PORTNAME= jmf
PORTVERSION= 2.1.1e
PORTREVISION= 3
CATEGORIES= java multimedia
MASTER_SITES= #http://java.sun.com/products/java-media/jmf/2.1.1/download.html
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/g}-alljava
MAINTAINER= ports@FreeBSD.org
COMMENT= Java Media Framework
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= YES
WRKSRC= ${WRKDIR}/JMF-${PORTVERSION}
RESTRICTED= Redistribution of pre-compiled binaries is not permitted
OPTIONS_DEFINE= DOCS
PORTDOCS= *
.include <bsd.port.pre.mk>
# Check for JMF sources
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= because of licensing restrictions, you must fetch the source\
distribution manually.\
Please access: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html \
with a web browser and follow the "Java Media Framework (JMF) ${PORTVERSION}" link.\
Select download format: cross-platform format. Please place this file in\
${DISTDIR}
.endif
do-configure:
for file in `${LS} ${WRKSRC}/bin/jm*`; do \
${REINPLACE_CMD} -e "s:%%JAVAJARDIR%%:${JAVAJARDIR}:g" -e "s:%%PREFIX%%:${PREFIX}:g" $${file}; \
done
@${FIND} ${WRKSRC}/bin -type f \( -name '*.bak' -o -name '*.orig' \) -delete
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/jm* ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${WRKSRC}/lib/jmf.properties \
${STAGEDIR}${JAVAJARDIR}/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.post.mk>
|