View | Details | Raw Unified | Return to bug 175019
Collapse All | Expand All

(-)cad/impact/Makefile (-14 / +33 lines)
Lines 2-8 Link Here
2
# $FreeBSD: head/cad/impact/Makefile 308600 2012-12-10 11:25:27Z bapt $
2
# $FreeBSD: head/cad/impact/Makefile 308600 2012-12-10 11:25:27Z bapt $
3
3
4
PORTNAME=	impact
4
PORTNAME=	impact
5
PORTVERSION=	0.7.5.3
5
PORTVERSION=	0.7.06.038
6
PORTEPOCH=	1
6
CATEGORIES=	cad java
7
CATEGORIES=	cad java
7
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/Version%20${PORTVERSION}
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/Version%20${PORTVERSION}
8
DISTNAME=	Impact-${PORTVERSION}
9
DISTNAME=	Impact-${PORTVERSION}
Lines 10-35 Link Here
10
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Dynamic Finite Element Program Suite
12
COMMENT=	Dynamic Finite Element Program Suite
12
13
13
USE_ZIP=	yes
14
RUN_DEPENDS=	java3d>0:${PORTSDIR}/java/java3d
15
14
WRKSRC=		${WRKDIR}/Impact
16
WRKSRC=		${WRKDIR}/Impact
17
NO_BUILD=	yes
18
19
USE_ZIP=	yes
15
USE_JAVA=	yes
20
USE_JAVA=	yes
16
JAVA_VERSION=	1.6+
21
JAVA_VERSION=	1.6+
17
NO_BUILD=	yes
18
22
19
DATADIR=	${JAVASHAREDIR}/${PORTNAME}
23
DATADIR=	${JAVASHAREDIR}/Impact
24
20
SUB_FILES=	impact impactgui
25
SUB_FILES=	impact impactgui
21
26
22
PLIST_FILES=	bin/impact bin/impactgui
27
PLIST=		${WRKDIR}/PLIST
28
29
pre-install:
30
	@${ECHO_CMD} -n > ${PLIST}
31
	@${ECHO_CMD} "bin/impact" >> ${PLIST}
32
	@${ECHO_CMD} "bin/impactgui" >> ${PLIST}
33
	@(cd ${WRKDIR} && ${FIND} Impact ! -type d | ${GREP} -v \
34
		-e "CVS" -e "lib_j3d" -e "\.bat" -e "\.dll" -e "\.ico" \
35
		-e "\.jnilib" -e "\.sh" -e "\.so" | ${SORT} | \
36
		${SED} "s|^Impact|%%DATADIR%%|" >> ${PLIST})
37
	@(cd ${WRKDIR} && ${FIND} Impact -type d | ${GREP} -v \
38
		-e "CVS" -e "lib_j3d" -e "\.bat" -e "\.dll" -e "\.ico" \
39
		-e "\.jnilib" -e "\.sh" -e "\.so" | ${SORT} -r | \
40
		${SED} "s|^Impact|@dirrm %%DATADIR%%|" >> ${PLIST})
23
41
24
do-install:
42
do-install:
25
	cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} ${DATADIR}/{} \;
43
	${INSTALL_SCRIPT} ${WRKDIR}/impact ${PREFIX}/bin
26
	cd ${WRKSRC} && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
44
	${INSTALL_SCRIPT} ${WRKDIR}/impactgui ${PREFIX}/bin
27
	${INSTALL_SCRIPT} ${WRKDIR}/impact ${WRKDIR}/impactgui ${PREFIX}/bin
45
	@${MKDIR} ${DATADIR}
28
46
	@(${TAR} -C ${WRKSRC} --exclude "CVS" --exclude "lib_j3d" \
29
post-install:
47
		--exclude "*.bat" --exclude "*.dll" --exclude "*.ico" \
30
	@${FIND} ${DATADIR} ! -type d | \
48
		--exclude "*.jnilib" --exclude "*.sh" --exclude "*.so" \
31
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
49
		-cf - . | ${TAR} -C ${DATADIR} --unlink -xf -)
32
	@${FIND} ${DATADIR} -type d | ${SORT} -r | \
50
	@${FIND} ${DATADIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGPR}
33
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
51
	@${FIND} ${DATADIR} -type d | ${XARGS} ${CHMOD} a+rx
52
	@${FIND} ${DATADIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
34
53
35
.include <bsd.port.mk>
54
.include <bsd.port.mk>
(-)cad/impact/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (Impact-0.7.5.3.zip) = 76739f52edd7131fdd53b58ae15441d918dca15f24b4649d4143aa823e6dd7cc
1
SHA256 (Impact-0.7.06.038.zip) = 85ad4a1506a5dd22adc020b44cb9adf27d77253fcf84b4d1b8a339e2e3922ed6
2
SIZE (Impact-0.7.5.3.zip) = 6767727
2
SIZE (Impact-0.7.06.038.zip) = 13757964
(-)cad/impact/files/impact.in (-2 / +2 lines)
Lines 2-7 Link Here
2
#
2
#
3
# $FreeBSD: head/cad/impact/files/impact.in 300895 2012-07-14 12:56:14Z beat $
3
# $FreeBSD: head/cad/impact/files/impact.in 300895 2012-07-14 12:56:14Z beat $
4
4
5
cd %%DATADIR%%/bin
5
cd %%DATADIR%%
6
JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -Xmx500m run.Impact "$@"
6
JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -Xmx1000m -Xss1m -cp .:doc:bin run.Impact "$@"
7
cd -
7
cd -
(-)cad/impact/files/impactgui.in (-2 / +2 lines)
Lines 2-7 Link Here
2
#
2
#
3
# $FreeBSD: head/cad/impact/files/impactgui.in 300895 2012-07-14 12:56:14Z beat $
3
# $FreeBSD: head/cad/impact/files/impactgui.in 300895 2012-07-14 12:56:14Z beat $
4
4
5
cd %%DATADIR%%/bin
5
cd %%DATADIR%%
6
JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -Xmx500m gui.ImpactGUI
6
JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -Xmx1000m -Xss1m -cp .:bin:doc:lib/jogl.jar:lib/gluegen-rt.jar:lib/patbinfree153.jar:lib/LogDB.jar:lib/mysql-connector-java-5.1.11-bin.jar gui.ImpactGUI
7
cd -
7
cd -

Return to bug 175019