2005-05-16 14:11:39 +00:00
|
|
|
# New ports collection makefile for: GNU Pth
|
|
|
|
# Date Created: 23 May 1999
|
|
|
|
# Whom: Ralf S. Engelschall <rse@gnu.org>
|
1999-05-23 14:54:10 +00:00
|
|
|
#
|
1999-08-29 11:11:15 +00:00
|
|
|
# $FreeBSD$
|
1999-05-23 14:54:10 +00:00
|
|
|
#
|
|
|
|
|
2000-04-11 21:30:15 +00:00
|
|
|
PORTNAME= pth
|
2005-10-26 18:59:25 +00:00
|
|
|
PORTVERSION= 2.0.5
|
1999-05-23 14:54:10 +00:00
|
|
|
CATEGORIES= devel
|
2002-04-28 07:38:54 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
1999-07-16 15:11:46 +00:00
|
|
|
MASTER_SITE_SUBDIR= pth
|
1999-05-23 14:54:10 +00:00
|
|
|
|
2005-10-26 18:59:25 +00:00
|
|
|
MAINTAINER= vd@datamax.bg
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= GNU Portable Threads
|
1999-05-23 14:54:10 +00:00
|
|
|
|
2000-06-16 21:52:40 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2001-09-11 14:49:45 +00:00
|
|
|
LDCONFIG_DIRS= %%PREFIX%%/lib/pth
|
2001-07-30 16:38:49 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-10-26 18:59:25 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
CONFIGURE_ARGS= --enable-optimize \
|
2001-09-11 14:49:45 +00:00
|
|
|
--enable-batch \
|
|
|
|
--includedir="${PREFIX}/include/pth" \
|
|
|
|
--libdir="${PREFIX}/lib/pth"
|
2005-06-15 21:03:03 +00:00
|
|
|
|
2003-11-21 12:25:04 +00:00
|
|
|
USE_REINPLACE= yes
|
1999-05-23 14:54:10 +00:00
|
|
|
|
1999-08-19 15:40:56 +00:00
|
|
|
MAN1= pth-config.1 pthread-config.1
|
|
|
|
MAN3= pth.3 pthread.3
|
1999-05-23 14:54:10 +00:00
|
|
|
|
2005-06-15 21:03:03 +00:00
|
|
|
OPTIONS= OPTIMIZED_CFLAGS "Build with optimized CFLAGS" on \
|
|
|
|
SYSCALL_HARD "Build with hard syscalls" off
|
2005-05-16 14:11:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-06-17 19:01:30 +00:00
|
|
|
.if defined(WITH_SYSCALL_HARD)
|
2005-10-26 18:59:25 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-syscall-hard --disable-syscall-soft
|
2005-06-17 19:01:30 +00:00
|
|
|
.else
|
2005-10-26 18:59:25 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-syscall-soft --enable-pthread
|
2005-06-17 19:01:30 +00:00
|
|
|
.endif
|
|
|
|
|
2003-11-21 12:25:04 +00:00
|
|
|
post-patch:
|
2005-05-16 14:11:39 +00:00
|
|
|
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math||' \
|
2004-04-10 17:26:55 +00:00
|
|
|
${WRKSRC}/configure
|
2004-05-02 19:36:28 +00:00
|
|
|
.endif
|
|
|
|
|
1999-06-28 13:29:40 +00:00
|
|
|
post-build:
|
|
|
|
@${ECHO_MSG} "===> Use 'make test' to run a quick test suite."
|
|
|
|
|
2002-04-28 07:38:54 +00:00
|
|
|
post-install:
|
2005-05-16 14:11:39 +00:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/pth.sh ${PREFIX}/etc/rc.d/000.pth.sh
|
2002-04-28 07:38:54 +00:00
|
|
|
|
2005-10-26 18:59:25 +00:00
|
|
|
test: build
|
|
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
|
1999-06-28 13:29:40 +00:00
|
|
|
|
2005-05-16 14:11:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|