mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Convert to USES=libtool and INSTALL_TARGET=install-strip
This commit is contained in:
parent
b33b0aa600
commit
be22272963
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366468
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME?= tidy
|
||||
DISTVERSION= 090315-cvs
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
#MASTER_SITES= http://tidy.sourceforge.net/src/%SUBDIR%/ \
|
||||
@ -29,9 +29,11 @@ PLIST_SUB= SHLIB="@comment " NSHLIB=""
|
||||
MAKE_ARGS+= PREFIX=${STAGEDIR}${PREFIX}
|
||||
CONFLICTS= tidy-20000804* tidy-lib-[0-9]*
|
||||
.else
|
||||
USE_AUTOTOOLS= automake autoconf libtool
|
||||
USES+= libtool
|
||||
USE_AUTOTOOLS= aclocal automake autoconf libtoolize
|
||||
AUTOMAKE_ARGS+= -a -c --foreign
|
||||
USE_LDCONFIG= yes
|
||||
INSTALL_TARGET= install-strip
|
||||
PLIST_SUB= SHLIB="" NSHLIB="@comment "
|
||||
CONFLICTS= tidy-devel-[0-9]*
|
||||
.endif
|
||||
@ -84,28 +86,10 @@ post-patch:
|
||||
. endfor
|
||||
.endif
|
||||
|
||||
patch-autotools-libtool::
|
||||
.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} ${STAGEDIR}${PREFIX}/bin/${pgm}
|
||||
.endfor
|
||||
.if defined(WITH_SHLIB)
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtidy-0.99.so.0
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
|
@ -5,8 +5,7 @@ include/tidy/platform.h
|
||||
include/tidy/tidy.h
|
||||
include/tidy/tidyenum.h
|
||||
%%SHLIB%%lib/libtidy-0.99.so.0
|
||||
%%SHLIB%%lib/libtidy-0.99.so
|
||||
%%SHLIB%%lib/libtidy.la
|
||||
%%SHLIB%%lib/libtidy-0.99.so.0.0.0
|
||||
%%SHLIB%%lib/libtidy.so
|
||||
lib/libtidy.a
|
||||
%%NSHLIB%%man/man1/tidy.1.gz
|
||||
|
Loading…
Reference in New Issue
Block a user