# $OpenBSD: Makefile,v 1.31 2013/01/13 02:18:47 brad Exp $ # uses gcj which is only supported on select archs ONLY_FOR_ARCHS= amd64 i386 sparc64 COMMENT= essential libraries for Java DISTNAME= classpath-0.98 REVISION= 13 CATEGORIES= lang java DISTFILES= ${DISTNAME}.tar.gz \ ecj.jar:0 DIST_SUBDIR= classpath .for _lib in javaio javalang javanio javautil \ javalangmanagement javalangreflect javanet SHARED_LIBS+= ${_lib} 0.98 .endfor HOMEPAGE= http://www.gnu.org/software/classpath/ # GPLv2 PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes MODULES= devel/gettext gcc4 MODGCC4_VERSION= 4.6 MODGCC4_ARCHS= * MODGCC4_LANGS= java USE_GROFF = Yes BUILD_DEPENDS= archivers/zip \ lang/antlr3>=3.4p0 RUN_DEPENDS= lang/gcc/4.6,-java \ lang/antlr3>=3.4p0 LIB_DEPENDS= x11/gtk+2 \ devel/gconf2 \ devel/libmagic \ devel/gmp WANTLIB += GL ICE SM X11 Xau Xcomposite Xcursor Xdamage Xdmcp WANTLIB += Xext Xfixes Xi Xinerama Xrandr Xrender Xtst Xxf86vm WANTLIB += atk-1.0 cairo dbus-1 dbus-glib-1 drm expat ffi fontconfig WANTLIB += freetype gconf-2 gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 WANTLIB += glib-2.0 gmodule-2.0 gmp gobject-2.0 gthread-2.0 gtk-x11-2.0 WANTLIB += m magic pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre WANTLIB += pixman-1 png pthread-stubs stdc++ xcb xcb-render xcb-shm WANTLIB += z c pthread harfbuzz icudata icule icuuc MASTER_SITES= ${MASTER_SITE_GNU:=classpath/} MASTER_SITES0= http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/ USE_GMAKE= Yes USE_LIBTOOL= Yes CONFIGURE_STYLE=gnu CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \ JAVA=egij CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \ --with-glibj=zip \ --disable-plugin \ --enable-gtk-peer \ --x-includes=${X11BASE}/include \ --x-libraries=${X11BASE}/lib \ --with-antlr-jar=${LOCALBASE}/share/java/classes/antlr3.jar EXTRACT_CASES+= *.jar) true ;; pre-patch: @sed -e 's,%%DISTDIR%%,${FULLDISTDIR},' \ < ${FILESDIR}/ecj.in \ > ${WRKDIR}/bin/ecj @chmod +x ${WRKDIR}/bin/ecj .include