List Info

Thread: java/jai: update to 1.1.3 (works on FreeBSD 7 and removes ONLY_FOR_ARCHS)




java/jai: update to 1.1.3 (works on FreeBSD 7 and removes ONLY_FOR_ARCHS)
user name
2008-03-14 06:24:07
>Submitter-Id:	current-users
>Originator:	Mario Sergio Fujikawa Ferreira
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] java/jai: update to 1.1.3 (works on
FreeBSD 7 and removes ONLY_FOR_ARCHS)
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		update
>Release:	FreeBSD 7.0-STABLE i386
>Environment:
System: FreeBSD exxodus.fedaykin.here 7.0-STABLE FreeBSD
7.0-STABLE #35: Fri Feb 29 10:35:04 BRT 2008
>Description:
- Update to 1.1.3
- No longer limitted to i386 though at expense of
performance (which
  I neither mind nor notice since I want this to work with
FreeBSD
  7 and now it does)

Added file(s):
- files/pkg-message.in

Removed file(s):
- pkg-message-jre
- pkg-message-libmap

Port maintainer (javaFreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- jai-1.1.3.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/java/jai/Makefile
/usr/home/lioux/src/myports/tmp/jai/Makefile
--- /usr/ports/java/jai/Makefile	2007-05-20
08:01:32.000000000 -0300
+++ /usr/home/lioux/src/myports/tmp/jai/Makefile	2008-03-07
04:10:21.000000000 -0300
 -6,11
+6,10 
 #
 
 PORTNAME=	jai
-PORTVERSION=	1.1.2
-PORTREVISION=	2
+PORTVERSION=	1.1.3
 CATEGORIES=	java graphics
 MASTER_SITES=	#
-DISTNAME=	$-${PORTVERSION:S/./_/g}-lib-linux-i586

+DISTNAME=	$-${PORTVERSION:S/./_/g}-lib
 
 MAINTAINER=	javaFreeBSD.org
 COMMENT=	High performance image processing libraries for
Java
 -19,73
+18,45 
 JAVA_VERSION=	1.3+
 WRKSRC=		$/$-${PORTVERSION:S/./_/g}
 NO_BUILD=	yes
-ONLY_FOR_ARCHS=	i386
+
+USE_ZIP=	yes
+SUB_FILES=	pkg-message
+SUB_LIST=	TARGET_DIR=$
+PKGMESSAGE=	$/pkg-message
 
 RESTRICTED=	"Redistribution is not permitted"
 
-DOWNLOAD_URL=	http://java.sun.com/products/java-media/jai/downl
oads/download-${PORTVERSION:S/./_/g}.html
+DOWNLOAD_URL=	http://java.sun.com/products/java-media/jai/current.html

 
 TARGET_DIR=	$/$
-IMAGEIO_DIR=	$/jai-imageio
-PLIST_SUB+=	T=${TARGET_DIR:S/^$///}
JAVA_HOME=${JAVA_HOME:S/^$///}
IMAGEIO_DIR=${IMAGEIO_DIR:S/^$///}
-PKGMESSAGE=	$/pkg-message
+PLIST_SUB+=	T=${TARGET_DIR:S/^$///}
+
+PORTDOCS=	
+		COPYRIGHT-jai.txt 
+		DISTRIBUTIONREADME-jai.txt 
+		LICENSE-jai.txt 
+		THIRDPARTYLICENSEREADME-jai.txt
 
 .include <bsd.port.pre.mk>
 
 .if !exists($/$$)
&& !defined(PACKAGE_BUILDING)
-IGNORE=		"You must manually fetch the "Linux
CLASSPATH Install" distribution
($$) from $, place
it in $ and then run make again"
-.endif
-
-.if $ == "native"
-WITH_PLUGINWRAPPER=	yes
-RUN_DEPENDS+=	$/lib/pluginwrapper/jai.so:${PORTS
DIR}/www/linuxpluginwrapper
-.endif
-
-.if defined(NOINSTALL_IN_JRE)
-PLIST_SUB+=	INSTALL_IN_JRE="comment "
-.else
-PLIST_SUB+=	INSTALL_IN_JRE=""
-.endif
-
-pre-install:
-.if defined(NOINSTALL_IN_JRE)
-		$ -e
"s:%%TARGET_DIR%%:$:g"
$/pkg-message-jre > $
-.endif
-.if defined(WITH_PLUGINWRAPPER)
-.if defined(NOINSTALL_IN_JRE)
-		$ >> $
-		$ -e
"s:%%LIBDIR%%:$/lib:g"
$/pkg-message-libmap >> $
-.else
-		$ -e
"s:%%LIBDIR%%:$/jre/lib/i386:g"
$/pkg-message-libmap > $
-.endif
+IGNORE=		"You must manually fetch from the "Java
Advanced Imaging API 1.1.3 Download Page", the
"Java (no native acceleration)" distribution
($$) from $, place
it in $ and then run make again"
 .endif
 
 do-install:
-		$ -n ">> Creating destination
directory..."
-		$ $
-		$ " [DONE]"
-		$ -n ">> Installing
libraries..."
-		$ $/COPYRIGHT-jai.txt
$
-		$ $/INSTALL-jai.txt
$
-		$ $/LICENSE-jai.txt
$
-		$ $/README-jai.txt
$
-		$ $/jar
-		$ $/lib/jai_codec.jar
$/jar
-		$ $/lib/jai_core.jar
$/jar
-		$ $/lib/mlibwrapper_jai.jar
$/jar
-		$ $/lib
-		$ $/lib/libmlib_jai.so
$/lib
-.if !defined(NOINSTALL_IN_JRE)
-		$ -sf $/jar/jai_codec.jar
$/jre/lib/ext
-		$ -sf $/jar/jai_core.jar
$/jre/lib/ext
-		$ -sf $/jar/mlibwrapper_jai.jar
$/jre/lib/ext
-		$ -sf $/lib/libmlib_jai.so
$/jre/lib/i386
-.endif
-		$ " [DONE]"
+# documentation
+.ifndef(NOPORTDOCS)
+	$ $
+.for file in $
+	$ $/$ $
+.endfor
+.endif
+# jars
+	$ $
+	$ $/lib/jai_codec.jar
$
+	$ $/lib/jai_core.jar
$
 
 post-install:
-.if defined(NOINSTALL_IN_JRE) ||
defined(WITH_PLUGINWRAPPER)
-		$ $
-.endif
+	$ $
 
 .include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/java/jai/distinfo
/usr/home/lioux/src/myports/tmp/jai/distinfo
--- /usr/ports/java/jai/distinfo	2006-01-30
09:30:46.000000000 -0200
+++ /usr/home/lioux/src/myports/tmp/jai/distinfo	2008-03-07
03:51:54.000000000 -0300
 -1,3
+1,3 
-MD5 (jai-1_1_2-lib-linux-i586.tar.gz) =
62d641d17cb5df836e7cd1ddc751546b
-SHA256 (jai-1_1_2-lib-linux-i586.tar.gz) =
8b4c8abba994f7d1de24786356c05df87cf836b66fced520b7993469a31f
4056
-SIZE (jai-1_1_2-lib-linux-i586.tar.gz) = 2611646
+MD5 (jai-1_1_3-lib.zip) = ca8b26b359fcb2fa2c34b77add9af808
+SHA256 (jai-1_1_3-lib.zip) =
2c7c55e14bc7721fa91b1108d68111130ce9d69e3caa7d2d2a60f6b0b0ae
b752
+SIZE (jai-1_1_3-lib.zip) = 2056699
diff -ruN --exclude=CVS
/usr/ports/java/jai/files/pkg-message.in
/usr/home/lioux/src/myports/tmp/jai/files/pkg-message.in
--- /usr/ports/java/jai/files/pkg-message.in	1969-12-31
21:00:00.000000000 -0300
+++
/usr/home/lioux/src/myports/tmp/jai/files/pkg-message.in	200
8-03-07 04:10:53.000000000 -0300
 -0,0
+1,4 
+The JAI libraries are not installed in JRE, so you have to
add
+  %%TARGET_DIR%%/jai_codec.jar
+  %%TARGET_DIR%%/jai_core.jar
+to the CLASSPATH environment variable.
diff -ruN --exclude=CVS /usr/ports/java/jai/pkg-message-jre
/usr/home/lioux/src/myports/tmp/jai/pkg-message-jre
--- /usr/ports/java/jai/pkg-message-jre	2004-01-11
08:48:33.000000000 -0200
+++
/usr/home/lioux/src/myports/tmp/jai/pkg-message-jre	1969-12-
31 21:00:00.000000000 -0300
 -1,7
+0,0 
-The JAI libraries are not installed in JRE, so you have to
add
-  %%TARGET_DIR%%/jar/jai_codec.jar
-  %%TARGET_DIR%%/jar/jai_core.jar
-  %%TARGET_DIR%%/jar/mlibwrapper_jai.jar
-to the CLASSPATH environment variable, and add
-  %%TARGET_DIR%%/lib
-to the LD_LIBRARY_PATH environment variable.
diff -ruN --exclude=CVS
/usr/ports/java/jai/pkg-message-libmap
/usr/home/lioux/src/myports/tmp/jai/pkg-message-libmap
--- /usr/ports/java/jai/pkg-message-libmap	2004-01-11
08:48:33.000000000 -0200
+++
/usr/home/lioux/src/myports/tmp/jai/pkg-message-libmap	1969-
12-31 21:00:00.000000000 -0300
 -1,7
+0,0 
-In order to use the JAI API on FreeBSD native JavaVM,
-describe as follows to your /etc/libmap.conf.
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-[%%LIBDIR%%/libmlib_jai.so]
-libm.so.6	libm.so.2
-libc.so.6	pluginwrapper/jai.so
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
diff -ruN --exclude=CVS /usr/ports/java/jai/pkg-plist
/usr/home/lioux/src/myports/tmp/jai/pkg-plist
--- /usr/ports/java/jai/pkg-plist	2004-01-11
08:48:33.000000000 -0200
+++ /usr/home/lioux/src/myports/tmp/jai/pkg-plist	2008-03-07
04:08:57.000000000 -0300
 -1,20
+1,3 
-%%T%%/COPYRIGHT-jai.txt
-%%T%%/INSTALL-jai.txt
-%%T%%/LICENSE-jai.txt
-%%T%%/README-jai.txt
-%%T%%/jar/jai_codec.jar
-%%T%%/jar/jai_core.jar
-%%T%%/jar/mlibwrapper_jai.jar
-%%T%%/lib/libmlib_jai.so
-%%INSTALL_IN_JRE%%exec /bin/ln -sf
%D/%%T%%/jar/jai_codec.jar %D/%%JAVA_HOME%%/jre/lib/ext
-%%INSTALL_IN_JRE%%exec /bin/ln -sf %D/%%T%%/jar/jai_core.jar
%D/%%JAVA_HOME%%/jre/lib/ext
-%%INSTALL_IN_JRE%%exec /bin/ln -sf
%D/%%T%%/jar/mlibwrapper_jai.jar
%D/%%JAVA_HOME%%/jre/lib/ext
-%%INSTALL_IN_JRE%%exec /bin/ln -sf
%D/%%T%%/lib/libmlib_jai.so %D/%%JAVA_HOME%%/jre/lib/i386
-%%INSTALL_IN_JRE%%unexec /bin/rm -f
%D/%%JAVA_HOME%%/jre/lib/ext/jai_codec.jar
-%%INSTALL_IN_JRE%%unexec /bin/rm -f
%D/%%JAVA_HOME%%/jre/lib/ext/jai_core.jar
-%%INSTALL_IN_JRE%%unexec /bin/rm -f
%D/%%JAVA_HOME%%/jre/lib/ext/mlibwrapper_jai.jar
-%%INSTALL_IN_JRE%%unexec [ ! -e
%D/%%IMAGEIO_DIR%%/jar/mlibwrapper_jai.jar ] || /bin/ln -sf
%D/%%IMAGEIO_DIR%%/jar/mlibwrapper_jai.jar
%D/%%JAVA_HOME%%/jre/lib/ext
-%%INSTALL_IN_JRE%%unexec /bin/rm -f
%D/%%JAVA_HOME%%/jre/lib/i386/libmlib_jai.so
-dirrm %%T%%/lib
-dirrm %%T%%/jar
+%%T%%/jai_codec.jar
+%%T%%/jai_core.jar
 dirrm %%T%%
--- jai-1.1.3.patch ends here ---

_______________________________________________
freebsd-javafreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java

To unsubscribe, send any mail to
"freebsd-java-unsubscribefreebsd.org"

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )