diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-04 09:39:36 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-04 09:39:36 +0000 |
commit | b6e4f5c348effb4ad9637f14690e10d1075d4550 (patch) | |
tree | d76582dbe7832835749dd0c1a3e04b932cfd8b30 /x11-toolkits/swt31/Makefile | |
parent | 356b573191c8478e0d86e9896217bd8cc70bcb13 (diff) | |
download | ports-b6e4f5c348effb4ad9637f14690e10d1075d4550.tar.gz ports-b6e4f5c348effb4ad9637f14690e10d1075d4550.zip |
New port: x11-toolkits/swt31 Standard Widget Toolkit for Java
This is a new port for SWT. SWT is the software component
that delivers native widget functionality for the Eclipse
platform in an operating system independent manner. This
port provides SWT without requiring a full download and
build of Eclipse. Other ports (like net/azureus) that need
SWT but not eclipse, can be subsequently changed to depend
on this, much lighter, port.
I tested it on i386, but am unable to verify whether it
works on amd64 or not, although all the necessary bits from
eclipse have been kept AFAICT. If someone later steps up
to the task, ONLY_FOR_ARCHS can be modified accordingly.
PR: ports/91083
Submitted by: Panagiotis Astithas <past@ebs.gr>
Notes
Notes:
svn path=/head/; revision=152720
Diffstat (limited to 'x11-toolkits/swt31/Makefile')
-rw-r--r-- | x11-toolkits/swt31/Makefile | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/x11-toolkits/swt31/Makefile b/x11-toolkits/swt31/Makefile new file mode 100644 index 000000000000..06d27b680b90 --- /dev/null +++ b/x11-toolkits/swt31/Makefile @@ -0,0 +1,110 @@ +# New ports collection makefile for: swt +# Date created: 2005-12-15 +# Whom: past@ebs.gr +# +# $FreeBSD$ +# + +PORTNAME= swt +PORTVERSION= 3.1 +CATEGORIES= x11-toolkits devel java +MASTER_SITES= ${MASTER_SITE_ECLIPSE} +MASTER_SITE_SUBDIR= R-${PORTVERSION}-200506271435 + +MAINTAINER= freebsd-eclipse@freebsd.org +COMMENT= Standard Widget Toolkit for Java + +SWT_VERSION= 3138 +NO_WRKSUBDIR= yes +# Someone with amd64 hardware must finish the amd64 support before it +# is enabled +ONLY_FOR_ARCHS= i386 +USE_GMAKE= yes +USE_ZIP= yes +MAKEFILE= make_freebsd.mak +INSTALLS_SHLIB= yes +PLIST_SUB= BUILD=${SWT_VERSION} +PLIST_FILES= %%JAVAJARDIR%%/swt.jar \ + lib/libswt-atk-gtk-%%BUILD%%.so \ + lib/libswt-awt-gtk-%%BUILD%%.so \ + lib/libswt-gtk-%%BUILD%%.so \ + lib/libswt-pi-gtk-%%BUILD%%.so + +USE_JAVA= yes +JAVA_VERSION= 1.4+ +JAVA_OS= native + +.if !defined(WITHOUT_MOZILLA) +PLIST_FILES+= lib/libswt-mozilla-gtk-%%BUILD%%.so +MAKE_MOZILLA= make_mozilla +.if defined(WITH_MOZILLA) && ${WITH_MOZILLA} != "mozilla" +BROWSER= ${WITH_MOZILLA} +BUILD_DEPENDS+= ${BROWSER}:${PORTSDIR}/www/${BROWSER} +.else +BUILD_DEPENDS+= mozilla:${PORTSDIR}/www/mozilla +BROWSER= mozilla +.endif +.else +BROWSER= +MAKE_MOZILLA= +.endif + +.if defined(WITHOUT_CAIRO) +MAKE_CAIRO= +.else +LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo +MAKE_CAIRO= make_cairo +PLIST_FILES+= lib/libswt-cairo-gtk-%%BUILD%%.so +.endif + +.if defined(WITHOUT_GNOMEVFS) +MAKE_GNOME= +USE_GNOME= gtk20 pkgconfig +.else +MAKE_GNOME= make_gnome +USE_GNOME= gtk20 gnomevfs2 libgnome libgnomeui pkgconfig +PLIST_FILES+= lib/libswt-gnome-gtk-%%BUILD%%.so +.endif + +.include <bsd.port.pre.mk> + +.if (${ARCH} == "amd64") +DISTNAME= swt-${PORTVERSION}-gtk-linux-x86_64 +.else +DISTNAME= swt-${PORTVERSION}-gtk-linux-x86 +.endif + +MAKE_ENV+= BROWSER="${BROWSER}" \ + JAVA_HOME="${JAVA_HOME}" \ + MAKE_GNOME=${MAKE_GNOME} \ + MAKE_MOZILLA=${MAKE_MOZILLA} \ + MAKE_CAIRO=${MAKE_CAIRO} \ + MACHINE_ARCH=${MACHINE_ARCH} + +post-extract: + @(cd ${WRKSRC} && ${UNZIP_CMD} -qo "*.zip") + @${CP} ${WRKSRC}/make_linux.mak ${WRKSRC}/make_freebsd.mak + +post-patch: + @${RM} ${WRKSRC}/lib*.so +.if (${ARCH} != "amd64") + @${PATCH} ${PATCH_DIST_ARGS} \ + "cairo.c" \ + ${FILESDIR}/manualpatch-cairo \ + + "cairo.h" \ + + "cairo_custom.c" \ + + "cairo_stats.c" \ + + "cairo_stats.h" \ + + "cairo_structs.c" \ + + "cairo_structs.h" +.endif + +do-build: + @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} build.sh) + +do-install: + ${MKDIR} ${JAVAJARDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/libswt-*.so ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/swt.jar ${JAVAJARDIR}/ + +.include <bsd.port.post.mk> |