diff options
author | olgeni <olgeni@FreeBSD.org> | 2003-07-20 13:27:47 +0000 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2003-07-20 13:27:47 +0000 |
commit | 8bcede1f0cd9af408248afcebbe08f9910358873 (patch) | |
tree | ec2745dc0d0ee34a8b1867de719428ff0d8b8b39 /graphics/wings/Makefile | |
parent | 8aa34e67250c91d8573c64f54f1b29533b603271 (diff) | |
download | FreeBSD-ports-8bcede1f0cd9af408248afcebbe08f9910358873.zip FreeBSD-ports-8bcede1f0cd9af408248afcebbe08f9910358873.tar.gz |
Add wings3d, a polygon mesh modeler written in Erlang.
Diffstat (limited to 'graphics/wings/Makefile')
-rw-r--r-- | graphics/wings/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/graphics/wings/Makefile b/graphics/wings/Makefile new file mode 100644 index 0000000..80eb0d6 --- /dev/null +++ b/graphics/wings/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: wings +# Date Created: 5 March 2003 +# Whom: olgeni@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= wings +PORTVERSION= 0.98.10e +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= wings +DIST_SUBDIR= erlang + +MAINTAINER= olgeni@FreeBSD.org +COMMENT= A polygon mesh modeler written in Erlang + +BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang +RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang \ + ${LOCALBASE}/lib/erlang/lib/esdl/include/sdl.hrl:${PORTSDIR}/devel/esdl + +MAKE_ENV= ESDL_PATH=${LOCALBASE}/lib/erlang/lib/esdl +PLIST_SUB= VERSION="${PORTVERSION}" +USE_GMAKE= yes +USE_REINPLACE= yes + +post-patch: + @${CP} ${FILESDIR}/wings.sh ${WRKSRC}/wings.sh + @${REINPLACE_CMD} -e 's|!!PREFIX!!|${PREFIX}|g' ${WRKSRC}/wings.sh + @${FIND} ${WRKSRC} -name *.orig | ${XARGS} ${RM} + +do-install: + @${MKDIR} ${PREFIX}/lib/erlang/lib/${DISTNAME} + @${MKDIR} ${PREFIX}/lib/erlang/lib/${DISTNAME}/src + @${MKDIR} ${PREFIX}/lib/erlang/lib/${DISTNAME}/ebin + @${MKDIR} ${PREFIX}/lib/erlang/lib/${DISTNAME}/plugins + @${INSTALL_DATA} ${WRKSRC}/src/* ${PREFIX}/lib/erlang/lib/${DISTNAME}/src + @${INSTALL_DATA} ${WRKSRC}/ebin/* ${PREFIX}/lib/erlang/lib/${DISTNAME}/ebin + @${CP} -r ${WRKSRC}/plugins/* ${PREFIX}/lib/erlang/lib/${DISTNAME}/plugins + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/erlang/lib/${DISTNAME}/plugins + @${INSTALL_SCRIPT} ${WRKSRC}/wings.sh ${PREFIX}/bin/wings + @${LN} -sf ${DISTNAME} ${PREFIX}/lib/erlang/lib/${PORTNAME} + +.include <bsd.port.mk> |