2000-07-15 20:34:05 +02:00
|
|
|
# Ports collection makefile for: g-wrap
|
|
|
|
# Date created: Jun 29, 2000
|
|
|
|
# Whom: Matthew Condell (mcondell@alum.mit.edu)
|
2000-07-10 06:16:53 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2007-02-23 23:24:14 +01:00
|
|
|
# $MCom: ports/devel/g-wrap/Makefile,v 1.6 2006/12/24 18:45:08 ahze Exp $
|
2007-03-03 21:54:51 +01:00
|
|
|
#
|
2000-07-10 06:16:53 +02:00
|
|
|
|
|
|
|
PORTNAME= g-wrap
|
2007-02-23 23:24:14 +01:00
|
|
|
PORTVERSION= 1.9.6
|
2009-01-22 17:04:11 +01:00
|
|
|
PORTREVISION= 5
|
2006-10-17 23:24:05 +02:00
|
|
|
PORTEPOCH= 1
|
2003-08-28 02:01:09 +02:00
|
|
|
CATEGORIES= devel scheme
|
2007-02-23 23:24:14 +01:00
|
|
|
MASTER_SITES= SAVANNAH
|
2000-07-10 06:16:53 +02:00
|
|
|
|
2001-05-11 18:36:50 +02:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2003-03-04 18:48:26 +01:00
|
|
|
COMMENT= A tool for exporting C libraries into Scheme interpreters
|
2000-07-10 06:16:53 +02:00
|
|
|
|
2009-01-22 17:04:11 +01:00
|
|
|
BUILD_DEPENDS= guile>=1.8.6:${PORTSDIR}/lang/guile \
|
2007-02-23 23:24:14 +01:00
|
|
|
slib-guile>0:${PORTSDIR}/lang/slib-guile
|
2009-01-22 17:04:11 +01:00
|
|
|
RUN_DEPENDS= guile>=1.8.6:${PORTSDIR}/lang/guile \
|
2007-02-23 23:24:14 +01:00
|
|
|
slib-guile>0:${PORTSDIR}/lang/slib-guile
|
2000-07-10 06:16:53 +02:00
|
|
|
|
2003-08-16 12:07:08 +02:00
|
|
|
INFO= g-wrap
|
|
|
|
|
2007-02-23 23:24:14 +01:00
|
|
|
USE_LDCONFIG= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2008-08-21 08:18:49 +02:00
|
|
|
CONFIGURE_TARGET=${ARCH:S/amd64/x86_64/}-portbld-freebsd${OSREL}
|
2003-02-05 07:11:32 +01:00
|
|
|
USE_GMAKE= yes
|
2007-02-23 23:24:14 +01:00
|
|
|
USE_GNOME= glib20 gnomehack
|
2007-04-07 23:20:21 +02:00
|
|
|
NOT_FOR_ARCHS= ia64
|
2007-02-23 23:24:14 +01:00
|
|
|
|
2007-03-04 07:53:01 +01:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fPIC"
|
2007-05-29 22:52:20 +02:00
|
|
|
CONFIGURE_ARGS= --disable-Werror
|
2007-03-04 07:53:01 +01:00
|
|
|
|
2007-02-23 23:24:14 +01:00
|
|
|
post-patch:
|
2007-03-22 16:22:14 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' ${WRKSRC}/configure
|
2007-03-04 07:53:01 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|"glib"|"glib-2.0"|g ; \
|
|
|
|
s|SRFI_34=yes|SRFI_34=no|g ; s|SRFI_35=yes|SRFI_35=no|g' \
|
|
|
|
${WRKSRC}/configure
|
2007-03-03 21:54:51 +01:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|(GUILE_CFLAGS) $$(LIBFFI_CFLAGS)|(LIBFFI_CFLAGS) $$(GUILE_CFLAGS)|g'
|
2007-02-23 23:24:14 +01:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${REINPLACE_CMD} -e 's|libffi||' ${WRKSRC}/${MAKEFILE}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${PREFIX}/include/g-wrap/ffi
|
|
|
|
.for f in ffi.h ffitarget.h
|
2007-03-03 21:54:51 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/libffi/include/${f} \
|
|
|
|
${PREFIX}/include/g-wrap/ffi
|
2007-02-23 23:24:14 +01:00
|
|
|
.endfor
|
2000-07-10 06:16:53 +02:00
|
|
|
|
2007-03-07 16:24:50 +01:00
|
|
|
.include <bsd.port.mk>
|