mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
cb9d91a8f6
- Drop USE_BZIP2 - Pet portlint PR: 189834 Submitted by: Bartek Rutkowski <ports@robakdesign.com>
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# Created by: babak@farrokhi.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= serendipity
|
|
PORTVERSION= 1.7.8
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/php-blog/${PORTNAME}/${PORTVERSION}
|
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
|
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
|
|
USES= tar:bzip2
|
|
|
|
OPTIONS_DEFINE= MYSQL PGSQL SQLITE MAGICK
|
|
OPTIONS_DEFAULT= MYSQL MAGICK
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
USE_PHP+= mysql
|
|
. endif
|
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
|
USE_PHP+= pgsql
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSQLITE}
|
|
USE_PHP+= sqlite
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMAGICK}
|
|
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
|
|
.endif
|
|
|
|
do-install:
|
|
@-${MKDIR} ${STAGEDIR}${PREFIX}/${SERENDIPITY}
|
|
@${CHMOD} 755 ${STAGEDIR}${PREFIX}/${SERENDIPITY}
|
|
@(cd ${WRKSRC} && ${CP} -R * ${STAGEDIR}${PREFIX}/${SERENDIPITY}/ )
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${SERENDIPITY}
|
|
|
|
.include <bsd.port.mk>
|