aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeech <beech@FreeBSD.org>2013-03-25 10:51:20 +0800
committerbeech <beech@FreeBSD.org>2013-03-25 10:51:20 +0800
commitd954375aa2fce09c6c6bc31b0b74624777c7bac2 (patch)
tree42e746ffc86343564c1ce3c7a7f40f26d9a018af
parent696e0e82dd5be949543b6acc76c960da84f89d60 (diff)
downloadfreebsd-ports-gnome-d954375aa2fce09c6c6bc31b0b74624777c7bac2.tar.gz
freebsd-ports-gnome-d954375aa2fce09c6c6bc31b0b74624777c7bac2.tar.zst
freebsd-ports-gnome-d954375aa2fce09c6c6bc31b0b74624777c7bac2.zip
- Makefile tweaks
- Add Icons - Change Homepage - Bump portrevision PR: ports/177221 Submitted by: nemysis <nemysis@gmx.ch>
-rw-r--r--cad/impact/Makefile67
-rw-r--r--cad/impact/distinfo6
-rw-r--r--cad/impact/pkg-descr2
3 files changed, 45 insertions, 30 deletions
diff --git a/cad/impact/Makefile b/cad/impact/Makefile
index 788f079c2c45..fa0c7fad64e4 100644
--- a/cad/impact/Makefile
+++ b/cad/impact/Makefile
@@ -3,52 +3,65 @@
PORTNAME= impact
PORTVERSION= 0.7.06.038
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= cad java
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Version%20${PORTVERSION}
-DISTNAME= Impact-${PORTVERSION}
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Version%20${PORTVERSION} \
+ SF/nemysisfreebsdp/:icons
+DISTFILES= Impact-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+DIST_SUBDIR= ${PORTNAME}
+EXTRACT_ONLY= Impact-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Dynamic Finite Element Program Suite
+LICENSE= GPLv2
+
RUN_DEPENDS= java3d>0:${PORTSDIR}/java/java3d
WRKSRC= ${WRKDIR}/Impact
-NO_BUILD= yes
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
+NO_BUILD= yes
DATADIR= ${JAVASHAREDIR}/Impact
SUB_FILES= impact impactgui
-PLIST= ${WRKDIR}/PLIST
-
-pre-install:
- @${ECHO_CMD} -n > ${PLIST}
- @${ECHO_CMD} "bin/impact" >> ${PLIST}
- @${ECHO_CMD} "bin/impactgui" >> ${PLIST}
- @(cd ${WRKDIR} && ${FIND} Impact ! -type d | ${GREP} -v \
- -e "CVS" -e "lib_j3d" -e "\.bat" -e "\.dll" -e "\.ico" \
- -e "\.jnilib" -e "\.sh" -e "\.so" | ${SORT} | \
- ${SED} "s|^Impact|%%DATADIR%%|" >> ${PLIST})
- @(cd ${WRKDIR} && ${FIND} Impact -type d | ${GREP} -v \
- -e "CVS" -e "lib_j3d" -e "\.bat" -e "\.dll" -e "\.ico" \
- -e "\.jnilib" -e "\.sh" -e "\.so" | ${SORT} -r | \
- ${SED} "s|^Impact|@dirrm %%DATADIR%%|" >> ${PLIST})
+PLIST_FILES= bin/impact \
+ bin/impactgui \
+ share/pixmaps/impact.png
+
+OPTIONS_DEFINE= GMSH
+
+GMSH_DESC= Enable automatic 3D finite element mesh generator
+
+DESKTOP_ENTRIES="Impact" "${COMMENT}" "${PORTNAME}" \
+ "${PORTNAME}gui" "Graphics;3DGraphics;Education;" false
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGMSH}
+RUN_DEPENDS+= gmsh:${PORTSDIR}/cad/gmsh
+.endif
+
+post-extract:
+ @${FIND} ${WRKSRC} -name CVS -type d -print0 -or -name .cvsignore -type f -print0 | \
+ ${XARGS} -0 ${RM} -rf
do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/impact ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKDIR}/impactgui ${PREFIX}/bin
- @${MKDIR} ${DATADIR}
- @(${TAR} -C ${WRKSRC} --exclude "CVS" --exclude "lib_j3d" \
- --exclude "*.bat" --exclude "*.dll" --exclude "*.ico" \
- --exclude "*.jnilib" --exclude "*.sh" --exclude "*.so" \
- -cf - . | ${TAR} -C ${DATADIR} --unlink -xf -)
- @${FIND} ${DATADIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGPR}
- @${FIND} ${DATADIR} -type d | ${XARGS} ${CHMOD} a+rx
- @${FIND} ${DATADIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
+ ${INSTALL_SCRIPT} ${WRKDIR}/impact ${WRKDIR}/impactgui ${PREFIX}/bin
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${DATADIR})
+
+post-install:
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps
+
+ @${FIND} ${DATADIR} ! -type d | \
+ ${SED} 's|^${PREFIX}/||' >> ${TMPPLIST}
+ @${FIND} ${DATADIR} -type d | ${SORT} -r | \
+ ${SED} 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST}
.include <bsd.port.mk>
diff --git a/cad/impact/distinfo b/cad/impact/distinfo
index b6383c17a438..e600220467c4 100644
--- a/cad/impact/distinfo
+++ b/cad/impact/distinfo
@@ -1,2 +1,4 @@
-SHA256 (Impact-0.7.06.038.zip) = 85ad4a1506a5dd22adc020b44cb9adf27d77253fcf84b4d1b8a339e2e3922ed6
-SIZE (Impact-0.7.06.038.zip) = 13757964
+SHA256 (impact/Impact-0.7.06.038.zip) = 85ad4a1506a5dd22adc020b44cb9adf27d77253fcf84b4d1b8a339e2e3922ed6
+SIZE (impact/Impact-0.7.06.038.zip) = 13757964
+SHA256 (impact/impact.png) = a59d37cb161cfdf3961d90522c7f4a02644c4698a0cf17722949914f7399c4d5
+SIZE (impact/impact.png) = 2908
diff --git a/cad/impact/pkg-descr b/cad/impact/pkg-descr
index 662bb86a6141..bd60646c3c64 100644
--- a/cad/impact/pkg-descr
+++ b/cad/impact/pkg-descr
@@ -3,4 +3,4 @@ events. It has a range of elements, contact handling and different material
laws. Models can be created and viewed with external programs or the
included postprocessor.
-WWW: http://impact.sourceforge.net/
+WWW: http://www.impact-fem.org/