freebsd-ports/chinese/wordpress/Makefile
Rong-En Fan d5e5b0964e - Update to 2.2.1 [1]
- Use SUB_FILES for pkg-message [2]

PR:		ports/114403 [1]
Submitted by:	Yinghong Liu (maintainer) [1]
Approved by:	maintainer via private mail [2]
2007-07-09 07:13:24 +00:00

54 lines
1.2 KiB
Makefile

# New ports collection makefile for: wordpress
# Date created: 2007-05-11
# Whom: Yinghong Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= wordpress
PORTVERSION= 2.2.1
CATEGORIES= chinese www
MASTER_SITES= SF
MASTER_SITE_SUBDIR= ${PORTNAME}-zh
PKGNAMEPREFIX= zh-
DISTNAME= ${PORTNAME}_${PORTVERSION}_zh_CN
MAINTAINER= relaxbsd@gmail.com
COMMENT= A state-of-the-art semantic personal publishing platform
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_ZIP= YES
USE_PHP= mysql pcre xml
NO_BUILD= YES
WANT_PHP_WEB= YES
WORDPRESS?= www/wordpress
SUB_FILES= pkg-message
SUB_LIST= WORDPRESSDIR="${PREFIX}/${WORDPRESS}"
PORTDOCS= license.txt readme.html
pre-everything::
@${ECHO_CMD} "If you want to upgrade, you must read upgrade document."
@${ECHO_CMD} ""
@sleep 1
pre-install:
if [ ! -f ${WRKSRC}/wp-config.php ]; then ${CP} \
${WRKSRC}/wp-config-sample.php ${WRKSRC}/wp-config.php; fi
do-install:
@${MKDIR} ${PREFIX}/${WORDPRESS}
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${WORDPRESS}
@${CHMOD} 755 ${PREFIX}/${WORDPRESS}
${CP} -R ${WRKSRC}/ ${PREFIX}/${WORDPRESS}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>