mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +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)
123 lines
3.0 KiB
Makefile
123 lines
3.0 KiB
Makefile
# New ports collection makefile for: tidy
|
|
# Date created: 27 Oct 1998
|
|
# Whom: Abel Chow <achow@transoft.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME?= tidy
|
|
DISTVERSION= 080621-cvs
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
#MASTER_SITES= http://tidy.sourceforge.net/src/%SUBDIR%/ \
|
|
# http://tidy.sourceforge.net/docs/:docs
|
|
#MASTER_SITE_SUBDIR= . old
|
|
MASTER_SITE_SUBDIR= thierry
|
|
PKGNAMESUFFIX?= -devel
|
|
|
|
MAINTAINER?= thierry@FreeBSD.org
|
|
COMMENT?= Utility to clean up and pretty print HTML/XHTML/XML
|
|
|
|
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt
|
|
|
|
USE_BZIP2= yes
|
|
|
|
SLAVEDIRS= www/tidy-lib
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
.if !defined(WITH_SHLIB)
|
|
USE_GMAKE= yes
|
|
PLIST_SUB= SHLIB="@comment " NSHLIB=""
|
|
CONFLICTS= tidy-20000804* tidy-lib-[0-9]*
|
|
.else
|
|
USE_AUTOTOOLS= automake:15 autoconf:262 libtool:15
|
|
AUTOMAKE_ARGS+= -a -c --foreign
|
|
USE_LDCONFIG= yes
|
|
PLIST_SUB= SHLIB="" NSHLIB="@comment "
|
|
CONFLICTS= tidy-20000804* tidy-devel-[0-9]*
|
|
.endif
|
|
|
|
DESCR= ${.CURDIR}/pkg-descr
|
|
|
|
BIN2STRIP= tidy tab2space
|
|
|
|
.if !defined(WITH_SHLIB)
|
|
MAN1= tidy.1
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
. if !defined(WITH_SHLIB)
|
|
ALL_TARGET= all doc
|
|
DOCFILES= quickref.html
|
|
. endif
|
|
DOCFILES+= Overview.html checked_by_tidy.gif faq.html grid.gif pending.html \
|
|
release-notes.html tidy.css tidy.gif
|
|
.endif
|
|
|
|
.if defined(MAINTAINER_MODE)
|
|
|
|
CVSROOT= ":pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy"
|
|
CVS_PASSFILE= ${WRKDIR}/temp-cvs-passfile
|
|
|
|
getcvs:
|
|
${MKDIR} ${WRKDIR}/cvs
|
|
${ECHO_CMD} ${CVSROOT} A > ${CVS_PASSFILE}
|
|
cd ${WRKDIR}/cvs && \
|
|
CVSROOT=${CVSROOT} CVS_PASSFILE=${CVS_PASSFILE} cvs -z3 co -P tidy
|
|
|
|
tarball:
|
|
${RM} -rf ${WRKDIR}/cvs/tidy/CVSROOT
|
|
${FIND} ${WRKDIR}/cvs -name CVS | ${XARGS} ${RM} -rf
|
|
cd ${WRKDIR}/cvs && \
|
|
${TAR} cfj ${_DISTDIR}${DISTFILES} tidy
|
|
|
|
.endif
|
|
|
|
post-patch:
|
|
${CHMOD} a+x ${WRKSRC}/test/testxml.sh
|
|
.if !defined(WITH_SHLIB)
|
|
${CP} ${WRKSRC}/build/gmake/Makefile ${WRKSRC}
|
|
.else
|
|
${CP} -R -f ${WRKSRC}/build/gnuauto/* ${WRKSRC}
|
|
. for t in testone.sh testaccessone.sh
|
|
${REINPLACE_CMD} -e 's|../bin/tidy|../console/tidy|' \
|
|
${WRKSRC}/test/${t}
|
|
. endfor
|
|
.endif
|
|
|
|
patch-autotools::
|
|
.if defined(WITH_SHLIB)
|
|
(cd ${WRKSRC} \
|
|
&& ${LIBTOOLIZE} --force --copy \
|
|
&& ${ACLOCAL} \
|
|
&& ${REINPLACE_CMD} -e '/^_LT_AC_SHELL_INIT/d' aclocal.m4)
|
|
(cd ${PATCH_WRKSRC}; \
|
|
for ltf in ${LIBTOOLFILES}; do \
|
|
${CP} $$ltf $$ltf.tmp; \
|
|
${SED} -e "s^\$$ac_aux_dir/ltconfig^${LTCONFIG}^g" \
|
|
-e "/^ltmain=/!s^\$$ac_aux_dir/ltmain.sh^${LIBTOOLFLAGS} ${LTMAIN}^g" \
|
|
$$ltf.tmp > $$ltf; \
|
|
done);
|
|
.endif
|
|
|
|
post-install:
|
|
.for pgm in ${BIN2STRIP}
|
|
${STRIP_CMD} ${PREFIX}/bin/${pgm}
|
|
.endfor
|
|
.if defined(WITH_SHLIB)
|
|
${STRIP_CMD} ${PREFIX}/lib/libtidy-0.99.so.0
|
|
.endif
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/htmldoc/|} ${DOCSDIR}
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
.endif
|
|
|
|
regression-test:
|
|
.for t in testaccess.sh testall.sh testxml.sh
|
|
cd ${WRKSRC}/test && ./${t}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|