freebsd-ports/devel/py-simplejson/Makefile
Nicola Vitale 63abc32bbf - Fix build on pointyhat
(use --plat-name option for bdist_egg, the egg filename for easy_install)

PR:		ports/111182
Submitted by:	nivit
2007-04-03 12:34:32 +00:00

49 lines
1.4 KiB
Makefile

# New ports collection makefile for: py-simplejson
# Date created: 25 Apr 2006
# Whom: Alexander Botero-Lowry <alex@foxybanana.com>
#
# $FreeBSD$
#
PORTNAME= simplejson
PORTVERSION= 1.7.1
CATEGORIES= devel python
MASTER_SITES= http://cheeseshop.python.org/packages/source/s/simplejson/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= Simplejson is a simple, fast, extensible JSON encoder/decoder
BUILD_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools
RUN_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYSIMPLEJSON_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}-${OSINFOS}.egg
OSINFOS= ${OPSYS:L}-${OSRELEASE}-${ARCH}
PLIST_SUB+= PYSIMPLEJSON_EGG=${PYSIMPLEJSON_EGG}
.if !defined(NOPORTDOCS)
DOCSDIR= ${TARGETDIR}/share/doc/py-${PORTNAME}
PORTDOCS= *
.endif
pre-build:
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-platlib -s lib.${OSINFOS}
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-temp -s temp.${OSINFOS}-${PYTHON_VER}
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist_egg -o plat-name -s ${OSINFOS}
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist -o plat-name -s ${OSINFOS}
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/docs/ ${DOCSDIR}
.endif
.include <bsd.port.pre.mk>
OSRELEASE!= uname -r
.include <bsd.port.post.mk>