1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/net/samba-libsmbclient/Makefile.inc
Tom McLaughlin 533072970d Update to 3.0.21b
- includes fix for ports/92619

PR:		93553
Submitted by:	maintainer
2006-02-19 20:14:52 +00:00

56 lines
1.5 KiB
Makefile

# Don't check for python presence
CONFIGURE_ARGS+= --without-python
# We WANT shared libs
CONFIGURE_ARGS+= --with-libsmbclient
SAMBA_INSTALL_LIBS= libsmbclient
.if defined(WITH_MSRPC)
CONFIGURE_ARGS+= --with-libmsrpc
SAMBA_INSTALL_LIBS+= libmsrpc
PLIST_SUB+= MSRPC=""
.else
PLIST_SUB+= MSRPC="@comment "
.endif
.if defined(WITH_SHAREMODES)
CONFIGURE_ARGS+= --with-libsmbsharemodes
SAMBA_INSTALL_LIBS+= libsmbsharemodes
PLIST_SUB+= SHAREMODES=""
.else
PLIST_SUB+= SHAREMODES="@comment "
.endif
MAN7= libsmbclient.7
do-build:
cd ${WRKSRC} && ${MAKE} proto
cd ${WRKSRC} && ${MAKE} libsmbclient
.if defined(WITH_MSRPC)
cd ${WRKSRC} && ${MAKE} cac
.endif
.if defined(WITH_SHAREMODES)
cd ${WRKSRC} && ${MAKE} libsmbsharemodes
.endif
do-install:
-@${MKDIR} ${MAN8PREFIX}/man/man7
.for man in ${MAN7}
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/manpages/${man} ${MAN7PREFIX}/man/man7
.endfor
-@${MKDIR} ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/include/libsmbclient.h ${PREFIX}/include
.if defined(WITH_MSRPC)
${INSTALL_DATA} ${WRKSRC}/include/libmsrpc.h ${PREFIX}/include
.endif
-@${MKDIR} ${PREFIX}/lib
.for lib in ${SAMBA_INSTALL_LIBS}
${INSTALL_SCRIPT} ${WRKSRC}/bin/${lib}.a ${PREFIX}/lib
${INSTALL_SCRIPT} ${WRKSRC}/bin/${lib}.so ${PREFIX}/lib/${lib}.so.0
${LN} -snf ${lib}.so.0 ${PREFIX}/lib/${lib}.so
.endfor
-@${MKDIR} ${EXAMPLESDIR}
@${CP} -Rp ${WRKDIR}/${DISTNAME}/examples/libsmbclient ${EXAMPLESDIR}
.if defined(WITH_MSRPC)
@${CP} -Rp ${WRKDIR}/${DISTNAME}/examples/libmsrpc ${EXAMPLESDIR}
.endif