freebsd-ports/devel/g-wrap/Makefile
Rong-En Fan 741aa71483 Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
2008-08-21 06:18:49 +00:00

54 lines
1.5 KiB
Makefile

# 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
INFO= g-wrap
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET=${ARCH:S/amd64/x86_64/}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_GNOME= glib20 gnomehack
NOT_FOR_ARCHS= ia64
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fPIC"
CONFIGURE_ARGS= --disable-Werror
post-patch:
@${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
.include <bsd.port.mk>