3 .include "${.CURDIR}/../Makefile.inc"
9 SRCS= add-cmd.c blame-cmd.c cat-cmd.c changelist-cmd.c checkout-cmd.c \
10 cl-conflicts.c cleanup-cmd.c commit-cmd.c conflict-callbacks.c \
11 copy-cmd.c delete-cmd.c deprecated.c diff-cmd.c export-cmd.c \
12 file-merge.c help-cmd.c import-cmd.c info-cmd.c list-cmd.c \
13 lock-cmd.c log-cmd.c merge-cmd.c mergeinfo-cmd.c mkdir-cmd.c \
14 move-cmd.c notify.c patch-cmd.c propdel-cmd.c propedit-cmd.c \
15 propget-cmd.c proplist-cmd.c props.c propset-cmd.c relocate-cmd.c \
16 resolve-cmd.c resolved-cmd.c revert-cmd.c status-cmd.c status.c \
17 svn.c switch-cmd.c unlock-cmd.c update-cmd.c upgrade-cmd.c util.c
19 CFLAGS+=-I${SVNDIR}/include -I${SVNDIR} -I${.CURDIR}/.. \
20 -I${.CURDIR}/../lib/libapr \
21 -I${APR}/include/arch/unix \
23 -I${.CURDIR}/../lib/libapr_util \
24 -I${APRU}/include/private \
27 LDADD= -L${LIBSVN_CLIENTDIR} -lsvn_client \
28 -L${LIBSVN_WCDIR} -lsvn_wc \
29 -L${LIBSVN_RADIR} -lsvn_ra \
30 -L${LIBSVN_RA_LOCALDIR} -lsvn_ra_local \
31 -L${LIBSVN_RA_SVNDIR} -lsvn_ra_svn \
32 -L${LIBSVN_RA_SERFDIR} -lsvn_ra_serf \
33 -L${LIBSVN_REPOSDIR} -lsvn_repos \
34 -L${LIBSVN_FSDIR} -lsvn_fs \
35 -L${LIBSVN_FS_FSDIR} -lsvn_fs_fs \
36 -L${LIBSVN_FS_UTILDIR} -lsvn_fs_util \
37 -L${LIBSVN_DELTADIR} -lsvn_delta \
38 -L${LIBSVN_DIFFDIR} -lsvn_diff \
39 -L${LIBSVN_SUBRDIR} -lsvn_subr \
40 -L${LIBSERFDIR} -lserf \
41 -L${LIBAPR_UTILDIR} -lapr-util \
43 LIBADD+= bsdxml sqlite3 z magic crypto ssl pthread
45 DPADD= ${LIBSVN_CLIENT} ${LIBSVN_WC} ${LIBSVN_RA} ${LIBSVN_RA_LOCAL} \
46 ${LIBSVN_RA_SVN} ${LIBSVN_RA_SERF} ${LIBSVN_REPOS} \
47 ${LIBSVN_FS} ${LIBSVN_FS_FS} ${LIBSVN_FS_UTIL} ${LIBSVN_DELTA} \
48 ${LIBSVN_DIFF} ${LIBSVN_SUBR} ${LIBSERF} ${LIBAPR_UTIL} \
51 CLEANFILES+= svnlite.1
52 .if(defined(ORGANIZATION) && !empty(ORGANIZATION))
53 DPSRCS+= freebsd-organization.h
54 CLEANFILES+= freebsd-organization.h
55 CFLAGS+= -I. -DHAS_ORGANIZATION_NAME
56 freebsd-organization.h:
57 @echo '#define ORGANIZATION_NAME ${ORGANIZATION}' \
58 > freebsd-organization.h
63 sed -E 's,(^| |B|`)svn,\1svnlite,g' ${SVNDIR}/svn/svn.1 > ${.OBJDIR}/svnlite.1
65 .include <bsd.prog.mk>