1 |
# $MidnightBSD: mports/java/classpath/Makefile,v 1.3 2010/01/02 17:29:04 laffer1 Exp $ |
2 |
|
3 |
PORTNAME= classpath |
4 |
PORTVERSION= 0.97.2 |
5 |
CATEGORIES= java devel |
6 |
MASTER_SITES= ${MASTER_SITE_GNU} \ |
7 |
${MASTER_SITE_SAVANNAH} |
8 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
9 |
|
10 |
MAINTAINER= ports@MidnightBSD.org |
11 |
COMMENT= A GNU project to create a free Java class library |
12 |
LICENSE= gpl2 |
13 |
|
14 |
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip |
15 |
|
16 |
USE_JAVA= yes |
17 |
JAVA_VERSION= 1.5+ |
18 |
USE_XORG= x11 ice xtst xaw xproto xext |
19 |
USE_LDCONFIG= yes |
20 |
USE_GNOME= |
21 |
GNU_CONFIGURE= yes |
22 |
CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" |
23 |
CONFIGURE_ARGS= --enable-jni --disable-alsa --disable-dssi --disable-plugin |
24 |
USE_GMAKE= yes |
25 |
|
26 |
MAN1= gappletviewer.1 \ |
27 |
gjar.1 \ |
28 |
gjarsigner.1 \ |
29 |
gjavah.1 \ |
30 |
gcjh.1 \ |
31 |
gkeytool.1 \ |
32 |
gnative2ascii.1 \ |
33 |
gorbd.1 \ |
34 |
grmid.1 \ |
35 |
grmiregistry.1 \ |
36 |
gserialver.1 \ |
37 |
gtnameserv.1 |
38 |
|
39 |
INFO= cp-hacking cp-tools cp-vmintegration |
40 |
|
41 |
CONFLICTS= sablevm-classpath-* |
42 |
|
43 |
OPTIONS= GCONF "Use GConf based preferences backend" OFF \ |
44 |
GTK2 "Enable Gtk+ AWT peer" ON \ |
45 |
CAIRO "Use Gtk+ Cairo based Graphics2D" OFF \ |
46 |
QT4 "Enable Qt AWT peer" OFF |
47 |
|
48 |
.include <bsd.port.pre.mk> |
49 |
|
50 |
.if defined(WITH_GCONF) |
51 |
USE_GNOME+= gconf2 |
52 |
CONFIGURE_ARGS+= --enable-default-preferences-peer=gconf |
53 |
PLIST_SUB+= GCONF="" |
54 |
.else |
55 |
CONFIGURE_ARGS+= --enable-default-preferences-peer=file --disable-gconf-peer |
56 |
PLIST_SUB+= GCONF="@comment " |
57 |
.endif |
58 |
|
59 |
.if defined(WITHOUT_GTK2) |
60 |
CONFIGURE_ARGS+= --disable-gtk-peer |
61 |
PLIST_SUB+= GTK2="@comment " |
62 |
.if defined(WITH_CAIRO) |
63 |
IGNORE=you need to enable the Gtk+ AWT peer in order to use Cairo based Graphics2D. |
64 |
.endif |
65 |
.else |
66 |
USE_GNOME+= gtk20 |
67 |
PLIST_SUB+= GTK2="" |
68 |
.if defined(WITH_CAIRO) |
69 |
CONFIGURE_ARGS+= --enable-gtk-cairo |
70 |
.endif |
71 |
.endif |
72 |
|
73 |
.if defined(WITH_QT4) |
74 |
CONFIGURE_ARGS+= --enable-qt-peer |
75 |
.if defined(WITHOUT_GTK2) |
76 |
CONFIGURE_ARGS+= --enable-default-toolkit=gnu.java.awt.peer.qt.QtToolkit |
77 |
.endif |
78 |
CONFIGURE_ENV+= MOC="${LOCALBASE}/bin/moc-qt4" |
79 |
USE_QT_VER= 4 |
80 |
QT_COMPONENTS= moc_build corelib gui |
81 |
PLIST_SUB+= QT4="" |
82 |
.else |
83 |
PLIST_SUB+= QT4="@comment " |
84 |
.endif |
85 |
|
86 |
.include <bsd.port.post.mk> |