summaryrefslogtreecommitdiff
path: root/mail/imap-uw
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-03-13 20:22:10 +0000
committerjlam <jlam@pkgsrc.org>2001-03-13 20:22:10 +0000
commit359fe2e63883a3869aef14d931586313ff7963f1 (patch)
treec9602ce216e9896d5c2c870b50076345490cd9aa /mail/imap-uw
parenta1bfdf122432c4aecc39b0030364c38347545db7 (diff)
downloadpkgsrc-359fe2e63883a3869aef14d931586313ff7963f1.tar.gz
Build _pic.a library without using libtool internals.
Diffstat (limited to 'mail/imap-uw')
-rw-r--r--mail/imap-uw/Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/mail/imap-uw/Makefile b/mail/imap-uw/Makefile
index 7995cc9a032..37599fb7f0d 100644
--- a/mail/imap-uw/Makefile
+++ b/mail/imap-uw/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2001/03/01 18:29:26 jlam Exp $
+# $NetBSD: Makefile,v 1.29 2001/03/13 20:22:10 jlam Exp $
DISTNAME= imap-2000c
PKGNAME= imap-uw-2000.0.3nb1
@@ -90,26 +90,21 @@ post-extract:
$${file} > $${f}; \
done
+# Generate _pic.a library from shared objects.
+#
post-build:
- ${MKDIR} ${WRKDIR}/piclib
- cd ${WRKDIR}/piclib; \
- for file in ${WRKSRC}/c-client/.libs/*.o; do \
- ${LN} -sf $${file} .; \
- done; \
- ${RM} -f ${CCLIENT_PICLIB}; \
- ${AR} cru ${CCLIENT_PICLIB} *.o; \
- ${RANLIB} ${CCLIENT_PICLIB}
+ cd ${WRKSRC}/c-client; ${LIBTOOL} ${CC} -o ${CCLIENT_PICLIB:.a=.la} *.lo
do-install:
${INSTALL_DATA_DIR} ${INC_DIR}
cd ${WRKSRC}/c-client; ${INSTALL_DATA} ${CCLIENT_INCS} ${INC_DIR}
${INST_LIB} ${WRKSRC}/c-client/${CCLIENT_LIB} ${LIB_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/c-client/.libs/${CCLIENT_PICLIB} ${LIB_DIR}
+ ${RANLIB} ${LIB_DIR}/${CCLIENT_PICLIB}
cd ${LIB_DIR}; for file in ${CCLIENT_LIBS}; do \
f=`echo $${file} | ${SED} "s|libc-client|libimapuw|g"`; \
[ -f $${file} ] && ${LN} -sf $${file} $${f}; \
done
- ${INSTALL_DATA} ${WRKDIR}/piclib/${CCLIENT_PICLIB} ${LIB_DIR}
- ${RANLIB} ${LIB_DIR}/${CCLIENT_PICLIB}
${INST_PROG} ${WRKSRC}/imapd/imapd ${PREFIX}/libexec
${INST_PROG} ${WRKSRC}/ipopd/ipop2d ${PREFIX}/libexec
${INST_PROG} ${WRKSRC}/ipopd/ipop3d ${PREFIX}/libexec