constant and familiar method for launching java applications on OpenBSD. The use of JAVACMD, JAVA_HOME and PATH environment variables are well known methods for users to control which JVM is used to launch a java application. When a user sets up his environment javaPathHelp will use it. No attempt is made to prevent the user from running an application that requires a particular JVM version with a lower version. When the user's environment has not be setup, javaPathHelper falls back to inspecting which JDK or JVM satisfied the RUN_DEPENDS for the package. okay ian@
30 lines
709 B
Makefile
30 lines
709 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2006/08/01 14:43:56 kurt Exp $
|
|
|
|
COMMENT= "helper script for launching java applications"
|
|
|
|
DISTNAME= javaPathHelper-0.1
|
|
CATEGORIES= java
|
|
|
|
HOMEPAGE= http://www.intricatesoftware.com/OpenBSD/java
|
|
|
|
MAINTAINER= kurt@openbsd.org
|
|
|
|
MASTER_SITES= http://www.intricatesoftware.com/OpenBSD/java/
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
NO_BUILD= Yes
|
|
NO_REGRESS= Yes
|
|
|
|
do-install:
|
|
@sed -e "s+%%LOCALBASE%%+${TRUEPREFIX}+g" \
|
|
-e "s+%%PKG_DBDIR%%+${PKG_DBDIR}+g" \
|
|
${WRKBUILD}/javaPathHelper.in > ${WRKBUILD}/javaPathHelper
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/javaPathHelper ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|