openbsd-ports/devel/libtool/Makefile
brad a8a0fd2d8e rev 1.28
Propagate a convenience library's dependency libs correctly when
it is being linked into a libtool library.  Deplibs are now
propagated whether libdir is set or not.

rev 1.27

The dlpreopen pass over libraries reverses the elements in the
$deplibs list.  This causes problems when the link pass tries to
find libraries when they are located in non-standard places
denoted by -L options.  Due to the reversed order these -L options
occur after the libraries that need them, and they are not found:

(Un)Reverse $deplibs list at the start of the link pass in lib mode.

From libtool CVS
2004-12-18 23:30:36 +00:00

49 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.36 2004/12/18 23:30:36 brad Exp $
# $FreeBSD: Makefile,v 1.2 1998/09/23 16:15:53 vanilla Exp $
COMMENT= "generic shared library support script"
COMMENT-ltdl= "GNU libtool system independent dlopen wrapper"
VERSION= 1.5.10
DISTNAME= libtool-${VERSION}
PKGNAME= ${DISTNAME}p2
PKGNAME-ltdl= libltdl-${VERSION}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=libtool/}
HOMEPAGE= http://www.gnu.org/software/libtool/
AUTOCONF_VERSION= 2.59
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS}
MAINTAINER= Brad Smith <brad@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MAKE_ENV+= MAKEINFOFLAGS="--no-split"
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
MULTI_PACKAGES= -ltdl
SUBPACKAGE?=
.if defined(PACKAGING)
. if empty(SUBPACKAGE)
RUN_DEPENDS+= ::devel/libtool,-ltdl
. endif
.endif
pre-configure:
@rm -f ${WRKSRC}/doc/libtool.info*
do-regress:
cd ${WRKDIR}/bin && ln -sf ${LOCALBASE}/bin/autoconf-2.59 autoconf
cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} check
.include <bsd.port.mk>