pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/chat/atheme atheme: Avoid requiring git to generate a ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c6a6b084b1cf
branches:  trunk
changeset: 419122:c6a6b084b1cf
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Dec 12 20:28:55 2019 +0000

description:
atheme: Avoid requiring git to generate a header file.

diffstat:

 chat/atheme/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 17c86c76e1c1 -r c6a6b084b1cf chat/atheme/Makefile
--- a/chat/atheme/Makefile      Thu Dec 12 20:19:08 2019 +0000
+++ b/chat/atheme/Makefile      Thu Dec 12 20:28:55 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2019/12/10 13:21:36 nia Exp $
+# $NetBSD: Makefile,v 1.19 2019/12/12 20:28:55 nia Exp $
 
 DISTNAME=      atheme-v7.2.10-r2
 PKGNAME=       ${DISTNAME:S/-v/-/1:S/-r/.r/1}
@@ -86,6 +86,10 @@
 
 PKGCONFIG_OVERRIDE+=   atheme-services.pc.in
 
+# It tries to use git to generate this.
+pre-build:
+       ${ECHO} '#define SERNO "${PKGVERSION_NOREV}-pkgsrc"' > ${WRKSRC}/include/serno.h
+
 post-install:
        ${MV} ${DESTDIR}${PREFIX}/bin/dbverify \
            ${DESTDIR}${PREFIX}/bin/atheme-dbverify



Home | Main Index | Thread Index | Old Index