diff options
author | Ade Lovett <ade@FreeBSD.org> | 2003-06-26 22:58:32 +0000 |
---|---|---|
committer | Ade Lovett <ade@FreeBSD.org> | 2003-06-26 22:58:32 +0000 |
commit | b2fd75e43812932b61dab72c80fedba5f9715b82 (patch) | |
tree | c06ec55813ad4aa528be251b248e0309e8332282 /devel/libtool15/Makefile | |
parent | 061c49565fbb5c5cfff7bc561b07c79fbade8f24 (diff) |
Notes
Diffstat (limited to 'devel/libtool15/Makefile')
-rw-r--r-- | devel/libtool15/Makefile | 51 |
1 files changed, 39 insertions, 12 deletions
diff --git a/devel/libtool15/Makefile b/devel/libtool15/Makefile index fe6e1d76b734..573ac0226009 100644 --- a/devel/libtool15/Makefile +++ b/devel/libtool15/Makefile @@ -5,26 +5,53 @@ # $FreeBSD$ # -PORTNAME= libtool -PORTVERSION= 1.3.4 -PORTREVISION= 4 +PORTNAME?= libtool +PORTVERSION= 1.4.3 +PORTREVISION?= 0 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= libtool +DISTNAME= libtool-${PORTVERSION} MAINTAINER= ade@FreeBSD.org -COMMENT= Generic shared library support script - -# This port has not been upgraded to 1.4 because it is used by about 30% of -# the ports collection, and more testing is needed. If someone can supply a -# working patch then it will be upgraded. +COMMENT?= Generic shared library support script +LATEST_LINK?= libtool14 +GNU_CONFIGURE= yes +CONFIGURE_ARGS?= --disable-ltdl-install +CONFIGURE_ARGS+= --program-suffix=14 INSTALLS_SHLIB= yes -GNU_CONFIGURE= yes -CONFIGURE_ENV= PREFIX=${PREFIX} +CONFIGURE_ENV= PREFIX=${PREFIX} PACKAGE=libtool14 +USE_REINPLACE= yes + +.if defined(USE_LIBTOOL) || defined(USE_LIBTOOL_VER) +pre-everything: + @${ECHO} =========================================================== + @${ECHO} "You have 'USE_LIBTOOL' or 'USE_LIBTOOL_VER' variables" + @${ECHO} "defined either in environment or in make(1) arguments." + @${ECHO} "Please undefine them and try again." + @${ECHO} =========================================================== + @${FALSE} +.endif # defined(USE_LIBTOOL) || defined(USE_LIBTOOL_VER) + +post-extract: + @${MV} -f ${WRKSRC}/libtool.m4 ${WRKSRC}/libtool14.m4 + @${MV} -f ${WRKSRC}/ltdl.m4 ${WRKSRC}/ltdl14.m4 + @${REINPLACE_CMD} -e 's|libtool.m4|libtool14.m4|g' \ + -e 's|ltdl.m4|ltdl14.m4|g' ${WRKSRC}/Makefile.in + @${MV} -f ${WRKSRC}/doc/libtool.info ${WRKSRC}/doc/libtool14.info + @${MV} -f ${WRKSRC}/doc/libtool.texi ${WRKSRC}/doc/libtool14.texi -.ifdef USE_LIBTOOL -.error You have `USE_LIBTOOL' variable defined either in environment or in make(1) arguments. Please undefine and try again. +.if ${PORTNAME} == "libtool" +post-install: + @-${RM} -fr ${PREFIX}/libexec/libtool14 + ${MKDIR} ${PREFIX}/libexec/libtool14 +.for i in libtool libtoolize + ${LN} -sf ${PREFIX}/bin/${i}14 ${PREFIX}/libexec/libtool14/${i} +.endfor +.for i in config.guess config.sub + ${MV} ${PREFIX}/share/libtool14/${i}14 ${PREFIX}/share/libtool14/${i} +.endfor .endif .include <bsd.port.mk> |