blob: 8291a87e41105cb142eac9ac254f37107d14340a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# Created by: Robert C. Noland III <rnoland@FreeBSD.org>
# $FreeBSD$
PORTNAME= swt
DISTVERSION= 3.7.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= x11-toolkits devel java
MASTER_SITES= ECLIPSE
MASTER_SITE_SUBDIR= R-${DISTVERSION}-201109091335
PKGNAMESUFFIX= -devel
DISTNAME= swt-${DISTVERSION}-${DIST_EXT}
MAINTAINER= conrads@cox.net
COMMENT= Standard Widget Toolkit for Java
LICENSE= EPL
ONLY_FOR_ARCHS= i386 amd64 powerpc
SWT_VERSION= 3738
OUTPUT_JAR= ${PORTNAME}${PKGNAMESUFFIX}.jar
USE_GL= yes
USES= pkgconfig zip
USE_GNOME= gtk20
USE_JAVA= yes
JAVA_VERSION= 1.6+
JAVA_OS= native
USE_ANT= yes
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 MOZILLA
GNOMEVFS_DESC= Gnome VFS support
MOZILLA_DESC= Gecko browser support
OPTIONS_DEFAULT=CAIRO GNOMEVFS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCAIRO}
LIB_DEPENDS+= cairo:${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:MMOZILLA}
USES= gecko
BROKEN= Does now work 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
.elif (${ARCH} == "powerpc")
DIST_EXT= gtk-linux-ppc64
.else
DIST_EXT= gtk-linux-x86
.endif
.include <bsd.port.pre.mk>
post-extract:
.if ${OSVERSION} > 900044
@(cd ${WRKSRC} && /usr/bin/unzip -qo *.zip)
.else
@(cd ${WRKSRC} && ${UNZIP_CMD} -qo *.zip)
.endif
@${RM} -f ${WRKSRC}/*.o ${WRKSRC}/*.so ${WRKSRC}/*.jar
post-patch:
@${SED} -E -e 's|%%ARCH%%|${ARCH}|' \
-e 's|%%OUTPUT_JAR%%|${OUTPUT_JAR}|' \
${FILESDIR}/build.xml > ${WRKSRC}/build.xml
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_LIB} ${WRKSRC}/libswt-*.so ${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/${OUTPUT_JAR} ${STAGEDIR}${JAVAJARDIR}/
.include <bsd.port.post.mk>
|