diff options
Diffstat (limited to 'net/samba-libsmbclient/Makefile.inc')
-rw-r--r-- | net/samba-libsmbclient/Makefile.inc | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/net/samba-libsmbclient/Makefile.inc b/net/samba-libsmbclient/Makefile.inc index 590017dac48a..d05bd1759de9 100644 --- a/net/samba-libsmbclient/Makefile.inc +++ b/net/samba-libsmbclient/Makefile.inc @@ -1,10 +1,8 @@ -# Don't check for python presence -CONFIGURE_ARGS+= --without-python # We WANT shared libs CONFIGURE_ARGS+= --with-libsmbclient SAMBA_INSTALL_LIBS= libsmbclient -.if !defined(WITHOUT_ADDNS) +.if defined(WITH_ADDNS) CONFIGURE_ARGS+= --with-libaddns SAMBA_INSTALL_LIBS+= libaddns PLIST_SUB+= ADDNS="" @@ -13,7 +11,7 @@ CONFIGURE_ARGS+= --without-libaddns PLIST_SUB+= ADDNS="@comment " .endif -.if !defined(WITHOUT_SHAREMODES) +.if defined(WITH_SHAREMODES) CONFIGURE_ARGS+= --with-libsmbsharemodes SAMBA_INSTALL_LIBS+= libsmbsharemodes PLIST_SUB+= SHAREMODES="" @@ -22,26 +20,27 @@ CONFIGURE_ARGS+= --without-libsmbsharemodes PLIST_SUB+= SHAREMODES="@comment " .endif +.if defined(WITH_NETAPI) +CONFIGURE_ARGS+= --with-libnetapi +SAMBA_INSTALL_LIBS+= libnetapi +PLIST_SUB+= NETAPI="" +.else +CONFIGURE_ARGS+= --without-libnetapi +PLIST_SUB+= NETAPI="@comment " +.endif + MAN7= libsmbclient.7 -do-build: - cd ${WRKSRC} && ${MAKE} proto bin/.dummy - cd ${WRKSRC} && ${MAKE} libsmbclient -.if !defined(WITHOUT_ADDNS) - cd ${WRKSRC} && ${MAKE} libaddns -.endif -.if !defined(WITHOUT_SHAREMODES) - cd ${WRKSRC} && ${MAKE} libsmbsharemodes -.endif +ALL_TARGET= libtdb ${SAMBA_INSTALL_LIBS} do-install: - -@${MKDIR} ${MAN8PREFIX}/man/man7 + -@${MKDIR} ${MAN7PREFIX}/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(WITHOUT_ADDNS) +.if defined(WITH_ADDNS) ${INSTALL_DATA} ${WRKSRC}/libaddns/addns.h ${PREFIX}/include .endif -@${MKDIR} ${PREFIX}/lib @@ -51,4 +50,4 @@ do-install: ${LN} -snf ${lib}.so.0 ${PREFIX}/lib/${lib}.so .endfor -@${MKDIR} ${EXAMPLESDIR} - @${CP} -Rp ${WRKDIR}/${DISTNAME}/examples/libsmbclient ${EXAMPLESDIR} + @${CP} -Rp ${WRKDIR}/${DISTNAME}/examples/libsmbclient/ ${EXAMPLESDIR} |