openbsd-ports/lang/classpath/Makefile

85 lines
2.0 KiB
Makefile
Raw Normal View History

2010-11-17 03:05:12 -05:00
# $OpenBSD: Makefile,v 1.20 2010/11/17 08:05:17 espie Exp $
# uses gcj which is only supported on select archs
ONLY_FOR_ARCHS= i386 amd64 sparc64
COMMENT= essential libraries for java
DISTNAME= classpath-0.98
2010-10-11 04:11:24 -04:00
REVISION= 3
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= converters/libiconv gcc4
MODGCC4_ARCHES= *
MODGCC4_LANGS= java
2010-10-18 15:20:41 -04:00
USE_GROFF = Yes
2010-11-17 03:05:12 -05:00
BUILD_DEPENDS= archivers/zip \
lang/antlr2
2010-11-17 03:05:12 -05:00
RUN_DEPENDS= lang/gcc/4.2,-java,java \
lang/antlr2
2010-11-17 03:05:12 -05:00
LIB_DEPENDS= x11/gtk+2 \
x11/dbus-glib \
devel/ORBit2 \
devel/gconf2 \
devel/libmagic \
devel/gmp
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 \
gmodule-2.0 gobject-2.0 gthread-2.0 intl m pango-1.0 \
pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread-stubs \
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
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/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
.include <bsd.port.mk>