5542206cba
pkgsrc. Instead, a new variable PKGREVISION is invented that can get bumped independent of DISTNAME and PKGNAME. Example #1: DISTNAME= foo-X.Y PKGREVISION= Z => PKGNAME= foo-X.YnbZ Example #2: DISTNAME= barthing-X.Y PKGNAME= bar-X.Y PKGREVISION= Z => PKGNAME= bar=X.YnbZ (!) On subsequent changes, only PKGREVISION needs to be bumped, no more risk of getting DISTNAME changed accidentally.
33 lines
1 KiB
Makefile
33 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2001/11/29 01:12:30 hubertf Exp $
|
|
#
|
|
|
|
DISTNAME= unproven-pthreads-0.17
|
|
PKGREVISION= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.flame.org/pub/netbsd/
|
|
|
|
MAINTAINER= explorer@netbsd.org
|
|
COMMENT= (MIT) POSIX threads library, hacked by Michael Graff
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-alpha NetBSD-*-arm32 NetBSD-*-i386 \
|
|
NetBSD-*-m68k NetBSD-*-powerpc NetBSD-*-sparc
|
|
CONFLICTS+= mit-pthreads-[0-9]*
|
|
|
|
HAS_CONFIGURE= yes
|
|
MAKE_ENV+= NOLINT=1 NOPROFILE=1 OBJECT_FMT=${OBJECT_FMT}
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}/pthreads
|
|
|
|
post-extract:
|
|
@${RM} ${WRKSRC}/include/pthread/unistd.h
|
|
|
|
pre-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/pthreads
|
|
|
|
post-install:
|
|
@${RM} -f ${PREFIX}/pthreads/lib/libpthread_pic.a
|
|
@${FIND} ${PREFIX}/pthreads/include -name '*.orig' | ${XARGS} ${RM}
|
|
@${FIND} ${PREFIX}/pthreads/include -type f -print | ${XARGS} ${CHMOD} 644
|
|
@${FIND} ${PREFIX}/pthreads/include -type d -print | ${XARGS} ${CHMOD} 755
|
|
@${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/pthreads/include
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|