pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/libopensmtpd
Module Name: pkgsrc
Committed By: vins
Date: Sun Sep 3 10:07:33 UTC 2023
Modified Files:
pkgsrc/devel/libopensmtpd: Makefile
Log Message:
devel/libopensmtpd: simplify Makefile.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/libopensmtpd/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/libopensmtpd/Makefile
diff -u pkgsrc/devel/libopensmtpd/Makefile:1.1 pkgsrc/devel/libopensmtpd/Makefile:1.2
--- pkgsrc/devel/libopensmtpd/Makefile:1.1 Sat Sep 2 21:32:11 2023
+++ pkgsrc/devel/libopensmtpd/Makefile Sun Sep 3 10:07:33 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2023/09/02 21:32:11 vins Exp $
+# $NetBSD: Makefile,v 1.2 2023/09/03 10:07:33 vins Exp $
DISTNAME= libopensmtpd-0.7
CATEGORIES= devel mail
@@ -11,6 +11,8 @@ LICENSE= isc
USE_TOOLS+= gmake
+CFLAGS.NetBSD+= -D_OPENBSD_SOURCE # strtonum()
+
MAKE_FILE= Makefile.gnu
MAKE_ENV+= LOCALBASE=${PREFIX:Q}
MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR}/man3
@@ -18,22 +20,19 @@ MAKE_ENV+= MANFORMAT=man
.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} != "OpenBSD" || ${OPSYS} != "SunOS"
+.if ${OPSYS} != "OpenBSD"
+. if ${OPSYS} == "SunOS" && ${OPSYS_VERSION} >= 051100
+MAKE_ENV+= NEED_RECALLOCARRAY=0
+. else
MAKE_ENV+= NEED_RECALLOCARRAY=1
+. endif
.endif
-.if ${OPSYS} == "NetBSD"
-CFLAGS+= -D_OPENBSD_SOURCE
-MAKE_ENV+= NEED_EXPLICIT_BZERO=1
-
-.elif ${OPSYS} == "Linux"
-MAKE_ENV+= NEED_STRLCAT=1
-MAKE_ENV+= NEED_STRLCPY=1
-MAKE_ENV+= NEED_STRTONUM=1
-
-.elif ${OPSYS} == "Darwin"
-MAKE_ENV+= NEED_STRTONUM=1
-.endif
+MAKE_ENV.NetBSD+= NEED_EXPLICIT_BZERO=1
+MAKE_ENV.Darwin+= NEED_STRTONUM=1
+MAKE_ENV.Linux+= NEED_STRLCAT=1
+MAKE_ENV.Linux+= NEED_STRLCPY=1
+MAKE_ENV.Linux+= NEED_STRTONUM=1
INSTALL_ENV= INSTALL=${INSTALL:Q} LINK=${LN:Q}
INSTALLATION_DIRS+= include lib ${PKGMANDIR}/man3
Home |
Main Index |
Thread Index |
Old Index