aboutsummaryrefslogtreecommitdiffstats
path: root/finance/frontaccounting/Makefile
blob: 0ead74eec41670177ef69dcd046c71642c7f13b3 (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
57
58
59
60
# Created by: Janky Jay <ek@purplehat.org>
# $FreeBSD$

PORTNAME=   frontaccounting
DISTVERSION=    2.3.15
CATEGORIES= finance www
MASTER_SITES=   SF
MASTER_SITE_SUBDIR= ${PORTNAME}/FrontAccounting-2.3/${PORTVERSION}

MAINTAINER= ek@purplehat.org
COMMENT=    Simple, powerful system for the entire ERP chain

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/doc/license.txt

USES=       gettext
USE_MYSQL=  yes
USE_PHP+=   mysql mysqli openssl session

WRKSRC=     ${WRKDIR}/${PORTNAME}

NO_BUILD=   yes

SUB_FILES=  pkg-install pkg-deinstall pkg-message

SHAREOWN=   ${WWWOWN}
SHAREGRP=   ${WWWGRP}

OPTIONS_DEFINE= APACHE LIGHTTPD MYSQL
OPTIONS_DEFAULT=    APACHE MYSQL

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE_RUN= 22+
.endif

.if ${PORT_OPTIONS:MLIGHTTPD}
RUN_DEPENDS+=   lighttpd:${PORTSDIR}/www/lighttpd
.endif

.if ${PORT_OPTIONS:MMYSQL}
RUN_DEPENDS+=   mysqld_safe:${PORTSDIR}/databases/mysql55-server
.endif

.if ${PORT_OPTIONS:MDOCS}
PORTDOCSARGS=
.else
PORTDOCSARGS=   '-not -path "./doc*"'
.endif

do-install:
    @${MKDIR} ${WWWDIR}
    @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR} ${PORTDOCSARGS}

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>