af58de36d6
gcj to fix it)
81 lines
2.0 KiB
Makefile
81 lines
2.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.40 2014/04/28 11:40:05 landry Exp $
|
|
|
|
# uses gcj which is only supported on select archs
|
|
ONLY_FOR_ARCHS= amd64 i386 sparc64
|
|
BROKEN-sparc64= gcj blows during build
|
|
|
|
COMMENT= essential libraries for Java
|
|
|
|
DISTNAME= classpath-0.98
|
|
REVISION= 17
|
|
|
|
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= https://www.gnu.org/software/classpath/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MODULES= devel/gettext gcc4
|
|
MODGCC4_ARCHS= *
|
|
MODGCC4_LANGS= java
|
|
USE_GROFF = Yes
|
|
|
|
BUILD_DEPENDS= archivers/zip \
|
|
lang/antlr3>=3.4p0
|
|
|
|
RUN_DEPENDS= lang/gcc/${MODGCC4_VERSION},-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
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=classpath/}
|
|
MASTER_SITES0= http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/
|
|
|
|
USE_GMAKE= 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 <bsd.port.mk>
|