freebsd-ports/devel/g-wrap/Makefile

55 lines
1.5 KiB
Makefile
Raw Normal View History

# Ports collection makefile for: g-wrap
# Date created: Jun 29, 2000
# Whom: Matthew Condell (mcondell@alum.mit.edu)
#
# $FreeBSD$
# $MCom: ports/devel/g-wrap/Makefile,v 1.6 2006/12/24 18:45:08 ahze Exp $
#
PORTNAME= g-wrap
PORTVERSION= 1.9.6
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= devel scheme
MASTER_SITES= SAVANNAH
MAINTAINER= gnome@FreeBSD.org
COMMENT= A tool for exporting C libraries into Scheme interpreters
BUILD_DEPENDS= guile>=1.6.8_2:${PORTSDIR}/lang/guile \
slib-guile>0:${PORTSDIR}/lang/slib-guile
RUN_DEPENDS= guile>=1.6.8_2:${PORTSDIR}/lang/guile \
slib-guile>0:${PORTSDIR}/lang/slib-guile
2003-08-16 12:07:08 +02:00
INFO= g-wrap
USE_LDCONFIG= yes
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
USE_GNOME= glib20 gnomehack
NOT_FOR_ARCHS= ia64
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fPIC"
CONFIGURE_ARGS= --disable-Werror
post-patch:
2007-03-22 16:22:14 +01:00
@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' ${WRKSRC}/configure
@${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
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|(GUILE_CFLAGS) $$(LIBFFI_CFLAGS)|(LIBFFI_CFLAGS) $$(GUILE_CFLAGS)|g'
pre-install:
@${REINPLACE_CMD} -e 's|libffi||' ${WRKSRC}/${MAKEFILE}
post-install:
${MKDIR} ${PREFIX}/include/g-wrap/ffi
.for f in ffi.h ffitarget.h
${INSTALL_DATA} ${WRKSRC}/libffi/include/${f} \
${PREFIX}/include/g-wrap/ffi
.endfor
2007-03-07 16:24:50 +01:00
.include <bsd.port.mk>