2005-12-14 17:09:40 +00:00
|
|
|
# New ports collection makefile for: serendipity
|
|
|
|
# Date created: 2005-DEC-13
|
|
|
|
# Whom: babak@farrokhi.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2006-06-01 17:46:01 +00:00
|
|
|
PORTNAME= serendipity-devel
|
|
|
|
PORTVERSION= 1.0.${SNAPSHOT}
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 1
|
2005-12-14 17:09:40 +00:00
|
|
|
CATEGORIES= www
|
2006-06-23 20:56:17 +00:00
|
|
|
MASTER_SITES= http://www.s9y.org/snapshots/
|
2006-06-01 17:46:01 +00:00
|
|
|
DISTNAME= s9y_${SNAPSHOT}
|
2005-12-14 17:09:40 +00:00
|
|
|
|
2006-11-08 09:28:33 +00:00
|
|
|
MAINTAINER= farrokhi@FreeBSD.org
|
2005-12-14 17:09:40 +00:00
|
|
|
COMMENT= PHP based weblog software
|
|
|
|
|
2006-01-17 00:23:06 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/pear/File/Archive.php:${PORTSDIR}/archivers/pear-File_Archive
|
|
|
|
|
2007-03-03 16:27:45 +00:00
|
|
|
SNAPSHOT= 200703022342
|
2006-06-01 17:46:01 +00:00
|
|
|
WRKSRC= ${WRKDIR}/serendipity-nightly
|
2005-12-14 17:09:40 +00:00
|
|
|
NO_BUILD= YES
|
2006-06-23 20:56:17 +00:00
|
|
|
SERENDIPITY?= www/serendipity
|
2005-12-14 17:09:40 +00:00
|
|
|
PLIST_SUB+= SERENDIPITY=${SERENDIPITY}
|
2006-01-06 06:23:49 +00:00
|
|
|
USE_PHP= session pcre gd openssl mbstring iconv zlib xml
|
2005-12-14 17:09:40 +00:00
|
|
|
SUB_LIST+= SERENDIPITY=${SERENDIPITY}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2006-06-23 20:56:17 +00:00
|
|
|
CONFLICTS= serendipity-1.*
|
2006-01-06 16:40:14 +00:00
|
|
|
|
2005-12-14 17:09:40 +00:00
|
|
|
OPTIONS= MYSQL "Use MySQL backend" on \
|
2007-03-06 06:54:19 +00:00
|
|
|
PGSQL "Use PostgreSQL backend" off \
|
|
|
|
SQLITE "Use SQLite backend (php5 only)" off \
|
|
|
|
MAGICK "Use ImageMagick Library" on
|
2005-12-14 17:09:40 +00:00
|
|
|
|
2007-03-06 06:54:19 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2005-12-14 17:09:40 +00:00
|
|
|
|
|
|
|
.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:
|
2006-08-07 17:09:32 +00:00
|
|
|
@-${MKDIR} ${TARGETDIR}/${SERENDIPITY}
|
|
|
|
@${CHMOD} 755 ${TARGETDIR}/${SERENDIPITY}
|
|
|
|
@(cd ${WRKSRC} && ${CP} -R * ${TARGETDIR}/${SERENDIPITY}/ )
|
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${TARGETDIR}/${SERENDIPITY}
|
2005-12-14 17:09:40 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2007-03-06 06:54:19 +00:00
|
|
|
.include <bsd.port.post.mk>
|