summaryrefslogtreecommitdiff
path: root/finance/openerp/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-02-28 20:01:17 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-02-28 20:01:17 +0000
commitf9bbdd66e488da82eb2ab72423db7973f66b39cb (patch)
tree63788aba4a027430ee6fb55eb0c05760003cbaa0 /finance/openerp/Makefile
parent- Unbreak after strndup MFC (diff)
OpenERP is a complete ERP and CRM. The main features are accounting
(analytic and financial), stock management, sales and purchases management, tasks automation, marketing campaigns, help desk, POS, etc. Technical features include a distributed server, flexible workflows, an object database, a dynamic GUI, customizable reports, and XML-RPC interfaces. WWW: http://www.openerp.com/ PR: ports/132159 Submitted by: Wen Heping<wenheping at gmail.com>
Notes
Notes: svn path=/head/; revision=229244
Diffstat (limited to 'finance/openerp/Makefile')
-rw-r--r--finance/openerp/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/finance/openerp/Makefile b/finance/openerp/Makefile
new file mode 100644
index 000000000000..c713048f099d
--- /dev/null
+++ b/finance/openerp/Makefile
@@ -0,0 +1,55 @@
+# 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.0
+CATEGORIES= finance python
+MASTER_SITES= http://openerp.com/download/stable/source/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-1
+
+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.0_1-${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#/usr/local/##g' >> ${TMPPLIST}
+ @${FIND} -s -d ${DOCSDIR} -type d | ${SED} 's#/usr/local/#@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#/usr/local/##g' >> ${TMPPLIST}
+ @${FIND} -s -d ${PYTHON_SITELIBDIR}/${PORTNAME} \
+ -type d | ${SED} 's#/usr/local/#@dirrm #g' >> ${TMPPLIST}
+
+.include <bsd.port.post.mk>