mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
3c175cb569
Reviewed by: marcus
36 lines
858 B
Makefile
36 lines
858 B
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: py-mhash
|
|
# Date created: Feb 10, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mhash
|
|
PORTVERSION= 1.0
|
|
CATEGORIES= security python
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= mhash
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= python-mhash-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Python mhash module
|
|
|
|
LIB_DEPENDS= mhash:${PORTSDIR}/security/mhash
|
|
|
|
PLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/mhash.so
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS=yes
|
|
USE_REINPLACE= yes
|
|
PYDISTUTILS_BUILDARGS= -L${LOCALBASE}/lib
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
pre-patch:
|
|
${REINPLACE_CMD} -e '227s,$$,\\,' ${WRKSRC}/mhash.c # put a missed terminating quote
|
|
|
|
do-build:
|
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build_ext ${PYDISTUTILS_BUILDARGS})
|
|
|
|
.include <bsd.port.mk>
|