freebsd-ports/math/octave-forge-java/Makefile
Stephen Montgomery-Smith 83d7fd8ac9 - Remove .include <bsd.ports.pre.mk>; bsd.ports.post.mk to bsd.ports.mk;
${PORTSDIR} to ${.CURDIR}/../.. in the .include for bsd.octave.mk.
  This is because USE_GMAKE no longer works after .include <bsd.ports.pre.mk>.
- Trim headers.
- Clean whitespace.
- Portlint.
2013-07-05 20:59:44 +00:00

37 lines
1 KiB
Makefile

# Created by: Stephen Montgomery-Smith <stephen@FreeBSD.org>
# $FreeBSD$
PORTNAME= octave-forge-java
PORTVERSION= 1.2.9
CATEGORIES= math java
MAINTAINER= stephen@FreeBSD.org
COMMENT= Octave-forge package ${OCTAVE_PKGNAME}
# OCTSRC is the name of the directory of the package.
# It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}.
OCTSRC= ${OCTAVE_PKGNAME}
GNU_CONFIGURE= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
CONFIGURE_ENV+= JAVA_HOME=${JAVA_HOME}
WRKSRC= ${WRKDIR}/${OCTSRC}/src
MAKE_ENV+= MKOCTFILE=mkoctfile
BROKEN= does not work with openjdk, and will soon be part of octave base
RUN_DEPENDS+= ${TARBALLS_DIR}/signal.tar.gz:${PORTSDIR}/math/octave-forge-signal
.include "${.CURDIR}/../../Mk/bsd.octave.mk"
post-patch:
${REINPLACE_CMD} 's+/client/libjvm.so+/server/libjvm.so+' ${WRKSRC}/__java__.cc
${REINPLACE_CMD} 's|getenv ("JAVA_HOME")|"${JAVA_HOME}"|' ${WRKDIR}/java/pre_install.m
post-build:
${RM} -f ${WRKSRC}/Makefile ${WRKSRC}/configure
cd ${WRKDIR} && ${TAR} cfz ${DISTNAME}.tar.gz ${OCTSRC}
.include <bsd.port.mk>