environment, which will reduce complexity in java.port.mk when jdk 11 is added. direction agreed with kurt@. - switch all MODJAVA_VER to at least 1.8 (we don't currently have any version earlier than this anyway). - drop MODJAVA_JRERUN, the separate jre package will be going away with jdk 11. - bump changed ports
55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
# $OpenBSD: Makefile,v 1.12 2019/03/24 22:24:13 sthen Exp $
|
|
|
|
COMMENT= educational mathematical software
|
|
|
|
V= 4.2.60.0
|
|
DISTNAME= GeoGebra-Unixlike-Installer-${V}
|
|
PKGNAME= geogebra-${V}
|
|
REVISION= 5
|
|
|
|
CATEGORIES= math java
|
|
|
|
HOMEPAGE= http://www.geogebra.org
|
|
|
|
# Apache Software License
|
|
# GPLv3, LGPLv3, BSD, Public Domain
|
|
# GeoGebra Non-Commercial License
|
|
# Creative Commons Attribution-Share Alike 3.0
|
|
# See: http://www.geogebra.org/download/license.txt
|
|
PERMIT_PACKAGE_CDROM= No
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILE_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLECODE:=geogebra/}
|
|
|
|
MODULES= java
|
|
MODJAVA_VER= 1.8+
|
|
|
|
RUN_DEPENDS= java/javaPathHelper \
|
|
devel/desktop-file-utils \
|
|
misc/shared-mime-info \
|
|
x11/gtk+3,-guic
|
|
|
|
NO_BUILD= Yes
|
|
NO_TEST= Yes
|
|
PKG_ARCH= *
|
|
WRKDIST= ${WRKDIR}/geogebra-${V}
|
|
|
|
pre-configure:
|
|
sed -i 's,/usr,${WRKINST}${TRUEPREFIX},g' ${WRKSRC}/install.sh
|
|
sed -i 's,/usr,${TRUEPREFIX},g' ${WRKSRC}/geogebra.desktop
|
|
${SUBST_CMD} ${WRKSRC}/geogebra
|
|
|
|
do-install:
|
|
mkdir -p ${PREFIX}/share/mime/packages
|
|
mkdir -p ${PREFIX}/share/applications
|
|
cd ${WRKBUILD} && ./install.sh
|
|
gzip -d ${PREFIX}/share/icons/hicolor/scalable/apps/geogebra.svgz \
|
|
-o ${PREFIX}/share/icons/hicolor/scalable/apps/geogebra.svg
|
|
gzip -d ${PREFIX}/share/icons/hicolor/scalable/mimetypes/application-vnd.geogebra.file.svgz \
|
|
-o ${PREFIX}/share/icons/hicolor/scalable/mimetypes/application-vnd.geogebra.file.svg
|
|
gzip -d ${PREFIX}/share/icons/hicolor/scalable/mimetypes/application-vnd.geogebra.tool.svgz \
|
|
-o ${PREFIX}/share/icons/hicolor/scalable/mimetypes/application-vnd.geogebra.tool.svg
|
|
|
|
.include <bsd.port.mk>
|