aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-23 16:55:27 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-23 17:54:15 +0000
commitc2e2d166b9bdbdd8f5cec993e31c38681dd7d976 (patch)
tree617c9c8190ed2e8dc01934fdfd958099a6506567
parent3683cc762bdb69b41055dddac82c3909db753376 (diff)
downloadports-c2e2d166b9bdbdd8f5cec993e31c38681dd7d976.tar.gz
ports-c2e2d166b9bdbdd8f5cec993e31c38681dd7d976.zip
comms/aprsd: Fix build with llvm16
- Utilize OPTIONSNG - Pet portclippy Sponsored by: The FreeBSD Foundation
-rw-r--r--comms/aprsd/Makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/comms/aprsd/Makefile b/comms/aprsd/Makefile
index 04f55947edbc..61a67f4fb3f3 100644
--- a/comms/aprsd/Makefile
+++ b/comms/aprsd/Makefile
@@ -13,22 +13,22 @@ LICENSE= GPLv2
BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: httpserver.o:(.text+0x1074): undefined reference to `convertUpTime(int)'
+USE_CXXSTD= c++14
+USE_RC_SUBR= aprsd
+
GNU_CONFIGURE= yes
+
SUB_FILES= pkg-message
-USE_RC_SUBR= aprsd
+SUB_LIST= APRSD_RC_USER=${APRSD_RC_USER} \
+ APRSD_RC_GROUP=${APRSD_RC_GROUP}
USERS= aprsd tnc
GROUPS= aprsd dialer tnc
APRSD_RC_USER= aprsd
APRSD_RC_GROUP= aprsd
-SUB_LIST= APRSD_RC_USER=${APRSD_RC_USER} \
- APRSD_RC_GROUP=${APRSD_RC_GROUP}
-
OPTIONS_DEFINE= DOCS EXAMPLES
-.include <bsd.port.pre.mk>
-
post-patch:
${REINPLACE_CMD} -e 's|%%CONFPATH%%|${PREFIX}/etc/aprsd/|' \
-e 's|%%LOGPATH%%|/var/log/aprsd/|' \
@@ -45,11 +45,15 @@ post-install:
.for f in INIT.TNC RESTORE.TNC aprsd.conf welcome.txt user.deny
${INSTALL_DATA} ${WRKSRC}/admin/$f ${STAGEDIR}${PREFIX}/etc/aprsd/$f.samp
.endfor
+
+post-install-DOCS-on:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${CP} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in chkaprsd udp_example
${INSTALL_DATA} ${WRKSRC}/admin/$f ${STAGEDIR}${EXAMPLESDIR}
.endfor
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${CP} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>