mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +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)
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# New ports collection makefile for: sword
|
|
# Date created: 22 may 2001
|
|
# Whom: Willem van Engen <wvengen@stack.nl>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= sword
|
|
PORTVERSION= 1.5.11
|
|
CATEGORIES= misc
|
|
MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/source/v1.5/ \
|
|
http://crosswire.org/ftpmirror/pub/sword/source/v1.5/ \
|
|
LOCAL
|
|
MASTER_SITE_SUBDIR= tabthorpe
|
|
|
|
MAINTAINER= tabthorpe@FreeBSD.org
|
|
COMMENT= A project framework for manipulating Bible texts
|
|
|
|
USE_GNOME= pkgconfig
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_AUTOTOOLS= automake:110 autoconf:262
|
|
CONFIGURE_ARGS+= --without-conf --without-clucene --with-zlib --without-icu
|
|
USE_LDCONFIG= yes
|
|
SUB_FILES= pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
.if defined(WITHOUT_CURL)
|
|
CONFIGURE_ARGS+= --without-curl
|
|
.else
|
|
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
|
|
CONFIGURE_ARGS+= --with-curl
|
|
|
|
pre-everything::
|
|
@${ECHO_CMD} "Define WITHOUT_CURL to disable remote fetch (curl) support in the installmanager"
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|1.10|1.10.1|g' ${WRKSRC}/aclocal.m4
|
|
@${REINPLACE_CMD} -e 's|2.61|2.62|g' ${WRKSRC}/aclocal.m4
|
|
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
|
|
${WRKSRC}/Makefile.am
|
|
@@${REINPLACE_CMD} -e 's|:=|=|' ${WRKSRC}/Makefile.am \
|
|
${WRKSRC}/Makefile.in ${WRKSRC}/lib/Makefile.am \
|
|
${WRKSRC}/lib/Makefile.in
|
|
|
|
post-install:
|
|
@${MKDIR} ${PREFIX}/share/sword/mods.d
|
|
.if !exists(${PREFIX}/etc/sword.conf)
|
|
@(cd ${WRKSRC} && ${GMAKE} install_config)
|
|
.else
|
|
@${ECHO_CMD} "Config file not installed since ${PREFIX}/etc/sword.conf already exists."
|
|
@${ECHO_CMD} "Please check that DataPath points to your modules (default ${DATADIR}).";
|
|
.endif
|
|
@${ECHO_CMD} ""
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
register:
|
|
@(cd ${WRKSRC} && ${GMAKE} register)
|
|
|
|
.include <bsd.port.mk>
|