freebsd-ports/devel/py-simpy/Makefile
Gabor Kovesdan 42542fb076 - Remove the DESTDIR modifications from individual ports as we have a new,
fully chrooted DESTDIR, which does not need such any more.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
2007-08-04 11:41:30 +00:00

48 lines
1.1 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: py-simpy
# Date created: Jun 29, 2004
# Whom: ijliao
#
# $FreeBSD$
PORTNAME= simpy
PORTVERSION= 1.8
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= SimPy-${PORTVERSION}
MAINTAINER= xride@FreeBSD.org
COMMENT= Simulation in Python
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= SimPy
OPTIONS= TKINTER "Install py-tkinter for plot" off
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
.if !defined(NOPORTDOCS)
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
.endif
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
.include <bsd.port.pre.mk>
.if defined(WITH_TKINTER)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/SimPyDocs && ${FIND} . | \
${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR})
.endif
@${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/SimPyModels && ${FIND} . | \
${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR})
.include <bsd.port.post.mk>