freebsd-ports/graphics/crystalentitylayer/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

84 lines
1.9 KiB
Makefile

# New ports collection makefile for: Crystal Entity Layer
# Date created: 2005-10-02
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#
PORTNAME= crystalentitylayer
PORTVERSION= 1.0.2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= cel
DISTNAME= cel-src-${PORTVERSION}
DIST_SUBDIR= crystalspace
MAINTAINER= acm@FreeBSD.org
COMMENT= CEL is a layer that sits on top of Crystal Space 3D Engine
BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam \
cs-config:${PORTSDIR}/graphics/crystalspace
CONFLICTS= crystalentitylayer-devel-[0-9]*
USE_BZIP2= yes
GNU_CONFIGURE= yes
LDFLAGS= -L${LOCALBASE}/lib
CPPFLAGS= -I${LOCALBASE}/include
CONFIGURE_ARGS+= --with-cs-prefix=${LOCALBASE}
MAKE_ENV= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
DOCSDIR= share/doc/cel-${PORTVERSION}
DATADIR= share/cel
PLIST_SUB+= DOCSDIR=${DOCSDIR} \
DATADIR=${DATADIR}
JAM_CMD= ${LOCALBASE}/bin/jam
JAM_ARGS= -qa
OPTIONS= DEBUG "Build with debugging information" off \
PYTHON "Python Behaviour Layer" on \
CPPUNIT "The C++ Unit Test Library" on \
BFD "Universal BFD library from the GNU binutils" on
.include <bsd.port.pre.mk>
.if !defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug=no
.else
CONFIGURE_ARGS+= --enable-debug=yes
.endif
.if!defined(WITHOUT_PYTHON)
USE_PYTHON= -2.4
.include <${PORTSDIR}/Mk/bsd.python.mk>
.else
CONFIGURE_ARGS+= --without-python
.endif
.if!defined(WITHOUT_CPPUNIT)
BUILD_DEPENDS+= cppunit-config:${PORTSDIR}/devel/cppunit
.else
CONFIGURE_ARGS+= --without-cppunit
.endif
.if!defined(WITHOUT_BFD)
BUILD_DEPENDS+= ${LOCALBASE}/lib/libbfd.a:${PORTSDIR}/devel/libbfd
.else
CONFIGURE_ARGS+= --without-bfd
.endif
post-configure:
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 63d ${WRKSRC}/Jamfile
.endif
do-build:
@cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${JAM_CMD} ${JAM_ARGS}
do-install:
@cd ${WRKSRC} && \
${JAM_CMD} install
.include <bsd.port.post.mk>