ports/179354: sysutils/hourglass: remove optional dependency on devel/linuxthreads

Rene Ladan rene at FreeBSD.org
Wed Jun 5 21:20:01 UTC 2013


>Number:         179354
>Category:       ports
>Synopsis:       sysutils/hourglass: remove optional dependency on devel/linuxthreads
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 05 21:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Rene Ladan
>Release:        FreeBSD 9.1-amd64
>Organization:
>Environment:
Ports Tree at revision 320012
>Description:
sysutils/hourglass optionally depends on devel/linuxthreads, which is expired.
Remove the WITH_LINUXTHREADS knob from the Makefile.

While here:
- convert Makefile header
- Tighten COMMENT
- Use PORT_OPTIONS:MDOCS instead of NOPORTDOCS, adjust include files.
>How-To-Repeat:
`Tools/scripts/rmport devel/linuxthreads` finds this port.
>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 320012)
+++ Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	hourglass
-# Date created:		23 March 2004
-# Whom:			olive
-#
+# Created by: olive
 # $FreeBSD$
-#
 
 PORTNAME=	hourglass
 PORTVERSION=	1.0.1
@@ -12,7 +8,7 @@
 DISTNAME=	${PORTNAME}-${PORTVERSION}b
 
 MAINTAINER=	jadawin at FreeBSD.org
-COMMENT=	A real-time application useful to learn how CPU scheduling works
+COMMENT=	Real-time application to learn how CPU scheduling works
 
 RUN_DEPENDS=	jgraph:${PORTSDIR}/graphics/jgraph
 
@@ -22,15 +18,9 @@
 PLIST_FILES=	bin/busy bin/hourglass
 PORTDOCS=	CALIBRATION
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITH_LINUXTHREADS)
-THREAD_LIBS=	-L${LOCALBASE}/lib -llthread -llgcc_r
-THREAD_CFLAGS=	-D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
-LIB_DEPENDS+=	lthread.3:${PORTSDIR}/devel/linuxthreads
-.else
 THREAD_LIBS=	-pthread
-.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's,%LOCALBASE%,${LOCALBASE},g' \
@@ -41,11 +31,11 @@
 		${WRKSRC}/configure
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 . for doc in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
 . endfor
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list