mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
741aa71483
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)
155 lines
3.9 KiB
Makefile
155 lines
3.9 KiB
Makefile
# New ports collection makefile for: subversion
|
|
# Date created: 10 September 2001
|
|
# Whom: rooneg@electricjellyfish.net
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= subversion
|
|
PORTVERSION= 1.5.1
|
|
PORTREVISION?= 0
|
|
CATEGORIES+= devel
|
|
MASTER_SITES= http://subversion.tigris.org/downloads/:main \
|
|
http://svnbook.red-bean.com/en/1.4/:book
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}:main
|
|
DIST_SUBDIR= subversion
|
|
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
|
|
|
|
USE_BZIP2= yes
|
|
USE_AUTOTOOLS= libtool:15
|
|
CONFIGURE_ARGS= --with-ssl
|
|
WANT_PERL= yes
|
|
|
|
.if defined(SVN_BUILD_BINDINGS)
|
|
# Bindings ports should use the same, as main port
|
|
OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options
|
|
# Dirty hack: if OPTIONS is not defined, OPTIONSFILE will not be included
|
|
OPTIONS=
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
CONFIGURE_ARGS+= --without-swig
|
|
|
|
# Default is "on"
|
|
.if !defined(WITHOUT_NEON)
|
|
LIB_DEPENDS+= neon.28:${PORTSDIR}/www/neon28
|
|
CONFIGURE_ARGS+= --with-neon=${LOCALBASE}
|
|
PLIST_SUB+= NEON=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-neon
|
|
PLIST_SUB+= NEON="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_SASL)
|
|
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
|
|
CONFIGURE_ARGS+= --with-sasl=${LOCALBASE}
|
|
PLIST_SUB+= SASL=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-sasl
|
|
PLIST_SUB+= SASL="@comment "
|
|
.endif
|
|
|
|
# Default us "on"
|
|
.if !defined(WITHOUT_BDB)
|
|
PLIST_SUB+= BDB=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-berkeley-db
|
|
PLIST_SUB+= BDB="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_MOD_DAV_SVN)
|
|
WITH_APACHE2_APR= yes
|
|
CONFIGURE_ARGS+= --with-apxs=${APXS}
|
|
PLIST_SUB+= MOD_DAV_SVN=""
|
|
SVNGROUP?= www
|
|
.else
|
|
PLIST_SUB+= MOD_DAV_SVN="@comment "
|
|
PKGDEINSTALL= NONEXISTENT
|
|
SVNGROUP?= svn
|
|
.endif
|
|
|
|
.if defined(WITH_APACHE2_APR)
|
|
USE_APACHE= 2.0+
|
|
.include "${PORTSDIR}/Mk/bsd.apache.mk"
|
|
.if ${APACHE_VERSION} >= 21
|
|
APR_APU_DIR= ${LOCALBASE}/bin
|
|
APR_CONFIG= apr-1-config
|
|
APU_CONFIG= apu-1-config
|
|
.else
|
|
APR_APU_DIR= ${LOCALBASE}/lib/apache2
|
|
APR_CONFIG= apr-config
|
|
APU_CONFIG= apu-config
|
|
.endif
|
|
APR_PORT= ${APACHE_PORT}
|
|
.if !defined(WITHOUT_BDB)
|
|
DEPENDS_ARGS+= WITH_BERKELEYDB=db4
|
|
OPT_NAME= WITH_BERKELEYDB=(db4|db41|db42)
|
|
.endif
|
|
.else
|
|
APR_APU_DIR= ${LOCALBASE}/bin
|
|
APR_CONFIG= apr-1-config
|
|
APU_CONFIG= apu-1-config
|
|
.if !defined(WITHOUT_BDB)
|
|
LIB_DEPENDS+= apr-1.3:${PORTSDIR}/devel/apr-svn
|
|
APR_PORT= devel/apr-svn
|
|
OPT_NAME= APR_UTIL_WITH_BERKELEY_DB=yes
|
|
.else
|
|
LIB_DEPENDS+= apr-1.3:${PORTSDIR}/devel/apr
|
|
APR_PORT= devel/apr
|
|
.endif
|
|
.endif
|
|
CONFIGURE_ARGS+=--with-apr=${APR_APU_DIR}/${APR_CONFIG} \
|
|
--with-apr-util=${APR_APU_DIR}/${APU_CONFIG}
|
|
|
|
.if defined(WITH_SERF)
|
|
LIB_DEPENDS+= serf-0.0:${PORTSDIR}/www/serf
|
|
CONFIGURE_ARGS+= --with-serf=${LOCALBASE}
|
|
PLIST_SUB+= SERF=""
|
|
.else
|
|
PLIST_SUB+= SERF="@comment "
|
|
.endif
|
|
|
|
.if defined(SVN_BUILD_BINDINGS)
|
|
.if defined(WITH_FREEBSD_SUBVERSION)
|
|
LIB_DEPENDS+= svn_client-1:${PORTSDIR}/devel/subversion-freebsd
|
|
.else
|
|
LIB_DEPENDS+= svn_client-1:${PORTSDIR}/devel/subversion
|
|
.endif
|
|
EXTRA_PATCHES+= ${PATCHDIR}/bindings-patch-subversion--bindings--swig--perl--native--Makefile.PL.in
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= WITHOUT_GETTEXT=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= WITHOUT_GETTEXT="@comment "
|
|
.endif
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
CFLAGS+= -fpic -DPIC
|
|
.endif
|
|
|
|
.if defined(WITH_MAINTAINER_DEBUG)
|
|
CONFIGURE_ARGS+=--enable-maintainer-mode \
|
|
--enable-debug
|
|
CFLAGS+= -g
|
|
.endif
|
|
|
|
post-extract:
|
|
@${RM} -rf ${WRKSRC}/neon
|
|
@${RM} -rf ${WRKSRC}/apr
|
|
@${RM} -rf ${WRKSRC}/apr-util
|
|
|
|
post-patch:
|
|
.if ${PREFIX} != "/usr"
|
|
@${REINPLACE_CMD} "s#/etc/subversion#${ETCDIR}#g" ${WRKSRC}/subversion/libsvn_subr/config_file.c
|
|
@${REINPLACE_CMD} "s#/etc/subversion#${ETCDIR}#g" ${WRKSRC}/subversion/libsvn_subr/config_impl.h
|
|
.endif
|
|
@${REINPLACE_CMD} "s#^swig_pydir =.*#swig_pydir = ${PYTHON_SITELIBDIR}/libsvn#" ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} "s#^swig_pydir_extra =.*#swig_pydir_extra = ${PYTHON_SITELIBDIR}/svn#" ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} "s#^LIBTOOL =.*#LIBTOOL = ${LIBTOOL}#" ${WRKSRC}/Makefile.in
|
|
.if defined(SVN_BUILD_BINDINGS)
|
|
@${CP} ${FILESDIR}/build-outputs.mk ${WRKSRC}
|
|
.endif
|