e85ea1173a
Build with 16 threads fails: ./makeshlib libcvm-sasl.la sasl_auth.lo sasl_authenticate.lo sasl_cram_md5.lo sasl_init.lo sasl_login.lo sasl_plain.lo sasl_start.lo --- sql-query.lo --- mv: rename sql-query.loT to sql-query.lo: No such file or directory
60 lines
1.5 KiB
Makefile
60 lines
1.5 KiB
Makefile
# Created by: Sergei Kolobov <sergei@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cvm
|
|
PORTVERSION= 0.97
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://untroubled.org/${PORTNAME}/ \
|
|
http://untroubled.org/${PORTNAME}/archive/
|
|
|
|
MAINTAINER= araujo@FreeBSD.org
|
|
COMMENT= Credential Validation Modules
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libbg.so:devel/bglibs
|
|
|
|
CONFLICTS= bglibs-1.00*
|
|
|
|
USES= libtool:build localbase:ldflags
|
|
BGLIBS_INC= ${LOCALBASE}/include/bglibs
|
|
BGLIBS_LIB= ${LOCALBASE}/lib/bglibs
|
|
USE_LDCONFIG= yes
|
|
|
|
DOCS= NEWS README TODO *.html
|
|
|
|
ALL_TARGET= all
|
|
|
|
OPTIONS_DEFINE= DOCS VCHKPW
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
VCHKPW_DESC= Compile cvm-vchkpw
|
|
|
|
VCHKPW_ALL_TARGET= cvm-vchkpw
|
|
|
|
VCHKPW_BUILD_DEPENDS= ${LOCALBASE}/vpopmail/lib/libvpopmail.a:mail/vpopmail
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
do-configure:
|
|
${ECHO_CMD} "${PREFIX}" > ${WRKSRC}/conf-home
|
|
${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin" > ${WRKSRC}/conf-bin
|
|
${ECHO_CMD} "${STAGEDIR}${PREFIX}/include" > ${WRKSRC}/conf-include
|
|
${ECHO_CMD} "${STAGEDIR}${PREFIX}/lib" > ${WRKSRC}/conf-lib
|
|
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
|
|
${ECHO_CMD} "${CC} ${STRIP} ${LDFLAGS}" > ${WRKSRC}/conf-ld
|
|
${ECHO_CMD} "${BGLIBS_INC}" > ${WRKSRC}/conf-bgincs
|
|
${ECHO_CMD} "${BGLIBS_LIB}" > ${WRKSRC}/conf-bglibs
|
|
|
|
post-install:
|
|
.for l in command local module qmail sasl sql udp v1client v2client
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}-${l}.so*
|
|
.endfor
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|