freebsd-ports/graphics/wings/Makefile

54 lines
1.7 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: wings
# Date Created: 5 March 2003
# Whom: olgeni@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= wings
PORTVERSION= 0.98.26b
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
2003-08-07 06:20:33 -04:00
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang \
${LOCALBASE}/lib/erlang/lib/esdl/include/sdl.hrl:${PORTSDIR}/devel/esdl
2003-09-01 16:02:20 -04:00
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}"
2004-02-17 16:03:15 -05:00
2003-10-17 10:55:06 -04:00
USE_BZIP2= yes
USE_GMAKE= yes
USE_REINPLACE= yes
2005-07-20 20:01:35 -04:00
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 504001
BROKEN= "Does not compile on FreeBSD >= 5.x"
.endif
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}
2005-07-20 20:01:35 -04:00
.include <bsd.port.post.mk>