aboutsummaryrefslogtreecommitdiff
path: root/www/serendipity-devel
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2007-03-06 06:54:19 +0000
committerMark Linimon <linimon@FreeBSD.org>2007-03-06 06:54:19 +0000
commitbe4c6448a890a12891a93bbc158a66ec4e868e79 (patch)
tree8cbaf74b97ffda20f53930215deea45720b020a0 /www/serendipity-devel
parent153a5ec176dc0b1a86f0eddd7cfb0ee8009b6c1f (diff)
Notes
Diffstat (limited to 'www/serendipity-devel')
-rw-r--r--www/serendipity-devel/Makefile27
1 files changed, 5 insertions, 22 deletions
diff --git a/www/serendipity-devel/Makefile b/www/serendipity-devel/Makefile
index ba9f3ca883eb..84f7e89d2e7a 100644
--- a/www/serendipity-devel/Makefile
+++ b/www/serendipity-devel/Makefile
@@ -26,30 +26,13 @@ SUB_LIST+= SERENDIPITY=${SERENDIPITY}
SUB_FILES= pkg-message
CONFLICTS= serendipity-1.*
-LATEST_LINK= serendipity-devel
-
-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
+ PGSQL "Use PostgreSQL backend" off \
+ SQLITE "Use SQLite backend (php5 only)" off \
+ 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
+.include <bsd.port.pre.mk>
.if !defined(WITHOUT_MYSQL)
USE_PHP+= mysql
@@ -76,4 +59,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>