Lines 2-10
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= geogebra |
4 |
PORTNAME= geogebra |
5 |
PORTVERSION= 5.0.212.0 |
5 |
PORTVERSION= 5.0.218.0 |
6 |
CATEGORIES= math java |
6 |
CATEGORIES= math java |
7 |
MASTER_SITES= http://download.geogebra.org/installers/5.0/ |
7 |
MASTER_SITES= http://download.geogebra.org/installers/5.0/ \ |
|
|
8 |
http://freebsd.uzsolt.hu/src/ |
8 |
DISTNAME= GeoGebra-Linux-Portable-${PORTVERSION} |
9 |
DISTNAME= GeoGebra-Linux-Portable-${PORTVERSION} |
9 |
|
10 |
|
10 |
MAINTAINER= udvzsolt@gmail.com |
11 |
MAINTAINER= udvzsolt@gmail.com |
Lines 12-19
Link Here
|
12 |
|
13 |
|
13 |
LICENSE= GEOGEBRA |
14 |
LICENSE= GEOGEBRA |
14 |
LICENSE_NAME= GeoGebra Non-Commercial License Agreement |
15 |
LICENSE_NAME= GeoGebra Non-Commercial License Agreement |
15 |
LICENSE_TEXT= See on http://www.geogebra.org/license |
16 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
16 |
LICENSE_PERMS= dist-sell pkg-sell auto-accept |
17 |
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept |
17 |
|
18 |
|
18 |
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash |
19 |
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash |
19 |
|
20 |
|
Lines 21-47
Link Here
|
21 |
|
22 |
|
22 |
USE_LINUX_APPS= xorglibs |
23 |
USE_LINUX_APPS= xorglibs |
23 |
|
24 |
|
24 |
ONLY_FOR_ARCHS=i386 amd64 |
25 |
ONLY_FOR_ARCHS= i386 amd64 |
25 |
|
26 |
|
26 |
SUB_FILES= geogebra.desktop |
27 |
SUB_FILES= geogebra.desktop |
27 |
CONFLICTS= math/geogebra-i18n-[0-9]* |
28 |
CONFLICTS= math/geogebra-i18n-[0-9]* |
28 |
NO_BUILD= yes |
29 |
NO_BUILD= yes |
29 |
USES= tar:bzip2 desktop-file-utils shared-mime-info shebangfix |
30 |
USES= tar:bzip2 desktop-file-utils shared-mime-info shebangfix |
30 |
WRKSRC= ${WRKDIR}/${DISTNAME} |
31 |
WRKSRC= ${WRKDIR}/${DISTNAME} |
31 |
FIND_JARS= -type f -name "*.jar" -maxdepth 1 -print0 |
32 |
JAVADIR= jre1.7.0_45-i686 |
32 |
JAVADIR= jre1.7.0_45-i686 |
33 |
SHEBANG_FILES= geogebra-portable geogebra/geogebra |
33 |
SHEBANG_FILES= geogebra-portable |
|
|
34 |
|
34 |
|
|
|
35 |
post-patch: |
36 |
@${REINPLACE_CMD} -e 's,arch,/compat/linux/bin/arch,' ${WRKSRC}/geogebra-portable |
37 |
|
35 |
do-install: |
38 |
do-install: |
36 |
cd ${WRKSRC} && ${MKDIR} ${STAGEDIR}${DATADIR}/${PORTNAME} && \ |
39 |
@${MKDIR} ${STAGEDIR}${DATADIR}/${PORTNAME} |
37 |
${REINPLACE_CMD} -e 's,arch,/compat/linux/bin/arch,' ${WRKSRC}/geogebra-portable && \ |
40 |
${INSTALL_SCRIPT} ${WRKSRC}/geogebra/geogebra ${STAGEDIR}${DATADIR}/${PORTNAME}/geogebra |
38 |
${INSTALL_SCRIPT} ${WRKSRC}/geogebra/geogebra ${STAGEDIR}${DATADIR}/${PORTNAME}/geogebra && \ |
41 |
${INSTALL_SCRIPT} ${WRKSRC}/geogebra-portable ${STAGEDIR}${DATADIR} |
39 |
${INSTALL_SCRIPT} ${WRKSRC}/geogebra-portable ${STAGEDIR}${DATADIR} && \ |
42 |
${LN} -s ${DATADIR}/geogebra-portable ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
40 |
${LN} -s ${DATADIR}/geogebra-portable ${STAGEDIR}${PREFIX}/bin/${PORTNAME} && \ |
43 |
${INSTALL_DATA} ${WRKSRC}/geogebra/*.jar ${STAGEDIR}${DATADIR}/${PORTNAME} |
41 |
${FIND} geogebra ${FIND_JARS} | ${XARGS} -0 -J % ${INSTALL_DATA} % ${STAGEDIR}${DATADIR}/${PORTNAME} && \ |
44 |
cd ${WRKSRC} && ${COPYTREE_SHARE} ${JAVADIR} ${STAGEDIR}${DATADIR} |
42 |
${COPYTREE_SHARE} ${JAVADIR} ${STAGEDIR}${DATADIR} && \ |
45 |
${INSTALL_PROGRAM} ${WRKSRC}/${JAVADIR}/bin/java ${STAGEDIR}${DATADIR}/${JAVADIR}/bin |
43 |
${INSTALL_PROGRAM} ${JAVADIR}/bin/java ${STAGEDIR}${DATADIR}/${JAVADIR}/bin && \ |
46 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages |
44 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages && \ |
|
|
45 |
${INSTALL_DATA} ${WRKDIR}/geogebra.desktop ${STAGEDIR}${DESKTOPDIR} |
47 |
${INSTALL_DATA} ${WRKDIR}/geogebra.desktop ${STAGEDIR}${DESKTOPDIR} |
46 |
|
48 |
|
47 |
.include <bsd.port.mk> |
49 |
.include <bsd.port.mk> |