diff options
Diffstat (limited to 'www/contao211-translations/Makefile')
-rw-r--r-- | www/contao211-translations/Makefile | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/www/contao211-translations/Makefile b/www/contao211-translations/Makefile index c149d585e91..82a0b89cadb 100644 --- a/www/contao211-translations/Makefile +++ b/www/contao211-translations/Makefile @@ -1,15 +1,43 @@ -# $NetBSD: Makefile,v 1.20 2012/09/27 13:47:14 taca Exp $ +# $NetBSD: Makefile,v 1.21 2012/10/01 15:38:32 taca Exp $ # +DISTNAME= contao${CT_VER}-translations-${VERS} +CATEGORIES= www +MASTER_SITES= # defined for each distfiles +DISTFILES= ${CT_DISTFILES} +EXTRACT_DIR= ${WRKSRC} + +MAINTAINER= taca@NetBSD.org +HOMEPAGE= http://www.contao.org/download.html +COMMENT= Language files for Contao CMS +LICENSE= gnu-lgpl-v3 + +DEPENDS+= contao${CT_VER}>=${CT_PKGVER}:../../www/contao${CT_VER} + # Use time stamp of latest translation. VERS= 201209250 CT_VERS= 211 -PKG_DESTDIR_SUPPORT= user-destdir +USE_TOOLS= pax +NO_BUILD= yes +NO_CONFIGURE= yes +PLIST_SRC= ${WRKDIR}/PLIST .include "options.mk" -.include "../../www/contao/Makefile.translations" +pre-install: + ${RM} -f ${WRKSRC}/system/modules/backend/languages/*/tl_task.php + ${FIND} ${WRKSRC}/system/modules \ + \( -name "*.orig*" -o -name tl_flash.php \) -exec ${RM} -f {} \; + ${FIND} ${WRKSRC} -type f -exec ${CHMOD} -x {} \; + +do-install: + cd ${WRKSRC}; pax -rw . ${DESTDIR}${PREFIX}/${CT_WEBDIR} + ${SED} -e 1q PLIST.master > ${PLIST_SRC} + for lang in ${CT_LANGUAGES}; do \ + ${SED} -e 1d -e "s|@lang@|$${lang}|" PLIST.master; \ + done | ${SORT} >> ${PLIST_SRC} + .include "../../www/contao/Makefile.common" .include "../../lang/php/phpversion.mk" .include "../../mk/bsd.pkg.mk" |