8ffa15a7d0
GeoGebra is free and multi-platform dynamic mathematics software for learning and teaching. based on an initial submission from Azwaw OUSADOU and reworked by myself ok jasper@
55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2012/08/21 07:18:17 ajacoutot Exp $
|
|
|
|
COMMENT= educational mathematical software
|
|
|
|
V= 4.0.38.0
|
|
DISTNAME= GeoGebra-Unixlike-Installer-${V}
|
|
PKGNAME= geogebra-${V}
|
|
|
|
CATEGORIES= math java
|
|
|
|
HOMEPAGE= http://www.geogebra.org
|
|
|
|
# GeoGebra Source: GPLv3
|
|
# Language Files and Documentation:
|
|
# Creative Commons Attribution-Share Alike 3.0
|
|
# See: http://www.geogebra.org/download/license.txt
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= http://geogebra.googlecode.com/files/
|
|
|
|
MODULES= java
|
|
MODJAVA_VER= 1.7+
|
|
MODJAVA_JRERUN= Yes
|
|
|
|
RUN_DEPENDS= java/javaPathHelper \
|
|
devel/desktop-file-utils \
|
|
misc/shared-mime-info \
|
|
x11/gtk+2,-guic
|
|
|
|
NO_BUILD= Yes
|
|
NO_REGRESS= Yes
|
|
PKG_ARCH= *
|
|
WRKDIST= ${WRKDIR}/geogebra-${V}
|
|
|
|
pre-configure:
|
|
perl -pi -e 's,/usr,${WRKINST}${TRUEPREFIX},g' ${WRKSRC}/install.sh
|
|
perl -pi -e '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>
|