Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # $OpenBSD: Makefile,v 1.46 2017/04/10 11:46:22 sthen Exp $
  2. # uses gcj which is only supported on select archs
  3. ONLY_FOR_ARCHS= amd64 i386 sparc64
  4. BROKEN-sparc64= gcj blows during build
  5. COMMENT= essential libraries for Java
  6. DISTNAME= classpath-0.98
  7. REVISION= 21
  8. CATEGORIES= lang java
  9. DISTFILES= ${DISTNAME}.tar.gz \
  10. ecj.jar:0
  11. DIST_SUBDIR= classpath
  12. .for _lib in javaio javalang javanio javautil \
  13. javalangmanagement javalangreflect javanet
  14. SHARED_LIBS+= ${_lib} 0.98
  15. .endfor
  16. HOMEPAGE= https://www.gnu.org/software/classpath/
  17. # GPLv2
  18. PERMIT_PACKAGE_CDROM= Yes
  19. WANTLIB += GL ICE SM X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext
  20. WANTLIB += Xfixes Xi Xinerama Xrandr Xrender Xtst Xxf86vm atk-1.0 c
  21. WANTLIB += cairo dbus-1 dbus-glib-1 drm expat ffi fontconfig freetype
  22. WANTLIB += gconf-2 gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0
  23. WANTLIB += gmodule-2.0 gmp gobject-2.0 graphite2 gthread-2.0 gtk-x11-2.0
  24. WANTLIB += harfbuzz m magic pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre
  25. WANTLIB += pixman-1 png pthread pthread-stubs ${LIBCXX} xcb xcb-render
  26. WANTLIB += xcb-shm z
  27. MODULES= devel/gettext gcc4
  28. MODGCC4_ARCHS= *
  29. MODGCC4_LANGS= java
  30. BUILD_DEPENDS= archivers/zip \
  31. lang/antlr3>=3.4p0
  32. RUN_DEPENDS= lang/gcc/${MODGCC4_VERSION},-java \
  33. lang/antlr3>=3.4p0
  34. LIB_DEPENDS= x11/gtk+2 \
  35. devel/gconf2 \
  36. devel/libmagic \
  37. devel/gmp
  38. MASTER_SITES= ${MASTER_SITE_GNU:=classpath/}
  39. MASTER_SITES0= http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/
  40. USE_GMAKE= Yes
  41. CONFIGURE_STYLE=gnu
  42. CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
  43. LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
  44. JAVA=egij
  45. CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
  46. --with-glibj=zip \
  47. --disable-plugin \
  48. --enable-gtk-peer \
  49. --x-includes=${X11BASE}/include \
  50. --x-libraries=${X11BASE}/lib \
  51. --with-antlr-jar=${LOCALBASE}/share/java/classes/antlr3.jar
  52. EXTRACT_CASES+= *.jar) true ;;
  53. pre-patch:
  54. @sed -e 's,%%DISTDIR%%,${FULLDISTDIR},' \
  55. < ${FILESDIR}/ecj.in \
  56. > ${WRKDIR}/bin/ecj
  57. @chmod +x ${WRKDIR}/bin/ecj
  58. .include <bsd.port.mk>