1998-05-07 15:58:20 +00:00
|
|
|
# New ports collection makefile for: libtool
|
|
|
|
# Date created: 6 May 1998
|
|
|
|
# Whom: Motoyuki Kasahara <m-kasahr@sra.co.jp>
|
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1998-05-07 15:58:20 +00:00
|
|
|
#
|
|
|
|
|
2003-06-26 22:58:32 +00:00
|
|
|
PORTNAME?= libtool
|
2004-05-13 20:50:42 +00:00
|
|
|
PORTVERSION= 1.5.6
|
|
|
|
PORTREVISION?= 0
|
1998-05-07 15:58:20 +00:00
|
|
|
CATEGORIES= devel
|
2004-02-13 20:19:49 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= libtool
|
2003-06-26 22:58:32 +00:00
|
|
|
DISTNAME= libtool-${PORTVERSION}
|
1998-05-07 15:58:20 +00:00
|
|
|
|
2003-05-13 16:27:54 +00:00
|
|
|
MAINTAINER= ade@FreeBSD.org
|
2004-02-11 19:14:58 +00:00
|
|
|
COMMENT?= Generic shared library support script (version 1.5)
|
2000-10-24 16:00:52 +00:00
|
|
|
|
2003-07-02 18:26:53 +00:00
|
|
|
BUILD_VERSION= 15
|
2003-06-29 01:41:22 +00:00
|
|
|
LATEST_LINK?= libtool${BUILD_VERSION}
|
|
|
|
PLIST_SUB= BUILD_VERSION=${BUILD_VERSION}
|
2003-06-26 22:58:32 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS?= --disable-ltdl-install
|
2003-06-29 01:41:22 +00:00
|
|
|
CONFIGURE_ARGS+= --program-suffix=${BUILD_VERSION}
|
|
|
|
CONFIGURE_ENV= PREFIX=${PREFIX} PACKAGE=libtool${BUILD_VERSION}
|
2003-07-02 18:26:53 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2003-06-26 22:58:32 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
|
|
|
.if defined(USE_LIBTOOL) || defined(USE_LIBTOOL_VER)
|
2003-10-16 23:54:03 +00:00
|
|
|
pre-everything::
|
2003-06-26 22:58:32 +00:00
|
|
|
@${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)
|
|
|
|
|
2003-07-02 18:26:53 +00:00
|
|
|
post-patch:
|
|
|
|
@(cd ${WRKSRC}/doc && \
|
|
|
|
${RM} -f *.info* && \
|
|
|
|
${MV} libtool.texi libtool${BUILD_VERSION}.texi && \
|
|
|
|
${REINPLACE_CMD} -E 's,(libtool|libtoolize)\),\1${BUILDVERSION}\),g' libtool${BUILD_VERSION}.texi)
|
2003-06-29 01:41:22 +00:00
|
|
|
@${MV} -f ${WRKSRC}/libtool.m4 ${WRKSRC}/libtool${BUILD_VERSION}.m4
|
|
|
|
@${MV} -f ${WRKSRC}/ltdl.m4 ${WRKSRC}/ltdl${BUILD_VERSION}.m4
|
|
|
|
@${REINPLACE_CMD} -e 's|libtool.m4|libtool${BUILD_VERSION}.m4|g' \
|
|
|
|
-e 's|ltdl.m4|ltdl${BUILD_VERSION}.m4|g' ${WRKSRC}/Makefile.in
|
1998-05-07 15:58:20 +00:00
|
|
|
|
2003-06-26 22:58:32 +00:00
|
|
|
.if ${PORTNAME} == "libtool"
|
|
|
|
post-install:
|
2003-06-29 01:41:22 +00:00
|
|
|
@-${RM} -fr ${PREFIX}/libexec/libtool${BUILD_VERSION}
|
|
|
|
${MKDIR} ${PREFIX}/libexec/libtool${BUILD_VERSION}
|
2003-06-26 22:58:32 +00:00
|
|
|
.for i in libtool libtoolize
|
2003-06-29 01:41:22 +00:00
|
|
|
${LN} -sf ${PREFIX}/bin/${i}${BUILD_VERSION} ${PREFIX}/libexec/libtool${BUILD_VERSION}/${i}
|
2003-06-26 22:58:32 +00:00
|
|
|
.endfor
|
2002-09-14 13:32:06 +00:00
|
|
|
.endif
|
|
|
|
|
1998-05-07 15:58:20 +00:00
|
|
|
.include <bsd.port.mk>
|