aboutsummaryrefslogtreecommitdiffstats
path: root/www/serendipity/Makefile
blob: ddb038706734d6bced5db7af8b2bdf7bf6fef831 (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
# Created by: babak@farrokhi.net
# $FreeBSD$

PORTNAME=   serendipity
PORTVERSION=    2.1.1
CATEGORIES= www
MASTER_SITES=   SF/php-blog/${PORTNAME}/${PORTVERSION}

MAINTAINER= joneum@FreeBSD.org
COMMENT=    PHP based weblog software

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/docs/LICENSE

IGNORE_WITH_PHP=    70 71 72

WRKSRC=     ${WRKDIR}/${PORTNAME}
NO_BUILD=   YES
SERENDIPITY?=   www/${PORTNAME}
PLIST_SUB+= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
USE_PHP=    session pcre gd openssl mbstring iconv zlib xml
SUB_FILES=  pkg-message
USES=       cpe php tar:bzip2
CPE_VENDOR= s9y

OPTIONS_DEFINE= MYSQL PGSQL SQLITE MAGICK
OPTIONS_DEFAULT=    MYSQL MAGICK

MYSQL_USE=  PHP=mysql
PGSQL_USE=  PHP=pgsql
SQLITE_USE= PHP=sqlite3
MAGICK_RUN_DEPENDS+=    convert:graphics/ImageMagick

do-install:
    @-${MKDIR} ${STAGEDIR}${PREFIX}/${SERENDIPITY}
    @${CHMOD} 755 ${STAGEDIR}${PREFIX}/${SERENDIPITY}
    @(cd ${WRKSRC} && ${CP} -R * ${STAGEDIR}${PREFIX}/${SERENDIPITY}/ )

.include <bsd.port.mk>