bsd.port.Mk error

Mike Brown mike at skew.org
Sun Nov 21 01:16:46 PST 2004


Sam Lawrance wrote:
> Mike Brown wrote:
> 
> >2. I accidentally typed "make" in a directory that did not have a Makefile,
> >and got this error:
> >
> >"/usr/ports/Mk/bsd.port.mk", line 1459: Bad X_WINDOW_SYSTEM setting
> >
> >I do not have X11 installed on my system. I don't see anything in the Makefile
> >that would have resulted in arriving at line 1459. If OSVERSION is being set
> >by "/sbin/sysctl -n kern.osreldate" then it is "490102", and AFAIK,
> >XFREE86_VERSION is not defined. Therefore around line 1180, X_WINDOW_SYSTEM
> >should be set to "xfree86-4", and the elif around line 1424 should kick in.
> >But somehow it falls through to the else.
> >
> >Any ideas?
> >  
> >
> There must have been a Makefile in there somewhere, otherwise 
> bsd.port.mk wouldn't have been included.
> 

You're right, silly me.

But anyway, I'm still getting the error, and it seems to be something
specific to the port Makefile that I'm developing. Is there anything
obviously wrong with the following?

# New ports collection makefile for:	py-4suite
# Date created:		16 March 2000
# Whom:	      		Mike Brown <mike at skew.org>
#
# $FreeBSD: ports/textproc/py-4suite/Makefile,v 1.13 2004/06/14 06:04:30 perky Exp $
#

PORTNAME=	4suite
PORTVERSION=	1.0.a4
PORTREVISION=	0
CATEGORIES=	textproc www python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	4Suite-1.0a4
USE_BZIP2=	yes
WRKSRC=		${WRKDIR}/4Suite
MASTER_SITES=	ftp://ftp.4suite.org/pub/4Suite/ \
		${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	foursuite

MAINTAINER=	mike at skew.org
COMMENT=	A collection of Python tools for XML and RDF processing

#IGNORE=		has a broken pkg-plist that removes dozens of files not installed by this port.
#BUILD_DEPENDS=	${PYXML}
#RUN_DEPENDS=	${PYXML}
#CONFLICTS=	
#USE_REINPLACE=	yes
#REINPLACE_ARGS=	-i "" -E

USE_PYTHON=	yes
PYTHON_VERSION=	2.2.1+
USE_PYDISTUTILS=	yes

# not sure what to do about localstatedir
PYDISTUTILS_CONFIGARGS=	--bindir=${PREFIX}/bin \
			--datadir=${PREFIX}/share/4Suite \
			--sysconfdir=${PREFIX}/etc/4Suite \
			--localstatedir=/var/local/lib/4Suite \
			--libdir=${PREFIX}/lib/4Suite \
			--docdir=${PREFIX}/share/doc/${PORTNAME} \
			--pythonlibdir=${PYTHON_SITELIBDIR} \
			--localedir=${PREFIX}/share/locale

.if defined(NOPORTDOCS)
PYDISTUTILS_BUILDARGS=	--without-docs
.else
PYDISTUTILS_BUILDARGS=	--with-docs
.endif

PYDISTUTILS_INSTALLARGS=	-c -O1

.include <bsd.port.post.mk>


More information about the freebsd-ports mailing list