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
This commit is contained in:
Glen Barber 2013-11-13 05:25:49 +00:00
parent 0f3728be20
commit e73f2041a5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258084

View File

@ -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>