View | Details | Raw Unified | Return to bug 179354
Collapse All | Expand All

(-)Makefile (-15 / +5 lines)
Lines 1-9 Link Here
1
# New ports collection makefile for:	hourglass
1
# Created by: olive
2
# Date created:		23 March 2004
3
# Whom:			olive
4
#
5
# $FreeBSD$
2
# $FreeBSD$
6
#
7
3
8
PORTNAME=	hourglass
4
PORTNAME=	hourglass
9
PORTVERSION=	1.0.1
5
PORTVERSION=	1.0.1
Lines 12-18 Link Here
12
DISTNAME=	${PORTNAME}-${PORTVERSION}b
8
DISTNAME=	${PORTNAME}-${PORTVERSION}b
13
9
14
MAINTAINER=	jadawin@FreeBSD.org
10
MAINTAINER=	jadawin@FreeBSD.org
15
COMMENT=	A real-time application useful to learn how CPU scheduling works
11
COMMENT=	Real-time application to learn how CPU scheduling works
16
12
17
RUN_DEPENDS=	jgraph:${PORTSDIR}/graphics/jgraph
13
RUN_DEPENDS=	jgraph:${PORTSDIR}/graphics/jgraph
18
14
Lines 22-36 Link Here
22
PLIST_FILES=	bin/busy bin/hourglass
18
PLIST_FILES=	bin/busy bin/hourglass
23
PORTDOCS=	CALIBRATION
19
PORTDOCS=	CALIBRATION
24
20
25
.include <bsd.port.pre.mk>
21
.include <bsd.port.options.mk>
26
22
27
.if defined(WITH_LINUXTHREADS)
28
THREAD_LIBS=	-L${LOCALBASE}/lib -llthread -llgcc_r
29
THREAD_CFLAGS=	-D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
30
LIB_DEPENDS+=	lthread.3:${PORTSDIR}/devel/linuxthreads
31
.else
32
THREAD_LIBS=	-pthread
23
THREAD_LIBS=	-pthread
33
.endif
34
24
35
post-patch:
25
post-patch:
36
	@${REINPLACE_CMD} -e 's,%LOCALBASE%,${LOCALBASE},g' \
26
	@${REINPLACE_CMD} -e 's,%LOCALBASE%,${LOCALBASE},g' \
Lines 41-51 Link Here
41
		${WRKSRC}/configure
31
		${WRKSRC}/configure
42
32
43
post-install:
33
post-install:
44
.if !defined(NOPORTDOCS)
34
.if ${PORT_OPTIONS:MDOCS}
45
	${MKDIR} ${DOCSDIR}
35
	${MKDIR} ${DOCSDIR}
46
. for doc in ${PORTDOCS}
36
. for doc in ${PORTDOCS}
47
	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
37
	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
48
. endfor
38
. endfor
49
.endif
39
.endif
50
40
51
.include <bsd.port.post.mk>
41
.include <bsd.port.mk>

Return to bug 179354