aboutsummaryrefslogtreecommitdiff
path: root/graphics/cairo-java
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2005-11-05 06:29:24 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2005-11-05 06:29:24 +0000
commite8ae3dec872e4b2941a0c8a61ddeef77b8ce1f7c (patch)
tree58494ed34b696495291fb100e1da14253c915fb5 /graphics/cairo-java
parent2abce9b40513c446e8003d12828c398c56e718c9 (diff)
downloadports-e8ae3dec872e4b2941a0c8a61ddeef77b8ce1f7c.tar.gz
ports-e8ae3dec872e4b2941a0c8a61ddeef77b8ce1f7c.zip
Notes
Diffstat (limited to 'graphics/cairo-java')
-rw-r--r--graphics/cairo-java/Makefile66
-rw-r--r--graphics/cairo-java/distinfo2
-rw-r--r--graphics/cairo-java/files/patch-cairo-java.pc.in8
-rw-r--r--graphics/cairo-java/files/patch-configure11
-rw-r--r--graphics/cairo-java/pkg-descr8
-rw-r--r--graphics/cairo-java/pkg-message7
-rw-r--r--graphics/cairo-java/pkg-plist65
7 files changed, 167 insertions, 0 deletions
diff --git a/graphics/cairo-java/Makefile b/graphics/cairo-java/Makefile
new file mode 100644
index 000000000000..a2c83d75c789
--- /dev/null
+++ b/graphics/cairo-java/Makefile
@@ -0,0 +1,66 @@
+# New ports collection makefile for: cairo-java
+# Date created: 26 Oct 2005
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom: ports/graphics/cairo-java/Makefile,v 1.2 2005/10/29 22:06:06 marcus Exp $
+#
+
+PORTNAME= cairo-java
+PORTVERSION= 1.0.1
+CATEGORIES= graphics java
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.0
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Java wrapper for the cairo graphics package
+
+LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo \
+ glibjni-${GLIB_API_VERSION}.1:${PORTSDIR}/devel/glib-java
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+INSTALLS_SHLIB= yes
+USE_AUTOTOOLS= libtool:15
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
+JAVA_OS= native
+USE_GCC= 3.4+
+USE_GNOME= gnomehack gnometarget
+USE_REINPLACE= yes
+CONFIGURE_ARGS= --without-gcj-compile
+CONFIGURE_ENV= CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/freebsd"
+CAIRO_API_VERSION= 1.0
+GLIB_API_VERSION= 0.2
+PLIST_SUB= CAIRO_API_VERSION=${CAIRO_API_VERSION} PORTNAME=${PORTNAME}
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+do-install:
+ ${MKDIR} ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/.libs/libcairojni-${CAIRO_API_VERSION}.so \
+ ${PREFIX}/lib/libcairojni-${CAIRO_API_VERSION}.so.1
+ ${LN} -sf ${PREFIX}/lib/libcairojni-${CAIRO_API_VERSION}.so.1 \
+ ${PREFIX}/lib/libcairojni-${CAIRO_API_VERSION}.so
+ ${MKDIR} ${PREFIX}/libdata/pkgconfig
+ ${INSTALL_DATA} ${WRKSRC}/cairo-java.pc ${PREFIX}/libdata/pkgconfig
+ ${MKDIR} ${JAVAJARDIR}
+ ${INSTALL_DATA} ${WRKSRC}/cairo${CAIRO_API_VERSION}.jar ${JAVAJARDIR}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${MKDIR} ${DOCSDIR}/api
+ cd ${WRKSRC}/doc/api && ${FIND} . | ${CPIO} -pdmu ${DOCSDIR}/api
+.endif
+ @${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g ; \
+ s|%%PREFIX%%|${PREFIX}|g ; \
+ s|%%CAIRO_API_VERSION%%|${CAIRO_API_VERSION}|g' \
+ < ${PKGDIR}/pkg-message > ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/graphics/cairo-java/distinfo b/graphics/cairo-java/distinfo
new file mode 100644
index 000000000000..04286e377224
--- /dev/null
+++ b/graphics/cairo-java/distinfo
@@ -0,0 +1,2 @@
+MD5 (gnome2/cairo-java-1.0.1.tar.bz2) = f56aee54177484d5e2e6cbba5ca09e73
+SIZE (gnome2/cairo-java-1.0.1.tar.bz2) = 252519
diff --git a/graphics/cairo-java/files/patch-cairo-java.pc.in b/graphics/cairo-java/files/patch-cairo-java.pc.in
new file mode 100644
index 000000000000..35e718070922
--- /dev/null
+++ b/graphics/cairo-java/files/patch-cairo-java.pc.in
@@ -0,0 +1,8 @@
+--- cairo-java.pc.in.orig Wed Oct 26 20:58:27 2005
++++ cairo-java.pc.in Wed Oct 26 20:58:39 2005
+@@ -10,4 +10,4 @@
+ Requires: cairo glib-java
+ api_version=@apiversion@
+ classpath=@INSTALLED_CLASSPATH@
+-Libs: -L@libdir@ -lcairojava
++Libs: -L@libdir@ -lcairojava-@apiversion@
diff --git a/graphics/cairo-java/files/patch-configure b/graphics/cairo-java/files/patch-configure
new file mode 100644
index 000000000000..637cd4ac25e9
--- /dev/null
+++ b/graphics/cairo-java/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Wed Oct 26 20:57:49 2005
++++ configure Wed Oct 26 20:58:13 2005
+@@ -20032,7 +20032,7 @@
+
+ apiversion="1.0"
+
+-INSTALLED_CLASSPATH=\${prefix}/share/java/cairo${apiversion}-${VERSION}.jar
++INSTALLED_CLASSPATH=\${prefix}/share/java/classes/cairo${apiversion}.jar
+ INSTALLED_JNI_DIR=\${prefix}/lib/
+
+
diff --git a/graphics/cairo-java/pkg-descr b/graphics/cairo-java/pkg-descr
new file mode 100644
index 000000000000..abc1cdd10d2f
--- /dev/null
+++ b/graphics/cairo-java/pkg-descr
@@ -0,0 +1,8 @@
+Java-GNOME is a set of Java bindings for GNOME and GTK libraries,
+so GNOME applications can be written in Java. It is implemented
+as a JNI layer that delegates the Java calls out to the underlying
+C library.
+
+-- Java-GNOME README
+
+WWW: http://java-gnome.sourceforge.net/
diff --git a/graphics/cairo-java/pkg-message b/graphics/cairo-java/pkg-message
new file mode 100644
index 000000000000..3d8bbd512f85
--- /dev/null
+++ b/graphics/cairo-java/pkg-message
@@ -0,0 +1,7 @@
+************************************************************************
+Libgtk-java was successfully installed. In order to build and run cairo
+Java applications, you must add the following to your CLASSPATH:
+
+%%JAVAJARDIR%%/cairo%%CAIRO_API_VERSION%%.jar
+
+************************************************************************
diff --git a/graphics/cairo-java/pkg-plist b/graphics/cairo-java/pkg-plist
new file mode 100644
index 000000000000..ac16ab757e28
--- /dev/null
+++ b/graphics/cairo-java/pkg-plist
@@ -0,0 +1,65 @@
+lib/libcairojni-%%CAIRO_API_VERSION%%.so
+lib/libcairojni-%%CAIRO_API_VERSION%%.so.1
+libdata/pkgconfig/%%PORTNAME%%.pc
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/api/allclasses-frame.html
+%%PORTDOCS%%%%DOCSDIR%%/api/allclasses-noframe.html
+%%PORTDOCS%%%%DOCSDIR%%/api/constant-values.html
+%%PORTDOCS%%%%DOCSDIR%%/api/deprecated-list.html
+%%PORTDOCS%%%%DOCSDIR%%/api/help-doc.html
+%%PORTDOCS%%%%DOCSDIR%%/api/index-all.html
+%%PORTDOCS%%%%DOCSDIR%%/api/index.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Antialias.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/CairoException.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Config.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Content.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Context.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Extend.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/FillRule.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Filter.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/FontExtents.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/FontFace.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/FontOptions.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/FontSlant.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/FontWeight.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Format.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Glyph.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Gradient.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/HintMetrics.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/HintStyle.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/ImageSurface.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/LineCap.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/LineJoin.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/LinearGradient.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Matrix.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Operator.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/PDFSurface.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Pattern.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Point.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/RadialGradient.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Rectangle.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/ScaledFont.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Status.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/SubpixelOrder.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/Surface.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/SurfacePattern.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/TextExtents.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/package-frame.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/package-summary.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/freedesktop/cairo/package-tree.html
+%%PORTDOCS%%%%DOCSDIR%%/api/overview-tree.html
+%%PORTDOCS%%%%DOCSDIR%%/api/package-list
+%%PORTDOCS%%%%DOCSDIR%%/api/packages.html
+%%PORTDOCS%%%%DOCSDIR%%/api/resources/inherit.gif
+%%PORTDOCS%%%%DOCSDIR%%/api/serialized-form.html
+%%PORTDOCS%%%%DOCSDIR%%/api/stylesheet.css
+share/java/classes/cairo%%CAIRO_API_VERSION%%.jar
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/api/resources
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/api/org/freedesktop/cairo
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/api/org/freedesktop
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/api/org
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/api
+%%PORTDOCS%%@dirrm %%DOCSDIR%%