2744af60a7
One is via "${JAVA_BINPREFIX}-java", and one is via "${PKG_JAVA_HOME}/bin/java". The "${JAVA_BINPREFIX}-java" way relies on an appropriately named executable being present in the built-in JRE if you are using the built-in - something with a "-java" suffix. That just doesn't exist in either the MacOS Oracle JRE install or the JDK install. So switch to "${PKG_JAVA_HOME}/bin/java" instead, which works (but does require careful quoting to allow for spaces under MacOS). Bump PKGREVISION.
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.4 2020/04/26 01:05:15 dsainty Exp $
|
|
|
|
DISTNAME= diylc-3.28.0
|
|
PKGREVISION= 1
|
|
CATEGORIES= cad java
|
|
MASTER_SITES= http://diy-layout-creator.googlecode.com/files/
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= dsainty@NetBSD.org
|
|
HOMEPAGE= https://bancika.github.io/diy-layout-creator/
|
|
COMMENT= Simple electronic schematics CAD tool
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
USE_LANGUAGES= # none
|
|
USE_JAVA= run
|
|
|
|
INSTALLATION_DIRS= bin lib/java lib/java/diylc
|
|
|
|
do-build:
|
|
set -e; \
|
|
( \
|
|
cd "${WRKSRC}/lib"; unset cp; \
|
|
for jar in diylc.jar main.jar *.jar; do \
|
|
cp="$${cp}$${cp+:}${PREFIX}/lib/java/diylc/$${jar}"; \
|
|
done; \
|
|
${ECHO} "#!${SH}"; ${ECHO} "exec "${PKG_JAVA_HOME:Q:Q}"/bin/java -Xms512m -Xmx2048m -Dorg.diylc.scriptRun=true -cp \"$${cp}\" org.diylc.DIYLCStarter \"\$$@\"" \
|
|
) > ${WRKSRC}/diylc.sh
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/diylc.sh \
|
|
${DESTDIR}${PREFIX}/bin/diylc
|
|
${INSTALL_DATA} ${WRKSRC}/lib/*.jar \
|
|
${DESTDIR}${PREFIX}/lib/java/diylc/
|
|
${INSTALL_DATA} ${WRKSRC}/library/*.jar \
|
|
${DESTDIR}${PREFIX}/lib/java/diylc/
|
|
${INSTALL_DATA} ${WRKSRC}/diylc.jar \
|
|
${DESTDIR}${PREFIX}/lib/java/diylc/diylc.jar
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|