2010-11-17 03:05:12 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2010/11/17 08:05:17 espie Exp $
|
2006-04-10 21:01:34 -04:00
|
|
|
|
2009-06-16 11:31:02 -04:00
|
|
|
# uses gcj which is only supported on select archs
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64 sparc64
|
2006-04-10 21:01:34 -04:00
|
|
|
|
2007-09-15 20:27:05 -04:00
|
|
|
COMMENT= essential libraries for java
|
2006-04-10 21:01:34 -04:00
|
|
|
|
2009-06-16 11:31:02 -04:00
|
|
|
DISTNAME= classpath-0.98
|
2010-10-11 04:11:24 -04:00
|
|
|
REVISION= 3
|
2006-04-10 21:01:34 -04:00
|
|
|
|
|
|
|
CATEGORIES= lang java
|
|
|
|
|
2009-06-16 11:31:02 -04:00
|
|
|
DISTFILES= ${DISTNAME}.tar.gz \
|
|
|
|
ecj.jar:0
|
|
|
|
DIST_SUBDIR= classpath
|
|
|
|
|
2010-07-22 07:45:12 -04:00
|
|
|
.for _lib in javaio javalang javanio javautil \
|
|
|
|
javalangmanagement javalangreflect javanet
|
2009-06-16 11:31:02 -04:00
|
|
|
SHARED_LIBS+= ${_lib} 0.98
|
2006-04-10 21:01:34 -04:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.gnu.org/software/classpath/
|
|
|
|
|
2010-07-22 07:45:12 -04:00
|
|
|
# GPLv2
|
2006-04-10 21:01:34 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2009-06-16 11:31:02 -04:00
|
|
|
MODULES= converters/libiconv gcc4
|
|
|
|
MODGCC4_ARCHES= *
|
|
|
|
MODGCC4_LANGS= java
|
2010-10-18 15:20:41 -04:00
|
|
|
USE_GROFF = Yes
|
2009-06-16 11:31:02 -04:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
BUILD_DEPENDS= archivers/zip \
|
|
|
|
lang/antlr2
|
2006-04-10 21:01:34 -04:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
RUN_DEPENDS= lang/gcc/4.2,-java,java \
|
|
|
|
lang/antlr2
|
2006-04-10 21:01:34 -04:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
LIB_DEPENDS= x11/gtk+2 \
|
|
|
|
x11/dbus-glib \
|
|
|
|
devel/ORBit2 \
|
|
|
|
devel/gconf2 \
|
|
|
|
devel/libmagic \
|
|
|
|
devel/gmp
|
2006-04-10 21:01:34 -04:00
|
|
|
|
2009-06-16 11:31:02 -04:00
|
|
|
WANTLIB= ICE SM X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext \
|
|
|
|
Xfixes Xi Xinerama Xrandr Xrender Xtst atk-1.0 cairo \
|
2010-10-11 04:11:24 -04:00
|
|
|
dbus-1 expat fontconfig freetype gio-2.0 glib-2.0 \
|
2009-06-16 11:31:02 -04:00
|
|
|
gmodule-2.0 gobject-2.0 gthread-2.0 intl m pango-1.0 \
|
2009-08-10 13:31:07 -04:00
|
|
|
pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread-stubs \
|
2010-07-22 07:45:12 -04:00
|
|
|
xcb xcb-render xcb-render-util ORBit-2 gconf-2 magic gmp z \
|
|
|
|
gdk-x11-2.0 gdk_pixbuf-2.0 gtk-x11-2.0
|
2006-04-10 21:01:34 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=classpath/}
|
2009-06-16 11:31:02 -04:00
|
|
|
MASTER_SITES0= http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/
|
2006-04-10 21:01:34 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
2009-06-16 11:31:02 -04:00
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
|
2009-06-19 18:28:04 -04:00
|
|
|
JAVA=egij
|
2006-04-10 21:01:34 -04:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
|
2009-06-16 11:31:02 -04:00
|
|
|
--with-glibj=zip \
|
2010-07-22 07:45:12 -04:00
|
|
|
--disable-plugin \
|
2009-06-16 11:31:02 -04:00
|
|
|
--enable-gtk-peer \
|
|
|
|
--x-includes=${X11BASE}/include \
|
|
|
|
--x-libraries=${X11BASE}/lib \
|
|
|
|
--with-antlr-jar=${LOCALBASE}/share/java/antlr-2.7.5.jar
|
|
|
|
|
|
|
|
EXTRACT_CASES+= *.jar) true ;;
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@sed -e 's,%%DISTDIR%%,${FULLDISTDIR},' \
|
|
|
|
< ${FILESDIR}/ecj.in \
|
|
|
|
> ${WRKDIR}/bin/ecj
|
|
|
|
@chmod +x ${WRKDIR}/bin/ecj
|
2006-04-10 21:01:34 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|