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/754eed415666
branches:  trunk
changeset: 388620:754eed415666
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 c0de078e9cab -r 754eed415666 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