Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Libtoolize: where? Is it possible to rewrite configure-message?

0 views
Skip to first unread message

Thierry Thomas

unread,
Jul 28, 2003, 4:10:51 PM7/28/03
to
Hello,

I have a problem with the port www/tidy-lib (slave port of
www/tidy-devel with defined WITH_SHLIB).

It required the sequence libtoolize & aclocal, and in the current port,
USE_AUTOMAKE_VER=15 is defined, and it is executed during post-patch:

post-patch:
.if !defined(WITH_SHLIB)
@${CP} ${WRKSRC}/build/gmake/Makefile ${WRKSRC}
.else
@${CP} -R -f ${WRKSRC}/build/gnuauto/* ${WRKSRC}
(cd ${WRKSRC} \
&& ${LIBTOOLIZE} --force --copy \
&& ${ACLOCAL})
.endif

It kind-of-works, and even builds on Bento, but this is not
bullet-proof: Mathieu Arnold has reported a problem on a machine without
automake / aclocal. USE_AUTOMAKE produces a build-depends for
devel/automake, but the depends are brough in after post-patch, and it
aborts because aclocal is not found.

If I split this target and move (libtoolize & aclocal) to pre-configure,
this is too late: it must be somewhere between build-depends and
patch-libtool.

The /right way/ would be too introduce a new target do-libtoolize in
bsd.port.mk, but libtoolize is not used by a lot of ports.

The following patch works, but I don't know if it is legitimate to
rewrite configure-message?

--- tidy-devel.diff begins here ---
--- www/tidy-devel/Makefile.orig Fri Jul 25 21:26:03 2003
+++ www/tidy-devel/Makefile Sat Jul 26 23:01:12 2003
@@ -55,9 +55,14 @@
@${CP} ${WRKSRC}/build/gmake/Makefile ${WRKSRC}
.else
@${CP} -R -f ${WRKSRC}/build/gnuauto/* ${WRKSRC}
+.endif
+
+configure-message:
+.if defined(WITH_SHLIB)
(cd ${WRKSRC} \
&& ${LIBTOOLIZE} --force --copy \
&& ${ACLOCAL})
+ @${ECHO_MSG} "===> Configuring for ${PKGNAME}"
.endif

pre-install:
--- tidy-devel.diff ends here ---

Comments and better ideas are welcome!
--
Th. Thomas.
_______________________________________________
freebs...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-port...@freebsd.org"

0 new messages