/[ports]/head/www/tt-rss/Makefile
ViewVC logotype

Contents of /head/www/tt-rss/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 424411 - (show annotations) (download)
Fri Oct 21 12:51:40 2016 UTC (8 years ago) by mat
File MIME type: text/plain
File size: 2341 byte(s)
${RM} already has -f.

PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight

1 # Created by: Thierry Thomas <thierry@pompo.net>
2 # $FreeBSD$
3
4 PORTNAME= tt-rss
5 PORTVERSION= 16.8.2016.08.11
6 PORTREVISION= 1
7 CATEGORIES= www
8 MASTER_SITES= https://tt-rss.org/gitlab/fox/tt-rss/repository/archive${EXTRACT_SUFX}?ref=${GL_TAGNAME}&num;/
9
10 MAINTAINER= thierry@FreeBSD.org
11 COMMENT= Tiny Tiny RSS: web-based news feed (RSS/Atom) aggregator
12
13 LICENSE= GPLv2
14
15 GL_TAGNAME= 5cbd1fe8
16
17 NO_BUILD= yes
18 NO_ARCH= yes
19
20 USE_PHP= ctype dom hash json mbstring pcntl posix session xmlrpc
21 REINPLACE_ARGS= -i ""
22 USES= php:cli,web shebangfix tar:bz2
23 SHEBANG_FILES= lib/dojo-src/rebuild-dojo.sh utils/extract-i18n-js.pl
24 WRKSRC= ${WRKDIR}/tt-rss.git
25
26 USE_RC_SUBR= ttrssd
27
28 OPTIONS_DEFINE= CURL GD
29 OPTIONS_SINGLE= DB
30 OPTIONS_SINGLE_DB= MYSQL PGSQL
31 OPTIONS_DEFAULT= CURL GD MYSQL
32 CURL_DESC= Use SimplePie instead of Magpie
33 GD_DESC= Use OTP QR code generation
34
35 .include <bsd.port.options.mk>
36
37 .if ${PORT_OPTIONS:MPGSQL}
38 USE_PHP+= pgsql
39 DB= pgsql
40 MYSQL= "\#"
41 PGSQL=
42 .endif
43
44 .if ${PORT_OPTIONS:MMYSQL}
45 USE_PHP+= mysqli
46 DB= mysql
47 MYSQL=
48 PGSQL= "\#"
49 .endif
50
51 .if ${PORT_OPTIONS:MCURL}
52 USE_PHP+= curl
53 .endif
54
55 .if ${PORT_OPTIONS:MGD}
56 USE_PHP+= gd
57 .endif
58
59 SUB_FILES= httpd-tt-rss.conf pkg-message
60 SUB_LIST= DB=${DB} WWWOWN=${WWWOWN} MYSQL=${MYSQL} PGSQL=${PGSQL}
61 PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
62 PKGMESSAGE= ${WRKDIR}/pkg-message
63
64 PHP2FIX= config.php-dist update.php update_daemon2.php
65
66 SCRIPTS= update.php update_daemon2.php
67
68 pre-configure:
69 ${REINPLACE_CMD} -E "1,/define.*VERSION_STATIC/s/([0-9]+\.[0-9]+)/\1 (${GL_TAGNAME})/" ${WRKSRC}/include/version.php
70 .for script in ${PHP2FIX}
71 ${REINPLACE_CMD} -e 's|/usr/bin/php|${LOCALBASE}/bin/php|' \
72 -e 's|/usr/bin/env php| ${LOCALBASE}/bin/php|' \
73 ${WRKSRC}/${script}
74 .endfor
75
76 do-configure:
77 .if ${PORT_OPTIONS:MPGSQL}
78 ${REINPLACE_CMD} -e '/DB_TYPE/s|pgsql|mysql|;s|mysql$$|pgsql|' \
79 ${WRKSRC}/config.php-dist
80 .endif
81
82 do-install:
83 ${MKDIR} ${STAGEDIR}${WWWDIR} ${STAGEDIR}${DATADIR}
84 (cd ${WRKSRC} && ${COPYTREE_SHARE} "*" ${STAGEDIR}${WWWDIR} "! -name LICENSE")
85 ${RM} -r ${STAGEDIR}${WWWDIR}/debian
86 ${MKDIR} ${STAGEDIR}${WWWDIR}/icons/ # Not used for fresh installation
87 ${TOUCH} ${STAGEDIR}${WWWDIR}/icons/.empty
88 ${INSTALL_DATA} ${WRKDIR}/httpd-tt-rss.conf ${STAGEDIR}${DATADIR}
89
90 ${MV} ${STAGEDIR}${WWWDIR}/config.php-dist ${STAGEDIR}${WWWDIR}/config.php.sample
91
92 .include <bsd.port.mk>

Properties

Name Value
svn:eol-style native
svn:keywords FreeBSD=%H
svn:mime-type text/plain

  ViewVC Help
Powered by ViewVC 1.1.27