freebsd-ports/editors/bed/Makefile
Kris Kennaway a2c4cd1ed0 This port contains an incorrect configure test that tries to test for the
pthread_create() function by doing the following

| char pthread_create ();
| int
| main ()
| {
| pthread_create ();
|   ;
|   return 0;
| }

This is completely bogus (pthread_create() requires arguments), so this
causes undefined behaviour.  One such undefined behaviour seen in practise
is an infinite loop.  Disable the port until someone cares to fix this.

Also shuffle the rxvt PATCH_DEPENDS (!) later, to give a chance for the
WITHOUT_X11 to be set.  This also looks pretty bogus, rxvt in fact does not
appear to be needed for patching.
2007-06-17 06:27:45 +00:00

66 lines
1.6 KiB
Makefile

# New ports collection makefile for: bed
# Date created: 2001/05/07
# Whom: jkaltes@hetnet.nl
#
# $FreeBSD$
#
PORTNAME= bed
PORTVERSION= 0.2.23
PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= http://bedlinux.tripod.com/download/
EXTRACT_SUFX= .src.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= Variable dataformat binary editor
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
IGNORE= has a broken test for pthread_create() (wrong prototype and calling conventions) causing an infinite loop.
USE_GCC= 3.4
USE_GMAKE= yes
GNU_CONFIGURE= yes
ALL_TARGET= dep all
OPTIONS= X11 "Enable X11 support" on
MAN1= bed.1 xbed.1
MANCOMPRESSED= yes
.include <bsd.port.pre.mk>
# Check for menubar support in "x11/rxvt". In case of failure, disable X11 if
# BATCH or PACKAGE_BUILDING, and IGNORE otherwise.
.if !defined(WITHOUT_X11)
. if exists(${X11BASE}/bin/rxvt)
MENUBAR_TEST!= rxvt -h 2>&1 | ${GREP} -i menubar || ${TRUE}
. if empty(MENUBAR_TEST)
. if defined(BATCH) || defined(PACKAGE_BUILDING)
WITHOUT_X11= yes
. else
IGNORE= needs "x11/rxvt" to be compiled with the WITH_MENUBAR option to enable X11 support
. endif
. endif
. endif
.endif
.if !defined(WITHOUT_X11)
PATCH_DEPENDS+= rxvt:${PORTSDIR}/x11/rxvt
.endif
.if !defined(WITHOUT_X11)
RUN_DEPENDS+= rxvt:${PORTSDIR}/x11/rxvt
PLIST_SUB+= X11=""
.else
PLIST_SUB+= X11="@comment "
CONFIGURE_ARGS+=--without-x
.endif
post-configure:
@${ECHO_CMD} 'CONFIG_DEBUG=n' >> ${WRKSRC}/config
@${ECHO_CMD} 'CONFIG_MMAP=y' >> ${WRKSRC}/config
@${ECHO_CMD} 'GCC=${CC}' >> ${WRKSRC}/config
.include <bsd.port.post.mk>