mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
dca255c3ce
PR: 210529 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D6936
125 lines
2.6 KiB
Makefile
125 lines
2.6 KiB
Makefile
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= punbb
|
|
PORTVERSION= 1.4.4
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://punbb.informer.com/download/ \
|
|
http://punbb.informer.com/download/plugins/:plugins \
|
|
http://punbb.informer.com/download/lang_packs-1.2/:lang
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
${LANGFILES:S/$/:lang/} \
|
|
${PLUGINS:S/$/:plugins/}
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Fast and lightweight PHP-powered discussion board
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS+= ${UNZIP_CMD}:archivers/unzip
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
NO_BUILD= yes
|
|
USES= php tar:bzip2
|
|
|
|
OPTIONS_DEFINE= LANGUAGE_PACK EXTRAS
|
|
OPTIONS_DEFAULT= LANGUAGE_PACK EXTRAS
|
|
LANGUAGE_PACK_DESC= Install language packs
|
|
EXTRAS_DESC= Install all plugins available
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLANGUAGE_PACK}
|
|
LANGFILES+= Arabic.zip \
|
|
Bangla_UTF8.zip \
|
|
Belarusian.zip \
|
|
Bosnian.zip \
|
|
Brazilian_Portuguese.zip \
|
|
Bulgarian.zip \
|
|
Bulgarian_UTF8.zip \
|
|
Catalan.zip \
|
|
Czech.zip \
|
|
Czech_UTF8.zip \
|
|
Danish.zip \
|
|
Dutch.zip \
|
|
Estonian.zip \
|
|
Farsi.zip \
|
|
Finnish.zip \
|
|
French.zip \
|
|
Galician.zip \
|
|
German.zip \
|
|
Greek.zip \
|
|
Hebrew.zip \
|
|
Hindi.zip \
|
|
Hrvatski.zip \
|
|
Hungarian.zip \
|
|
Icelandic.zip \
|
|
Indonesian.zip \
|
|
Italian.zip \
|
|
Japanese.zip \
|
|
Korean.zip \
|
|
Kurdish.zip \
|
|
Latvian.zip \
|
|
Lithuanian.zip \
|
|
Norwegian.zip \
|
|
Polish.zip \
|
|
Polish_UTF8.zip \
|
|
Portuguese.zip \
|
|
Romanian.zip \
|
|
Russian.zip \
|
|
Serbian.zip \
|
|
Simplified_Chinese.zip \
|
|
Slovak.zip \
|
|
Slovak_UTF8.zip \
|
|
Slovenian.zip \
|
|
Spanish.zip \
|
|
Swedish.zip \
|
|
Traditional_Chinese.zip \
|
|
Turkish.zip \
|
|
Ukrainian.zip \
|
|
Ukrainian_UTF8.zip \
|
|
Urdu.zip \
|
|
Vietnamese.zip
|
|
PLIST_SUB+= LANGUAGE_PACK=""
|
|
.else
|
|
PLIST_SUB+= LANGUAGE_PACK="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXTRAS}
|
|
PLUGINS+= AP_User_Merge.zip \
|
|
AP_Author_Update.zip \
|
|
AP_PunBB_Shell.zip \
|
|
AP_Backup.zip \
|
|
AP_Forum_cleanup.zip \
|
|
AP_Clear_Cache.zip \
|
|
AP_Merge_Forums.zip \
|
|
AMP_Global_topic.zip \
|
|
AP_Languages_and_styles.zip \
|
|
AP_Broadcast_Email.zip \
|
|
AP_DB_management.zip \
|
|
AP_User_management.zip \
|
|
AP_News_Generator.zip \
|
|
AP_Version_Changer.zip
|
|
PLIST_SUB+= PLUGINS=""
|
|
.else
|
|
PLIST_SUB+= PLUGINS="@comment "
|
|
.endif
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
|
|
|
|
.for i in ${LANGFILES}
|
|
${UNZIP_CMD} -o ${DISTDIR}/${i} -d ${STAGEDIR}${WWWDIR}/lang -x '*/.DS_Store' -x '*/._.DS_Store'
|
|
.endfor
|
|
|
|
.for i in ${PLUGINS}
|
|
${UNZIP_CMD} -o ${DISTDIR}/${i} -d ${STAGEDIR}${WWWDIR}/plugins
|
|
.endfor
|
|
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|