summaryrefslogtreecommitdiffstats
path: root/usr.bin/svn
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2013-11-13 05:25:49 +0000
committergjb <gjb@FreeBSD.org>2013-11-13 05:25:49 +0000
commit7a6ad5e1339681dda3ba55722307143b09685038 (patch)
tree77bd6426c7147e174e358b8ee62f33af1427a04f /usr.bin/svn
parent91f9fae5f7009a765376d0540e90585371623744 (diff)
downloadFreeBSD-src-7a6ad5e1339681dda3ba55722307143b09685038.zip
FreeBSD-src-7a6ad5e1339681dda3ba55722307143b09685038.tar.gz
Somewhat mimic how the devel/subversion port prepopulates
'Sponsored by:' in the FreeBSD commit template. Support for this has already existed ^/head/contrib/subversion but it was not enabled in usr.bin/svn/svn/Makefile. To use the pre-populated 'Sponsored by:' entry, set ORGANIZATION in make.conf(5), for example: ORGANIZATION= "The FreeBSD Foundation" Reviewed by: peter Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.bin/svn')
-rw-r--r--usr.bin/svn/svn/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.bin/svn/svn/Makefile b/usr.bin/svn/svn/Makefile
index 4638c17..61c62e6 100644
--- a/usr.bin/svn/svn/Makefile
+++ b/usr.bin/svn/svn/Makefile
@@ -53,4 +53,13 @@ DPADD= ${LIBSVN_CLIENT} ${LIBSVN_WC} ${LIBSVN_RA} ${LIBSVN_RA_LOCAL} \
${LIBBSDXML} ${LIBAPR} ${LIBSQLITE} ${LIBZ} ${LIBCRYPT} ${LIBMAGIC} \
${LIBCRYPTO} ${LIBSSL} ${LIBPTHREAD}
+.if(defined(ORGANIZATION) && !empty(ORGANIZATION))
+DPSRCS+= freebsd-organization.h
+CLEANFILES+= freebsd-organization.h
+CFLAGS+= -I. -DHAS_ORGANIZATION_NAME
+freebsd-organization.h:
+ @echo '#define ORGANIZATION_NAME ${ORGANIZATION}' \
+ > freebsd-organization.h
+.endif
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud