93 lines
2.1 KiB
Makefile
93 lines
2.1 KiB
Makefile
# Created by: Robert C. Noland III <rnoland@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= swt
|
|
DISTVERSION= 3.5.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= x11-toolkits devel java
|
|
#MASTER_SITES= ${MASTER_SITE_ECLIPSE}
|
|
MASTER_SITES= http://archive.eclipse.org/eclipse/downloads/drops/${MASTER_SITE_SUBDIR}/
|
|
MASTER_SITE_SUBDIR= R-${DISTVERSION}-201002111343
|
|
DISTNAME= swt-${DISTVERSION}-${DIST_EXT}
|
|
|
|
MAINTAINER= giffunip@tutopia.com
|
|
COMMENT= Standard Widget Toolkit for Java
|
|
|
|
LICENSE= EPL
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
CONFLICTS= swt-3.1*
|
|
|
|
SWT_VERSION= 3557
|
|
OUTPUT_JAR= swt.jar
|
|
|
|
USE_ZIP= yes
|
|
USE_GL= yes
|
|
USES= pkgconfig
|
|
USE_GNOME= gtk20
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
JAVA_OS= native
|
|
USE_ANT= yes
|
|
MAKE_ARGS+= -Doutput.jar=${OUTPUT_JAR}
|
|
MAKEFILE= make_freebsd.mak
|
|
USE_LDCONFIG= yes
|
|
PLIST_SUB= BUILD=${SWT_VERSION}
|
|
PLIST_FILES= %%JAVAJARDIR%%/${OUTPUT_JAR} \
|
|
lib/libswt-atk-gtk-%%BUILD%%.so \
|
|
lib/libswt-awt-gtk-%%BUILD%%.so \
|
|
lib/libswt-gtk-%%BUILD%%.so \
|
|
lib/libswt-glx-gtk-%%BUILD%%.so \
|
|
lib/libswt-pi-gtk-%%BUILD%%.so
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
OPTIONS_DEFINE= CAIRO GNOMEVFS BROWSER
|
|
OPTIONS_DEFAULT= CAIRO GNOMEVFS
|
|
GNOMEVFS_DESC= Gnome VFS Support
|
|
BROWSER_DESC= Gecko Browser Support
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MCAIRO}
|
|
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
|
|
PLIST_FILES+= lib/libswt-cairo-gtk-%%BUILD%%.so
|
|
MAKE_CAIRO= make_cairo
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGNOMEVFS}
|
|
USE_GNOME+= gnomevfs2 libgnome libgnomeui
|
|
PLIST_FILES+= lib/libswt-gnome-gtk-%%BUILD%%.so
|
|
MAKE_GNOME= make_gnome
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MBROWSER}
|
|
USE_GECKO= libxul
|
|
BROKEN= Does not build with newer libxul
|
|
PLIST_FILES+= lib/libswt-xulrunner-gtk-%%BUILD%%.so
|
|
MAKE_MOZILLA= make_xulrunner
|
|
.endif
|
|
|
|
MAKE_ENV+= MAKE_CAIRO=${MAKE_CAIRO} \
|
|
MAKE_GNOME=${MAKE_GNOME} \
|
|
MAKE_MOZILLA=${MAKE_MOZILLA} \
|
|
JAVA_HOME=${JAVA_HOME}
|
|
|
|
.if (${ARCH} == "amd64")
|
|
DIST_EXT= gtk-linux-x86_64
|
|
.else
|
|
DIST_EXT= gtk-linux-x86
|
|
.endif
|
|
|
|
post-extract:
|
|
@(cd ${WRKSRC} && ${UNZIP_CMD} -qo "*.zip")
|
|
@${RM} -f ${WRKSRC}/*.o ${WRKSRC}/*.so ${WRKSRC}/*.jar
|
|
|
|
do-install:
|
|
${MKDIR} ${JAVAJARDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/libswt-*.so ${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/${OUTPUT_JAR} ${JAVAJARDIR}/
|
|
|
|
.include <bsd.port.mk>
|