Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.8 2017/04/21 13:27:46 kurt Exp $
  2. COMMENT= educational mathematical software
  3. V= 4.2.60.0
  4. DISTNAME= GeoGebra-Unixlike-Installer-${V}
  5. PKGNAME= geogebra-${V}
  6. REVISION= 1
  7. CATEGORIES= math java
  8. HOMEPAGE= http://www.geogebra.org
  9. # Apache Software License
  10. # GPLv3, LGPLv3, BSD, Public Domain
  11. # GeoGebra Non-Commercial License
  12. # Creative Commons Attribution-Share Alike 3.0
  13. # See: http://www.geogebra.org/download/license.txt
  14. PERMIT_PACKAGE_CDROM= No
  15. PERMIT_PACKAGE_FTP= Yes
  16. PERMIT_DISTFILE_FTP= Yes
  17. MASTER_SITES= ${MASTER_SITE_GOOGLECODE:=geogebra/}
  18. MODULES= java
  19. MODJAVA_VER= 1.7+
  20. MODJAVA_JRERUN= Yes
  21. RUN_DEPENDS= java/javaPathHelper \
  22. devel/desktop-file-utils \
  23. misc/shared-mime-info \
  24. x11/gtk+3,-guic
  25. NO_BUILD= Yes
  26. NO_TEST= Yes
  27. PKG_ARCH= *
  28. WRKDIST= ${WRKDIR}/geogebra-${V}
  29. pre-configure:
  30. sed -i 's,/usr,${WRKINST}${TRUEPREFIX},g' ${WRKSRC}/install.sh
  31. sed -i 's,/usr,${TRUEPREFIX},g' ${WRKSRC}/geogebra.desktop
  32. ${SUBST_CMD} ${WRKSRC}/geogebra
  33. do-install:
  34. mkdir -p ${PREFIX}/share/mime/packages
  35. mkdir -p ${PREFIX}/share/applications
  36. cd ${WRKBUILD} && ./install.sh
  37. gzip -d ${PREFIX}/share/icons/hicolor/scalable/apps/geogebra.svgz \
  38. -o ${PREFIX}/share/icons/hicolor/scalable/apps/geogebra.svg
  39. gzip -d ${PREFIX}/share/icons/hicolor/scalable/mimetypes/application-vnd.geogebra.file.svgz \
  40. -o ${PREFIX}/share/icons/hicolor/scalable/mimetypes/application-vnd.geogebra.file.svg
  41. gzip -d ${PREFIX}/share/icons/hicolor/scalable/mimetypes/application-vnd.geogebra.tool.svgz \
  42. -o ${PREFIX}/share/icons/hicolor/scalable/mimetypes/application-vnd.geogebra.tool.svg
  43. .include <bsd.port.mk>