freebsd-ports/www/serendipity/Makefile
Edwin Groothuis 7fc1b6d2bb Add dependency on archivers/pear-File_Archive as suggested.
Serendipity has a plugin that conveniently backups the
	entire site.

	This plugin requires the pear-File_Archive port in
	ports/archivers.

	Being that this is not part of the ported package but an
	add on you may not want to place the pear-File_Archive on
	the dependency list.

Submitted by:	"Gerard J. Cerchio" <gjpc@OB1Net.net>
2006-01-17 00:23:06 +00:00

76 lines
1.6 KiB
Makefile

# New ports collection makefile for: serendipity
# Date created: 2005-DEC-13
# Whom: babak@farrokhi.net
#
# $FreeBSD$
#
PORTNAME= serendipity
PORTVERSION= 0.9.1
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= php-blog
MAINTAINER= babak@farrokhi.net
COMMENT= PHP based weblog software
RUN_DEPENDS= ${LOCALBASE}/share/pear/File/Archive.php:${PORTSDIR}/archivers/pear-File_Archive
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= YES
SERENDIPITY?= www/${PORTNAME}
PLIST_SUB+= SERENDIPITY=${SERENDIPITY}
USE_PHP= session pcre gd openssl mbstring iconv zlib xml
SUB_LIST+= SERENDIPITY=${SERENDIPITY}
SUB_FILES= pkg-message
LOCALBASE?= /usr/local
OPTIONS= MYSQL "Use MySQL backend" on \
PGSQL "Use PostgreSQL backend" off
.if exists(${LOCALBASE}/etc/php.conf)
.include "${LOCALBASE}/etc/php.conf"
.endif
.if defined(PHP_VER) && ${PHP_VER} == 5
OPTIONS+= SQLITE "Use SQLite backend" off
.endif
OPTIONS+= MAGICK "Use ImageMagick Library" on
PORT_DBDIR?= /var/db/ports
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
OPTIONSFILE?= ${PORT_DBDIR}/${LATEST_LINK}/options
.if exists(${OPTIONSFILE})
.include "${OPTIONSFILE}"
.endif
.if !defined(WITHOUT_MYSQL)
USE_PHP+= mysql
. endif
.if defined(WITH_PGSQL)
USE_PHP+= pgsql
.endif
.if defined(WITH_SQLITE)
USE_PHP+= sqlite
.endif
.if !defined(WITHOUT_MAGICK)
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
.endif
do-install:
@-${MKDIR} ${PREFIX}/${SERENDIPITY}
@${CHMOD} 755 ${PREFIX}/${SERENDIPITY}
@(cd ${WRKSRC} && ${CP} -R * ${PREFIX}/${SERENDIPITY}/ )
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${SERENDIPITY}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>