aboutsummaryrefslogtreecommitdiff
path: root/www/serendipity-devel
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2006-01-06 16:40:14 +0000
committerAaron Dalton <aaron@FreeBSD.org>2006-01-06 16:40:14 +0000
commitcb29ed52a724fa08e1d6adc8003c5debe41332b2 (patch)
tree371a69dce7862251c592f7703c1c6363eed7ee4c /www/serendipity-devel
parentc5e075126dfc3af8cd9e0c1d99ba3e61e2f93c0b (diff)
downloadports-cb29ed52a724fa08e1d6adc8003c5debe41332b2.tar.gz
ports-cb29ed52a724fa08e1d6adc8003c5debe41332b2.zip
Notes
Diffstat (limited to 'www/serendipity-devel')
-rw-r--r--www/serendipity-devel/Makefile21
1 files changed, 16 insertions, 5 deletions
diff --git a/www/serendipity-devel/Makefile b/www/serendipity-devel/Makefile
index 06dd2df55cec..3357e12b245c 100644
--- a/www/serendipity-devel/Makefile
+++ b/www/serendipity-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= serendipity
PORTVERSION= 0.9.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= php-blog
@@ -23,10 +23,20 @@ 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 \
- SQLITE "Use SQLite backend (PHP5)" off \
- MAGICK "Use ImageMagick Library" 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}
@@ -54,8 +64,9 @@ RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
do-install:
@-${MKDIR} ${PREFIX}/${SERENDIPITY}
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${SERENDIPITY}
+ @${CHMOD} 755 ${PREFIX}/${SERENDIPITY}
@(cd ${WRKSRC} && ${CP} -R * ${PREFIX}/${SERENDIPITY}/ )
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${SERENDIPITY}
post-install:
@${CAT} ${PKGMESSAGE}