summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/swt31/Makefile
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-10-01 08:57:52 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-10-01 08:57:52 +0800
commitbdc7d8982b1bba76f41d242376c286d93537ed3a (patch)
tree682c5e51104c74def43ee9d4d42eb25233796c23 /x11-toolkits/swt31/Makefile
parent9bb535346507bb4a6fb8de9e5b6bc433a597d0ba (diff)
downloadmarcuscom-ports-bdc7d8982b1bba76f41d242376c286d93537ed3a.tar
marcuscom-ports-bdc7d8982b1bba76f41d242376c286d93537ed3a.tar.gz
marcuscom-ports-bdc7d8982b1bba76f41d242376c286d93537ed3a.tar.bz2
marcuscom-ports-bdc7d8982b1bba76f41d242376c286d93537ed3a.tar.lz
marcuscom-ports-bdc7d8982b1bba76f41d242376c286d93537ed3a.tar.xz
marcuscom-ports-bdc7d8982b1bba76f41d242376c286d93537ed3a.tar.zst
marcuscom-ports-bdc7d8982b1bba76f41d242376c286d93537ed3a.zip
- Fix build with gecko moving to LOCALBASE
- Fix up gecko usage, git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7438 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits/swt31/Makefile')
-rw-r--r--x11-toolkits/swt31/Makefile112
1 files changed, 112 insertions, 0 deletions
diff --git a/x11-toolkits/swt31/Makefile b/x11-toolkits/swt31/Makefile
new file mode 100644
index 000000000..8838085e9
--- /dev/null
+++ b/x11-toolkits/swt31/Makefile
@@ -0,0 +1,112 @@
+# New ports collection makefile for: swt
+# Date created: 2005-12-15
+# Whom: past@ebs.gr
+#
+# $FreeBSD: ports/x11-toolkits/swt31/Makefile,v 1.4 2006/05/13 05:00:38 edwin Exp $
+#
+
+PORTNAME= swt
+PORTVERSION= 3.1.1
+PORTREVISION= 1
+CATEGORIES= x11-toolkits devel java
+MASTER_SITES= ${MASTER_SITE_ECLIPSE}
+MASTER_SITE_SUBDIR= R-${PORTVERSION}-200509290840
+
+MAINTAINER= freebsd-eclipse@freebsd.org
+COMMENT= Standard Widget Toolkit for Java
+
+SWT_VERSION= 3139
+NO_WRKSUBDIR= yes
+ONLY_FOR_ARCHS= i386 amd64
+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_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
+WITHOUT_CAIRO= yes
+.else
+DISTNAME= swt-${PORTVERSION}-gtk-linux-x86
+.endif
+
+.if !defined(WITHOUT_MOZILLA)
+USE_GECKO= firefox mozilla seamonkey xulrunner
+.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
+PLIST_FILES+= lib/libswt-mozilla-gtk-%%BUILD%%.so
+MAKE_MOZILLA= make_mozilla
+BROWSER= ${GECKO}
+MAKE_ENV+= GECKO_CONFIG="${GECKO_CONFIG}"
+.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
+
+MAKE_ENV+= BROWSER="${BROWSER}" \
+ JAVA_HOME="${JAVA_HOME}" \
+ MAKE_GNOME=${MAKE_GNOME} \
+ MAKE_MOZILLA=${MAKE_MOZILLA} \
+ MAKE_CAIRO=${MAKE_CAIRO} \
+ MACHINE_ARCH=${MACHINE_ARCH} \
+ CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include"
+
+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
+ @${REINPLACE_CMD} -E \
+ -e 's|%%CC%%|${CC}|' \
+ -e 's|%%CXX%%|${CXX}|' \
+ ${WRKSRC}/build.sh
+
+do-build:
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} build.sh)
+
+do-install:
+ ${MKDIR} ${JAVAJARDIR}
+ ${INSTALL_DATA} ${WRKSRC}/libswt-*.so ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/swt.jar ${JAVAJARDIR}/
+
+.include <bsd.port.post.mk>