blob: 8c9951cbf52b4e5d55452dd4d6ba4d6b30c3a9ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$
PORTNAME= geogebra-i18n
DISTVERSION= 3-2-47-0
PORTREVISION= 0
CATEGORIES= math java
MASTER_SITES= http://nivi.interfree.it/distfiles/${PORTNAME}/
#PKGNAMESUFFIX= -i18n
DISTNAME= GeoGebra-FreeBSD-Installer-${DISTVERSION}
MAINTAINER= nivit@FreeBSD.org
COMMENT= Dynamic software that joins geometry, algebra, and calculus
RUN_DEPENDS= ${LOCALBASE}/bin/update-mime-database:${PORTSDIR}/misc/shared-mime-info
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
INSTALLS_ICONS= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
USE_DOS2UNIX= geogebra geogebra.desktop
USE_GNOME= desktopfileutils
USE_JAVA= yes
WRKSRC= ${WRKDIR}/geogebra-${PORTVERSION}
FIND_JARS= -type f -name "*.jar" -maxdepth 1 -print0
JARFILE= ${PORTNAME:S,-i18n,,}.jar
post-patch:
${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},g' ${WRKSRC}/${PORTNAME:S,-i18n,,}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/geogebra ${PREFIX}/bin/
cd ${WRKSRC} && ${MKDIR} ${DATADIR} && \
${FIND} . ${FIND_JARS} | ${XARGS} -0 -J % ${INSTALL_DATA} % ${DATADIR} && \
${COPYTREE_SHARE} unsigned ${DATADIR} && \
${COPYTREE_SHARE} icons ${PREFIX}/share && \
${MKDIR} ${PREFIX}/share/mime/packages && \
${MKDIR} ${PREFIX}/share/applications && \
${INSTALL_DATA} ${WRKSRC}/geogebra.xml ${PREFIX}/share/mime/packages && \
${INSTALL_DATA} ${WRKSRC}/geogebra.desktop ${DESKTOPDIR}
-${LOCALBASE}/bin/update-desktop-database
-${LOCALBASE}/bin/update-mime-database ${LOCALBASE}/share/mime
.include <bsd.port.mk>
|