pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/qmail-spp-spf Use libtool for the build. Fixes li...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ec61366dfc09
branches: trunk
changeset: 316353:ec61366dfc09
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Mon Dec 10 22:38:24 2018 +0000
description:
Use libtool for the build. Fixes linking on some Linuxes. No functional
change intended elsewhere.
diffstat:
mail/qmail-spp-spf/Makefile | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (35 lines):
diff -r 33e38ed5dcb2 -r ec61366dfc09 mail/qmail-spp-spf/Makefile
--- a/mail/qmail-spp-spf/Makefile Mon Dec 10 20:50:09 2018 +0000
+++ b/mail/qmail-spp-spf/Makefile Mon Dec 10 22:38:24 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2018/12/06 00:07:33 schmonz Exp $
+# $NetBSD: Makefile,v 1.2 2018/12/10 22:38:24 schmonz Exp $
DISTNAME= qmail-spp-spf-20091020.c
PKGNAME= ${DISTNAME:S/.c$//}
@@ -13,18 +13,20 @@
WRKSRC= ${WRKDIR}
-LDFLAGS.SunOS+= -lnsl
+USE_LIBTOOL= yes
INSTALLATION_DIRS= bin share/doc/${PKGBASE}
do-build:
cd ${WRKSRC} && \
- ${CC} ${CFLAGS} ${LDFLAGS} -lspf2 -o ${PKGBASE} ${DISTNAME}
+ ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c ${DISTNAME} && \
+ ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -lspf2 -o ${PKGBASE} ${DISTNAME}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PKGBASE} \
- ${DESTDIR}${PREFIX}/bin/${PKGBASE}
- ${INSTALL_DATA} ${WRKSRC}/${DISTNAME} \
+ cd ${WRKSRC} && \
+ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${PKGBASE} \
+ ${DESTDIR}${PREFIX}/bin/${PKGBASE} && \
+ ${INSTALL_DATA} ${DISTNAME} \
${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/README
.include "../../mail/libspf2/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index