freebsd-ports/security/libpwquality/Makefile
Adam Weinberger bbc8c4d740 Convert a bunch of USE_BZIP2 to USES=tar:bzip2
Approved by:	portmgr (not really, but touches unstaged ports)
2014-07-29 18:41:15 +00:00

46 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= libpwquality
PORTVERSION= 1.2.3
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= https://fedorahosted.org/releases/l/i/libpwquality/
MAINTAINER= gnome@freebsd.org
COMMENT= Library for generating random passwords and quality checking
LIB_DEPENDS= libcrack.so:${PORTSDIR}/security/cracklib
USES= gettext gmake libtool:keepla pathfix tar:bzip2
USE_GNOME= intltool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS+=--disable-pam
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lintl
OPTIONS_DEFINE= PYTHON
OPTIONS_DEFAULT=PYTHON
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON= yes
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
CONFIGURE_ARGS+=--enable-python-bindings
PLIST_SUB+= PYTHON=""
.else
CONFIGURE_ARGS+=--disable-python-bindings
PLIST_SUB+= PYTHON="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|python setup.py build|${PYTHON_VERSION} setup.py build|g' \
${WRKSRC}/python/Makefile.in
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpwquality.so.1
@${CHMOD} 755 ${STAGEDIR}${PYTHON_SITELIBDIR}/pwquality.so
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pwquality.so
.include <bsd.port.mk>