[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pkgsrc patches

From: Greg Troxel
Subject: Re: Pkgsrc patches
Date: Fri, 15 Feb 2008 20:59:10 -0500
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (berkeley-unix)

OK, I've sent all 5 pkgsrc patches, of which I think 4 should probably
be applied.  Please feel free to ask about any of them, although I'll
point out that I'm not the originator of some of these.

In addition to the patches, pkgsrc bashes the slib support, and avoids
the rpath addition on Darwin.  Below, note:

  post-patch: unconditional replacement of ice-9 slib file

  post-patch: target conditional on darwin

# $NetBSD: Makefile,v 1.80 2008/01/04 18:17:16 joerg Exp $

DISTNAME=               guile-1.8.3
CATEGORIES=             lang
MASTER_SITES=           ${MASTER_SITE_GNU:=guile/}

MAINTAINER=             address@hidden
COMMENT=                GNU's Ubiquitous Intelligent Language for Extension

CONFLICTS=              guile14<1.4.1nb1 guile-oops-[0-9]*

PKG_DESTDIR_SUPPORT=    user-destdir

USE_TOOLS+=             gmake makeinfo
USE_LIBTOOL=            YES
INFO_FILES=             YES

# XXX Make this conditional on the problematic systems.
# couldn't figure out how to work around an error on solaris-2.9/sparc with gcc 
# compiling ${WRKSRC}/libguile/filesys.c.  The warning is that readdir64_r was 
# a prototype.
CONFIGURE_ARGS+=        --disable-error-on-warning

TEST_DIRS=              .
TEST_TARGET=            check

OWN_DIRS=               ${PREFIX}/share/guile/site

.include "../../mk/"

# scmconfig.h will be rebuilt first thing.  This hack is here because
# gen-scmconfig.c includes string.h (from /usr/include) which in turn
# tries to include /usr/include/strings.h but instead the compiler picks
# up ./strings.h which tries to include scmconfig.h which doesn't exist
# yet.  While not a clean fix, this seems to work around the problem.
# for info on the slib part, see
        ${TOUCH} ${WRKSRC}/libguile/scmconfig.h
        ${ECHO} "(define-module (ice-9 slib))" > ${WRKSRC}/ice-9/slib.scm
        ${ECHO} "(load-from-path \"slib/guile.init\")" >> 

.if ${OPSYS} == "DragonFly"
CONFIGURE_ARGS+=        ac_cv_type_complex_double=no

.if ${OPSYS} == "Darwin"
CPPFLAGS+=              -Dmacosx

# Darwin does not use -rpath, so back out the patch that adds it.  It
# is not clear that guile works properly if directories with modules
# are not in LTDL_LIBRARY_PATH or LD_LIBRARY_PATH.  See the following
# PRs:
        ${MV} ${WRKSRC}/guile-config/ \

.include "../../devel/gmp/"
.include "../../devel/libltdl/"
.include "../../devel/ncurses/"
.include "../../devel/readline/"
.include "../../mk/"
.include "../../mk/"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]