2004-02-09 17:22:27 +01:00
|
|
|
# New ports collection makefile for: Java Media Framework
|
|
|
|
# Date created: Sat Oct 25 16:05:29 EEST 2003
|
|
|
|
# Whom: Anton Yudin <toha@toha.org.ua>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= jmf
|
|
|
|
PORTVERSION= 2.1.1e
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 2
|
2004-02-09 17:22:27 +01:00
|
|
|
CATEGORIES= java
|
|
|
|
MASTER_SITES= #http://java.sun.com/products/java-media/jmf/2.1.1/download.html
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/g}-alljava
|
|
|
|
|
|
|
|
MAINTAINER= toha@toha.org.ua
|
|
|
|
COMMENT= Java Media Framework
|
|
|
|
|
2005-01-18 10:37:04 +01:00
|
|
|
USE_JAVA= yes
|
2011-07-21 07:03:02 +02:00
|
|
|
JAVA_VERSION= 1.5+
|
2004-02-09 17:22:27 +01:00
|
|
|
USE_ZIP= YES
|
|
|
|
NO_BUILD= YES
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/JMF-${PORTVERSION}
|
|
|
|
|
2012-01-03 07:41:23 +01:00
|
|
|
RESTRICTED= Redistribution of pre-compiled binaries is not permitted
|
2004-02-09 17:22:27 +01:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
# Check for JMF sources
|
2012-01-03 07:41:23 +01:00
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
|
|
|
|
IGNORE= because of licensing restrictions, you must fetch the source\
|
|
|
|
distribution manually.\
|
|
|
|
Please access: http://java.sun.com/products/java-media/jmf/2.1.1/download.html\
|
|
|
|
with a web browser and follow the "Download JMF ${PORTVERSION}" link.\
|
|
|
|
Select download format: cross-platform format. Please place this file in\
|
|
|
|
${DISTDIR}
|
2004-02-09 17:22:27 +01:00
|
|
|
.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
|
2012-01-03 07:41:23 +01:00
|
|
|
@${FIND} ${WRKSRC}/bin -type f \( -name '*.bak' -o -name '*.orig' \) -delete
|
2004-02-09 17:22:27 +01:00
|
|
|
|
|
|
|
do-install:
|
2012-01-03 07:41:23 +01:00
|
|
|
${MKDIR} ${PREFIX}/bin
|
2004-02-09 17:22:27 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/jm* ${PREFIX}/bin/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${WRKSRC}/lib/jmf.properties \
|
|
|
|
${JAVAJARDIR}/
|
|
|
|
.if !defined(NOPORTDOCS)
|
2012-01-03 07:41:23 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2004-02-09 17:22:27 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|