[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / pth

File: [cvs.NetBSD.org] / pkgsrc / devel / pth / Makefile (download)

Revision 1.75, Thu Aug 2 12:40:31 2012 UTC (7 years, 11 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3
Changes since 1.74: +7 -3 lines

Don't limit FD_SETSIZE on Solaris, causes conflicts in 64-bit mode.

Bump PKGREVISION.

# $NetBSD: Makefile,v 1.75 2012/08/02 12:40:31 jperkin Exp $
#

DISTNAME=		pth-2.0.7
PKGREVISION=		3
CATEGORIES=		devel
MASTER_SITES=		${MASTER_SITE_GNU:=pth/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.gnu.org/software/pth/pth.html
COMMENT=		GNU Portable Thread library
LICENSE=		gnu-lgpl-v2.1

CONFLICTS=		pth-current-[0-9]* pth-syscall<1.4.1nb1

PKG_INSTALLATION_TYPES=	overwrite pkgviews
PKG_DESTDIR_SUPPORT=	user-destdir

MAKE_JOBS_SAFE=		no

USE_LIBTOOL=		YES
GNU_CONFIGURE=		YES
#CONFIGURE_ARGS+=	--enable-debug

TEST_TARGET=		test

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
.  if ${MACHINE_ARCH} == "m68k" && (!empty(OS_VERSION:M1.5.[12]*) || !empty(OS_VERSION:M1.[0-4]*))
pre-configure:
	@${ECHO} Building without --enable-syscall-hard. lib/18644 needs fixing.
.  else
CONFIGURE_ARGS+=	--enable-syscall-hard
.  endif
.elif ${OPSYS} == "Interix"
CONFIGURE_ENV+=		ac_cv_check_nfdstype='unsigned int'
CONFIGURE_ENV+=		ac_cv_typedef_nfds_t=no # in <poll.h>, but that's unused
.endif

# XXX: Check this is still required and reverse test to OS which need it.
.if ${OPSYS} != "SunOS"
CONFIGURE_ARGS+=	--with-fdsetsize=1024
.endif

PLIST_VARS+=		pthread

.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "native"
CONFIGURE_ARGS+=	--enable-pthread
PLIST.pthread=		yes
.endif

INSTALLATION_DIRS=	share/doc/pth

post-install:
	cd ${WRKSRC} && ${INSTALL_DATA} ANNOUNCE AUTHORS COPYING HACKING \
		NEWS README SUPPORT TESTS THANKS USERS pthread.ps rse-pmt.ps \
			${DESTDIR}${PREFIX}/share/doc/pth/

.include "../../mk/bsd.pkg.mk"