Subject: pkg/17670: Make devel/libmpeg3 use pthread.buildlink.mk
To: None <gnats-bugs@gnats.netbsd.org>
From: Julio Merino <jmmv@hispabsd.org>
List: netbsd-bugs
Date: 07/21/2002 22:59:04
>Number:         17670
>Category:       pkg
>Synopsis:       Make devel/libmpeg3 use pthread.buildlink.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 21 13:58:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Julio Merino
>Release:        NetBSD 1.6D
>Organization:
HispaBSD
>Environment:
	
	
System: NetBSD darkstar.local 1.6D NetBSD 1.6D (DARKSTAR) #2: Wed Jul 17 19:45:32 CEST 2002 jmmv@darkstar.local:/var/build/kernel/DARKSTAR i386
Architecture: i386
Machine: i386
>Description:
	The package devel/libmpeg3 is only builded against pth. This causes
	problems when trying to use it on systems which use pth-syscall.
	The attached patch solves it.

	As far as I've seen, the library works fine with pth-syscall.
>How-To-Repeat:
	
>Fix:

Index: Makefile
===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/devel/libmpeg3/Makefile,v
retrieving revision 1.5
diff -u -u -r1.5 Makefile
--- Makefile	2002/04/29 21:41:41	1.5
+++ Makefile	2002/07/21 20:56:58
@@ -2,7 +2,7 @@
 #
 
 DISTNAME=	libmpeg3-1.3
-PKGREVISION=	1
+PKGREVISION=	2
 CATEGORIES=	devel audio graphics
 MASTER_SITES=	http://heroines.sourceforge.net/
 
@@ -20,6 +20,10 @@
 HAS_CONFIGURE=	yes
 USE_GMAKE=	yes
 
+USE_PTHREAD=	native pth
+
+.include "../../mk/bsd.prefs.mk"
+
 post-configure:
 	${ECHO} "CFLAGS+=-O2" >>${WRKSRC}/global_config
 	${ECHO} "CFLAGS+=-I${BUILDLINK_DIR}/include" >>${WRKSRC}/global_config
@@ -56,5 +60,5 @@
 	${INSTALL_DATA} ${WRKSRC}/docs/index.html \
 		${PREFIX}/share/doc/html/libmpeg3
 
-.include "../../devel/pth/buildlink.mk"
+.include "../../mk/pthread.buildlink.mk"
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: