pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libtool-base Configure and build shlibtool after...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/605467228312
branches:  trunk
changeset: 469012:605467228312
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Feb 18 19:13:30 2004 +0000

description:
Configure and build shlibtool after configuring and building libtool,
resepectively.  This makes the build output look more logically grouped
into phases.

diffstat:

 devel/libtool-base/Makefile |  50 ++++++++++++++++++++++----------------------
 1 files changed, 25 insertions(+), 25 deletions(-)

diffs (69 lines):

diff -r 1f93973ee6d3 -r 605467228312 devel/libtool-base/Makefile
--- a/devel/libtool-base/Makefile       Wed Feb 18 18:50:02 2004 +0000
+++ b/devel/libtool-base/Makefile       Wed Feb 18 19:13:30 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2004/02/16 20:24:25 jlam Exp $
+# $NetBSD: Makefile,v 1.29 2004/02/18 19:13:30 jlam Exp $
 #
 
 PKGNAME=       ${DISTNAME:C/-/-base-/}
@@ -49,8 +49,30 @@
 .  include "../../devel/dlcompat/buildlink3.mk"
 .endif
 
-BUILD_SHLIBTOOL?=      YES
-BUILDING_SHLIBTOOL?=   NO
+BUILD_SHLIBTOOL?=      yes
+BUILDING_SHLIBTOOL=    no
+
+.if !empty(BUILD_SHLIBTOOL:M[nN][oO])
+PLIST_SUBST+=          SHLIBTOOL="@comment"
+.else
+SHLIBTOOL_WRKDIR=      ${WRKDIR}/shlibtool
+SHLIBTOOL_WRKSRC=      ${WRKSRC:S/${WRKDIR}/${SHLIBTOOL_WRKDIR}/}
+SHLIBTOOL_MAKEFLAGS=   BUILDING_SHLIBTOOL=yes
+SHLIBTOOL_MAKEFLAGS+=  WRKDIR=${SHLIBTOOL_WRKDIR}
+PLIST_SUBST+=          SHLIBTOOL=
+.  if !empty(BUILDING_SHLIBTOOL:M[yY][eE][sS])
+CONFIGURE_ARGS+=       --disable-static
+.  else
+post-configure:
+       cd ${.CURDIR} && ${MAKE} configure ${SHLIBTOOL_MAKEFLAGS}
+
+post-build:
+       cd ${.CURDIR} && ${MAKE} build ${SHLIBTOOL_MAKEFLAGS}
+.  endif
+
+post-install:
+       ${INSTALL_SCRIPT} ${SHLIBTOOL_WRKSRC}/libtool ${PREFIX}/bin/shlibtool
+.endif
 
 .PHONY: fix-libtool
 fix-libtool:
@@ -62,26 +84,4 @@
 
 post-build: fix-libtool
 
-.if ${BUILDING_SHLIBTOOL} == "YES"
-CONFIGURE_ARGS+=       --disable-static
-.else
-SHLIBTOOL_WRKDIR=      ${WRKDIR}/shlibtool
-SHLIBTOOL_WRKSRC=      ${WRKSRC:S/${WRKDIR}/${SHLIBTOOL_WRKDIR}/}
-SHLIBTOOL_MAKEFLAGS=   BUILDING_SHLIBTOOL=YES
-SHLIBTOOL_MAKEFLAGS+=  WRKDIR=${SHLIBTOOL_WRKDIR}
-
-.  if ${BUILD_SHLIBTOOL} == "NO"
-PLIST_SUBST+=          SHLIBTOOL="@comment "
-.  else
-PLIST_SUBST+=          SHLIBTOOL=
-
-post-build:
-       cd ${.CURDIR} && ${MAKE} build ${SHLIBTOOL_MAKEFLAGS}
-
-post-install:
-       ${INSTALL_SCRIPT} ${SHLIBTOOL_WRKSRC}/libtool                   \
-               ${PREFIX}/bin/shlibtool
-.  endif
-.endif
-
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index