summaryrefslogtreecommitdiff
path: root/finance/weberp/Makefile
blob: 6aa4ada00ba9fddee8cb1da3e7976fd288b2bfd9 (plain)
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
# Created by: Wen heping <wenheping@gmail.com>
# $FreeBSD$

PORTNAME=	weberp
PORTVERSION=	4.13
CATEGORIES=	finance www
MASTER_SITES=	SF/web-erp/
DISTNAME=	webERP_${PORTVERSION}

MAINTAINER=	wen@FreeBSD.org
COMMENT=	Open-Source Web-Based ERP System

LICENSE=	GPLv2

BROKEN_powerpc64=	Does not build

PORTSCOUT=	skipv:3.12

USES=		gettext shebangfix zip
SHEBANG_FILES=	report_runner.php
USE_PHP=	mysqli gettext
WRKSRC=		${WRKDIR}/webERP

NO_BUILD=	yes
SUB_FILES=	pkg-message
PLIST=		${WRKDIR}/plist
ERPDIR=		www/weberp

pre-install:
	@${ECHO_CMD} -e '@owner ${WWWOWN}\n@group ${WWWGRP}' > ${PLIST}
	@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${ERPDIR}?g" >> ${PLIST}
	@${FIND} -s -d ${WRKSRC} -type d  | ${SED} "s?${WRKSRC}?@dir ${ERPDIR}?g" >> ${PLIST}
	@${ECHO_CMD} -e '@owner root\n@group wheel' >> ${PLIST}

do-install:
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
	@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}

.include <bsd.port.mk>