mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +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)
135 lines
3.2 KiB
Makefile
135 lines
3.2 KiB
Makefile
# ex:ts=8
|
|
# New ports collection makefile for: bash3
|
|
# Date created: 30 Jul 2004
|
|
# Whom: Oliver Eikemeier
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bash
|
|
PATCHLEVEL= 39
|
|
PORTVERSION= 3.2.${PATCHLEVEL:S/^0//g}
|
|
PORTREVISION?= 1
|
|
CATEGORIES= shells
|
|
MASTER_SITES= ${MASTER_SITE_GNU:S/$/:bash/} \
|
|
ftp://ftp.cwru.edu/pub/%SUBDIR%/:faq
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/:bash,faq
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:R}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:bash
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
PATCH_SITES= ${MASTER_SITE_GNU} \
|
|
ftp://ftp.cwru.edu/pub/%SUBDIR%/
|
|
PATCH_SITE_SUBDIR= ${PORTNAME}/${DISTNAME}-patches/
|
|
PATCHFILES!= /usr/bin/jot -s " " -w \
|
|
${PORTNAME}${PORTVERSION:R:S/.//g}-%03d \
|
|
${PATCHLEVEL} 1 ${PATCHLEVEL}
|
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
|
COMMENT= The GNU Project's Bourne Again SHell
|
|
|
|
IGNOREFILES= FAQ
|
|
CONFLICTS= bash-[0-24-9].*
|
|
|
|
.if !defined(WITHOUT_IMPLICITCD)
|
|
EXTRA_PATCHES+= ${PATCHDIR}/xpatch-implicitcd
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_COLONBREAKSWORDS)
|
|
EXTRA_PATCHES+= ${PATCHDIR}/xpatch-colonbreakswords
|
|
.endif
|
|
|
|
MAN1= bash.1 bashbug.1
|
|
INFO= bash
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
.if !defined(WITH_INCLUDED_FAQ)
|
|
DISTFILES+= FAQ:faq
|
|
.endif
|
|
PORTDOCS= FAQ INTRO CHANGES COMPAT NEWS POSIX RBASH
|
|
.endif
|
|
|
|
CONFIGURE_ARGS= --without-bash-malloc \
|
|
--disable-rpath \
|
|
--enable-disabled-builtins
|
|
|
|
.if defined(WITH_STATIC_BASH) || defined(NO_DYNAMICROOT) || (defined(NOSHARED) && ${NOSHARED:L} != "no")
|
|
.if !defined(WITHOUT_NLS)
|
|
WITHOUT_NLS=yes
|
|
.endif
|
|
CONFIGURE_ARGS+= --enable-static-link
|
|
PKGNAMESUFFIX= -static
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-static-link=no
|
|
.endif
|
|
|
|
.if defined(WITHOUT_HELP)
|
|
CONFIGURE_ARGS+= --disable-help-builtin
|
|
PLIST_SUB+= HELP="@comment "
|
|
.elif defined(WITH_INTEGRATED_HELPFILES)
|
|
PLIST_SUB+= HELP="@comment "
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-separate-helpfiles
|
|
PLIST_SUB+= HELP=""
|
|
.endif
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.else
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= NLS=""
|
|
.endif
|
|
|
|
CPPFLAGS+= ${PTHREAD_CFLAGS} \
|
|
-I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
|
|
LDFLAGS="${LDFLAGS}" \
|
|
YACC="${YACC}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/bash.1
|
|
|
|
post-configure:
|
|
@${FIND} ${WRKSRC} -name Makefile -print0 | ${XARGS} -0 \
|
|
${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|"
|
|
|
|
pre-build:
|
|
@${ECHO_CMD} $$((${PORTREVISION}-1)) > ${WRKSRC}/.build
|
|
|
|
pre-install:
|
|
@${SETENV} PKG_PREFIX="${PREFIX}" \
|
|
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
post-install:
|
|
@cd ${PREFIX}/bin ; ${LN} -sf bash rbash
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.if !defined(WITH_INCLUDED_FAQ)
|
|
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/FAQ \
|
|
${WRKSRC}/doc/INTRO ${DOCSDIR}
|
|
.else
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/FAQ \
|
|
${WRKSRC}/doc/INTRO ${DOCSDIR}
|
|
.endif
|
|
@for d in ${PORTDOCS:NFAQ:NINTRO}; do \
|
|
${INSTALL_DATA} ${WRKSRC}/$${d} ${DOCSDIR}; \
|
|
done
|
|
.endif
|
|
@${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" \
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
cklatest:
|
|
-ncftpls \
|
|
ftp://ftp.cwru.edu/pub/${PORTNAME}/${PORTNAME}-${PORTVERSION:C/\.[0-9a-z]*$//}-patches/ \
|
|
| ${TAIL}
|
|
|
|
.include <bsd.port.post.mk>
|