aboutsummaryrefslogtreecommitdiffstats
path: root/www/dotproject-devel/Makefile
blob: d9e402ae719735effc3e9ab85150e4f24c430451 (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
# New ports collection makefile for:    dotproject-devel
# Date created:             Mon Apr 30 07:53:48 EDT 2007
# Whom:                 Paul Chvostek <paul@it.ca>
#
# $FreeBSD$
#

PORTNAME=   dotproject
PORTVERSION=    ${DOTPROJECTVER}.${DEVELVERSION:C/^([a-z]).*/\1/}${DEVELVERSION:C/^[a-z]*//}
CATEGORIES= www devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMESUFFIX=  -devel
DISTNAME=   ${PORTNAME}-${DOTPROJECTVER}-${DEVELVERSION}

MAINTAINER= paul+ports@it.ca
COMMENT=    Open Source Project Management tool

DOTPROJECTVER=  2.1
DEVELVERSION=   rc1

OPTIONS=    JPGRAPH "Build gantt charts with graphics/jpgraph" on

WRKSRC=     ${WRKDIR}/${PORTNAME}
DOTPROJECTDIR=  ${PREFIX}/www/${PORTNAME}
NO_BUILD=   yes
USE_PHP=    gd mysql session zlib
WANT_PHP_WEB=   yes
USE_APACHE= yes
USE_MYSQL=  yes

SUB_LIST+=  DOTPROJECTDIR=${DOTPROJECTDIR}
SUB_FILES=  pkg-message

.if defined(WITH_JPGRAPH)
RUN_DEPENDS+=   ${X11BASE}/lib/X11/fonts/webfonts/arial.ttf:${PORTSDIR}/x11-fonts/webfonts \
        ${PREFIX}/share/jpgraph/jpgraph.php:${PORTSDIR}/graphics/jpgraph2
.endif

post-patch:
    @${FIND} ${WRKSRC} -name CVS -o -name *.orig | ${XARGS} ${RM}

do-install:
    ${MKDIR} ${DOTPROJECTDIR}
    ${CP} -R ${WRKSRC}/* ${DOTPROJECTDIR}
    ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DOTPROJECTDIR}

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

.include <bsd.port.mk>