1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00
freebsd-ports/x11-toolkits/swt/Makefile
Max Brazhnikov fca8faf5bb x11-toolkits/swt: not for i386
Upstream dropped support for i386 several years ago.
2021-07-29 12:16:23 +03:00

61 lines
1.5 KiB
Makefile

# Created by: Robert C. Noland III <rnoland@FreeBSD.org>
PORTNAME= swt
DISTVERSION= 4.20
CATEGORIES= x11-toolkits devel java
MASTER_SITES= http://archive.eclipse.org/eclipse/downloads/drops4/R-${DISTVERSION}-202106111600/
DISTNAME= ${PORTNAME}-${DISTVERSION}-gtk-linux-x86_64
MAINTAINER= makc@FreeBSD.org
COMMENT= Standard Widget Toolkit for Java
LICENSE= EPL
ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le
USES= compiler:c++11-lang gl gmake gnome pkgconfig zip:infozip xorg
USE_ANT= yes
USE_GL= glu gl
USE_GNOME= gdkpixbuf2 gtk30
USE_JAVA= yes
USE_XORG= xtst
JAVA_OS= native
SWT_VERSION= 4944r26
MAKEFILE= make_freebsd.mak
MAKE_ENV= SWT_VERSION=${SWT_VERSION}
PLIST_SUB= SWT_VERSION=${SWT_VERSION}
NO_WRKSUBDIR= yes
OPTIONS_DEFINE= CAIRO WEBKIT
OPTIONS_DEFAULT= CAIRO
OPTIONS_SUB= yes
CAIRO_USE= GNOME=cairo
CAIRO_MAKE_ENV= MAKE_CAIRO=make_cairo
WEBKIT_IMPLIES= CAIRO
WEBKIT_LIB_DEPENDS= libsoup-2.4.so:devel/libsoup \
libwebkit2gtk-4.0.so:www/webkit2-gtk3
WEBKIT_MAKE_ENV= BUILD_WEBKIT2EXTENSION=yes
WEBKIT_MAKE_ENV_OFF= BUILD_WEBKIT2EXTENSION=no
post-extract:
@(cd ${WRKSRC} && ${UNZIP_CMD} -qo "*.zip")
@${CP} ${FILESDIR}/build.xml ${WRKSRC}/build.xml
@${CP} ${WRKSRC}/make_linux.mak ${WRKSRC}/make_freebsd.mak
post-patch:
${SED} -e 's|freebsd|dragonfly|g' ${WRKSRC}/make_freebsd.mak \
> ${WRKSRC}/make_dragonfly.mak
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_LIB} ${WRKSRC}/libswt-*.so ${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/swt.jar ${STAGEDIR}${JAVAJARDIR}/
.include <bsd.port.mk>