2004-04-12 15:54:55 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= hourglass
|
2007-10-12 13:54:56 +00:00
|
|
|
PORTVERSION= 1.0.1
|
2004-04-12 15:54:55 +00:00
|
|
|
CATEGORIES= sysutils parallel
|
|
|
|
MASTER_SITES= http://www.cs.utah.edu/~regehr/hourglass/
|
2007-10-12 13:54:56 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}b
|
2004-04-12 15:54:55 +00:00
|
|
|
|
2008-03-12 13:27:28 +00:00
|
|
|
MAINTAINER= jadawin@FreeBSD.org
|
2013-06-07 14:19:28 +00:00
|
|
|
COMMENT= Real-time application to learn how CPU scheduling works
|
2004-04-12 15:54:55 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS= jgraph:${PORTSDIR}/graphics/jgraph
|
|
|
|
|
2007-10-12 13:54:56 +00:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2004-04-12 15:54:55 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
PLIST_FILES= bin/busy bin/hourglass
|
|
|
|
PORTDOCS= CALIBRATION
|
|
|
|
|
2014-02-21 13:39:38 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 13:54:26 +00:00
|
|
|
|
2013-06-07 14:19:28 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2004-04-12 15:54:55 +00:00
|
|
|
|
2013-02-28 10:51:58 +00:00
|
|
|
THREAD_LIBS= -pthread
|
2007-01-20 17:30:40 +00:00
|
|
|
|
2004-04-12 15:54:55 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,%LOCALBASE%,${LOCALBASE},g' \
|
|
|
|
${WRKSRC}/configure
|
2013-02-28 10:51:58 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,%THREAD_LIBS%,${THREAD_LIBS},g' \
|
2007-01-20 17:30:40 +00:00
|
|
|
${WRKSRC}/configure
|
2013-02-28 10:51:58 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,%THREAD_CFLAGS%,${THREAD_CFLAGS},g' \
|
2007-01-20 17:30:40 +00:00
|
|
|
${WRKSRC}/configure
|
2004-04-12 15:54:55 +00:00
|
|
|
|
|
|
|
post-install:
|
2013-06-07 14:19:28 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-11-08 13:35:39 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2004-04-12 15:54:55 +00:00
|
|
|
. for doc in ${PORTDOCS}
|
2013-11-08 13:35:39 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
|
2004-04-12 15:54:55 +00:00
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
2013-06-07 14:19:28 +00:00
|
|
|
.include <bsd.port.mk>
|