3757ee1c5d
- Use DATADIR=${JAVASHAREDIR}/${PORTNAME} [1] - Add 'java' category - Use INSTALL_DATA rather than CP - Use %%DATADIR%% in launcher scripts (already included in SUB_LIST by bsd.port.mk) - Pass JAVA_VERSION to javavmwrapper in launcher scripts PR: 83979 [1] Submitted by: Pedro F. Giffuni <giffunip@asme.org> [1]
41 lines
984 B
Makefile
41 lines
984 B
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: impact
|
|
# Date created: Mar 4, 2005
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= impact
|
|
PORTVERSION= 0.6.1
|
|
CATEGORIES= cad java
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
DISTNAME= Impact-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Dynamic Finite Element Program Suite
|
|
|
|
USE_ZIP= yes
|
|
WRKSRC= ${WRKDIR}/Impact
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.4+
|
|
NO_BUILD= yes
|
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
SUB_FILES= impact impactgui
|
|
|
|
PLIST_FILES= bin/impact bin/impactgui
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} ${DATADIR}/{} \;
|
|
cd ${WRKSRC} && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
|
|
${INSTALL_SCRIPT} ${WRKDIR}/impact ${WRKDIR}/impactgui ${PREFIX}/bin
|
|
|
|
post-install:
|
|
@${FIND} ${DATADIR} ! -type d | \
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
@${FIND} ${DATADIR} -type d | ${SORT} -r | \
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|