aboutsummaryrefslogtreecommitdiff
path: root/finance/openerp/Makefile
blob: cb6d1de9a94b3d5fbff8757c17d0efdb538b423c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# New ports collection makefile for:	openerp-server
# Date created:		27 February 2009
# Whom:			Wen Heping<wenheping@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	openerp-server
PORTVERSION=	5.0.1
PORTREVISION=	1
CATEGORIES=	finance python
MASTER_SITES=	http://openerp.com/download/stable/source/
DISTNAME=	${PORTNAME}-${PORTVERSION}-0

MAINTAINER=	wenheping@gmail.com
COMMENT=	Open source application ERP & CRM in Python using Postgresql

BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
		${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
		${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \
		${PYTHON_SITELIBDIR}/mx/__init__.py:${PORTSDIR}/lang/py-mx-base \
		${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 \
		${PYTHON_PKGNAMEPREFIX}chart>0:${PORTSDIR}/graphics/py-chart \
		${PYTHON_PKGNAMEPREFIX}pydot>0:${PORTSDIR}/graphics/py-pydot \
		${PYTHON_PKGNAMEPREFIX}libxslt>0:${PORTSDIR}/textproc/py-libxslt \
		${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \
		${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab
RUN_DEPENDS=	${BUILD_DEPENDS}

USE_PYTHON=			2.4+
USE_PYDISTUTILS=		yes
PYDISTUTILS_EGGINFO=		openerp_server-5.0.1_0-${PYTHON_VERSION:S/thon//}.egg-info

MAN1=		openerp-server.1
MAN5=		openerp_serverrc.5

.include <bsd.port.pre.mk>

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
	@${FIND} -s -d ${DOCSDIR} -type f | ${SED} 's#${PREFIX}/##g' >> ${TMPPLIST}
	@${FIND} -s -d ${DOCSDIR} -type d | ${SED} 's#${PREFIX}/#@dirrm #g' >> ${TMPPLIST}
.endif

	${INSTALL_MAN} ${WRKSRC}/man/openerp-server.1 ${PREFIX}/man/man1
	${INSTALL_MAN} ${WRKSRC}/man/openerp_serverrc.5 ${PREFIX}/man/man5

	@${ECHO} bin/openerp-server >> ${TMPPLIST}
	@${FIND} -s -d ${PYTHON_SITELIBDIR}/${PORTNAME} \
		-type f | ${SED} 's#${PREFIX}/##g' >> ${TMPPLIST}
	@${FIND} -s -d ${PYTHON_SITELIBDIR}/${PORTNAME} \
		-type d | ${SED} 's#${PREFIX}/#@dirrm #g' >> ${TMPPLIST}

.include <bsd.port.post.mk>