head	1.9;
access;
symbols
	RELEASE_6_0_0:1.8
	RELEASE_5_4_0:1.4
	RELEASE_4_11_0:1.4;
locks; strict;
comment	@# @;


1.9
date	2006.01.11.02.30.43;	author clsung;	state dead;
branches;
next	1.8;

1.8
date	2005.05.27.06.53.16;	author clsung;	state Exp;
branches;
next	1.7;

1.7
date	2005.05.05.07.18.48;	author clsung;	state Exp;
branches;
next	1.6;

1.6
date	2005.05.03.01.56.23;	author clsung;	state Exp;
branches;
next	1.5;

1.5
date	2005.04.20.07.33.48;	author clsung;	state Exp;
branches;
next	1.4;

1.4
date	2004.12.30.05.05.45;	author clsung;	state Exp;
branches;
next	1.3;

1.3
date	2004.12.29.01.30.07;	author clsung;	state Exp;
branches;
next	1.2;

1.2
date	2004.12.08.10.29.37;	author krion;	state Exp;
branches;
next	1.1;

1.1
date	2004.10.28.02.32.09;	author clsung;	state Exp;
branches;
next	;


desc
@@


1.9
log
@- projcet rename to lifetype

PR:		91264
Submitted by:	clsung
Repocopy by:	marcus
@
text
@# New ports collection makefile for:	plog
# Date created:		2004-10-27
# Whom:			clsung
#
# $FreeBSD: ports/www/plog/Makefile,v 1.8 2005/05/27 06:53:16 clsung Exp $
#

PORTNAME=	plog
PORTVERSION=	1.0.1
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	plog
DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
		_all_plugins${EXTRACT_SUFX} \
		_all_templates${EXTRACT_SUFX}
EXTRACT_ONLY=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER=	clsung@@FreeBSD.org
COMMENT=	A PHP and MySQL based blogging platform

IGNOREFILES=	_all_plugins${EXTRACT_SUFX} _all_templates${EXTRACT_SUFX}

USE_ZIP=	YES

USE_PHP=	ctype mysql pcre session xml
PHP4_PORT?=	www/mod_php4
NO_BUILD=	YES
WANT_PHP_WEB=	YES
WWWDOCROOT?=	www/data
PLOGURL?=	plog
WWWOWN?=	www
WWWGRP?=	www
PLOGDIR?=	${WWWDOCROOT}/${PLOGURL}
PLIST=		${WRKDIR}/pkg-plist
PKGMESSAGE=	${WRKDIR}/pkg-message

OPTIONS=	BIG5		"With Big5 chinese template fix" off \
		GD		"With GD Support" on \
		IMAGICK		"With ImageMagick Support" off

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_GD)
RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/gd.so:${PORTSDIR}/${gd_DEPENDS}
.endif

.if defined(WITH_IMAGICK)
RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${PORTSDIR}/${imagick_DEPENDS}
.endif

.if defined(WITHOUT_GD) && !defined(WITH_IMAGICK)
pre-patch:
	@@${ECHO_CMD} "Without GD or ImageMagick support. No thumbnails will be generated at all."
.endif

post-extract:
.for x in plugins templates
	cd ${WRKSRC}/${x} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/_all_${x}${EXTRACT_SUFX}
.endfor

.if defined(WITH_BIG5)
USE_REINPLACE=yes

post-patch:
	${FIND} ${WRKSRC}/templates -name "*.template" | \
		${XARGS} ${REINPLACE_CMD} -e 's/|capitalize//g' -e 's/%b/%B/g'
	${FIND} ${WRKSRC}/templates -name "*.template.bak" -delete
.endif
pre-install:
	@@${RM} -f ${PLIST}
	@@cd ${WRKSRC} && ${FIND} -s . -type f | \
		${SED} -e 's|^./||;s|^|${PLOGDIR}/|' > ${PLIST} \
		&& ${ECHO_CMD} "@@unexec ${RM} -fr %D/${PLOGDIR}/tmp/* 2>/dev/null || ${TRUE}" >> ${PLIST} \
		&& ${FIND} -d * -type d | \
		${SED} -e 's|^|@@dirrm ${PLOGDIR}/|' >> ${PLIST} \
		&& ${ECHO_CMD} @@dirrm ${PLOGDIR} >> ${PLIST}

do-install:
	@@${MKDIR} ${PREFIX}/${PLOGDIR}
	@@${CP} -R ${WRKSRC}/ ${PREFIX}/${PLOGDIR}
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PLOGDIR}

post-install:
	@@${SED} -e 's|%%PLOGURL%%|${PLOGURL}|' pkg-message > ${PKGMESSAGE}
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.8
log
@- update to 1.0.1
- bug fix, see
  http://www.plogworld.net/blog.php/plog_development_journal/
  2005/05/24/plog_101_released
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.7
log
@- _all_*_zip always changing, mark IGNOREFILES
@
text
@d9 1
a9 1
PORTVERSION=	1.0
@


1.6
log
@- _*.zip changed
- add WITH_BIG5 option
@
text
@d21 2
@


1.5
log
@- Update to 1.0
- add _all_plugins and _all_templates

PR:		80021
@
text
@d35 2
a36 1
OPTIONS=	GD		"With GD Support" on \
d59 8
@


1.4
log
@- Again, it requires session function when execute admin.php

Observed by: sbaby dot bbs AT bbs dot badcow dot com dot tw
@
text
@d9 1
a9 1
PORTVERSION=	0.3.2
d13 4
d21 1
a21 1
USE_BZIP2=	YES
d23 1
a23 1
USE_PHP=	mysql pcre session
d27 5
a31 1
PLOGDIR?=	www/data-dist/plog
d33 1
d53 5
d59 2
a60 2
	@@${RM} ${WRKSRC}/.cvsignore
	cd ${WRKSRC} && ${FIND} -s . -type f | \
d62 1
d68 1
a68 3
	-${MKDIR} ${PREFIX}/${PLOGDIR}
	@@${CHOWN} www:www ${PREFIX}/${PLOGDIR}
	@@${CHMOD} 755 ${PREFIX}/${PLOGDIR}
d70 1
a70 1
	@@${CHOWN} www:www ${PREFIX}/${PLOGDIR}/tmp
d73 2
a74 1
	@@${SED} -e 's|%%PLOGDIR%%|${PREFIX}/${PLOGDIR}|' ${PKGMESSAGE}
@


1.3
log
@- plog use preg_* stuff, so add pcre to USE_PHP

Noticed by:	leeym
@
text
@d19 1
a19 1
USE_PHP=	mysql pcre
@


1.2
log
@Handle OPTIONS more properly for oncoming bsd.port.mk changes.
@
text
@d19 1
a19 1
USE_PHP=	mysql
@


1.1
log
@- A PHP and MySQL based blogging platform
- Run in Apache

PR:		ports/73190
Submitted by:	clsung
Approved by:	co-mentor (vanilla)
@
text
@d31 1
a31 1
.if defined(WITH_GD)
d39 1
a39 1
.if !defined(WITH_GD) && !defined(WITH_IMAGICK)
@

