/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Copyright (C) 2000 Ximian Inc. * * Authors: Michael Zucchi * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef _CAMEL_STREAM_NULL_H #define _CAMEL_STREAM_NULL_H #ifdef __cplusplus extern "C" { #pragma } #endif /* __cplusplus */ #include #define CAMEL_STREAM_NULL(obj) CAMEL_CHECK_CAST (obj, camel_stream_null_get_type (), CamelStreamNull) #define CAMEL_STREAM_NULL_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_stream_null_get_type (), CamelStreamNullClass) #define CAMEL_IS_STREAM_NULL(obj) CAMEL_CHECK_TYPE (obj, camel_stream_null_get_type ()) typedef struct _CamelStreamNullClass CamelStreamNullClass; struct _CamelStreamNull { CamelStream parent; size_t written; }; struct _CamelStreamNullClass { CamelStreamClass parent_class; }; CamelType camel_stream_null_get_type (void); CamelStream *camel_stream_null_new (void); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* ! _CAMEL_STREAM_NULL_H */ FreeBSD Ports (https://github.com/freebsd/freebsd-ports)
aboutsummaryrefslogblamecommitdiffstats
blob: ed94cd7417aa837b80cb41d2218cf5930ed393cd (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                            
                      
                    







                                                                                                
 
                              
                                      
 

                    
                                                                 
 


                           
                                                               


                                                    
 
                                          
 


                          
                                   

      


                                                         


                                                                         
 






                                                                               
                           
# New ports collection makefile for:   gprolog
# Date created:        30 June 2001
# Whom:                Douglas Anestad <yotta@dougdidit.com>
#
# $FreeBSD$
#

PORTNAME=   gprolog
PORTVERSION=    1.2.18
CATEGORIES= lang
MASTER_SITES=   ${MASTER_SITE_DEBIAN} ftp://ftp.inria.fr/INRIA/Projects/contraintes/gprolog/:doc
MASTER_SITE_SUBDIR= pool/main/g/${PORTNAME}
DISTFILES=  ${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX}
.if !defined(NOPORTDOCS)
DISTFILES+= manual.pdf.gz:doc manual-html.tar.gz:doc
.endif
DIST_SUBDIR=    gprolog
EXTRACT_ONLY=   ${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX}

MAINTAINER= vs@FreeBSD.org
COMMENT=    A free Prolog compiler

ONLY_FOR_ARCHS= i386

WRKSRC=     ${WRKDIR}/${PORTNAME}_${PORTVERSION}.orig/src/src

USE_REINPLACE=  yes
USE_GMAKE=  yes
USE_AUTOCONF_VER=   253
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-c-flags="${CFLAGS}" \
        --with-doc-dir=none \
        --with-examples-dir="${EXAMPLESDIR}"

PLIST_SUB+= GPROLOG_VER=${PORTVERSION}

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502126
CONFIGURE_ARGS+=--disable-fast-call
.endif

post-extract:
    @${CP} ${PORTSDIR}/Templates/config.sub ${WRKSRC}

post-patch:
    @${REINPLACE_CMD} -e \
        's|<malloc\.h>|<stdlib.h>|g' ${WRKSRC}/EnginePl/machine.c

post-install:
.   if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @cd ${DOCSDIR} && ${GZIP_CMD} -cd ${_DISTDIR}/manual.pdf.gz >manual.pdf
    @cd ${DOCSDIR} && ${TAR} zxf ${_DISTDIR}/manual-html.tar.gz
.   endif

.include <bsd.port.post.mk>