aboutsummaryrefslogtreecommitdiffstats
path: root/www/gekko-modules/Makefile
blob: 189f1051d3e4c541ecf118c496c426ae518f6498 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# New ports collection makefile for:    gekko-modules
# Date created:     2005-12-27
# Whom:         Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#

PORTNAME=   gekko-modules
PORTVERSION=    0.6.4
PORTREVISION=   1
CATEGORIES= www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gekkoware
DISTFILES=  #
DIST_SUBDIR=    gekkoware

MAINTAINER= acardenas@bsd.org.pe
COMMENT=    Gekko's modules

RUN_DEPENDS=    ${LOCALBASE}/www/gekko/conf.php:${PORTSDIR}/www/gekko

NO_BUILD=   yes
NO_WRKSUBDIR=   yes
GEKKODIR?=  www/gekko
PLIST_SUB=  GEKKODIR=${GEKKODIR}

OPTIONS=    BACKUP  "Backup module" on \
        BLOG    "Blog module"   on \
        CATEGORIES  "Categories module" on \
        COMMENTS    "Comments module"   on \
        CONTACT "Contact module"    on \
        DOWNLOADS   "Downlodas module"  on \
        EXTENSIONS  "Extensions module" on \
        FILES   "Files module"  on \
        FORUMS  "Forums module" on \
        GALLERY "Gallery module"    on \
        MEMOS   "Memos module"  on \
        MESSAGES    "Messages module"   on \
        NEWS    "News module"   on \
        PAGES   "Pages module"  on \
        POLLS   "Polls module"  on \
        SEARCH  "Search module" on \
        STATISTICS  "Statistics module" on

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_BACKUP)
DISTFILES+= backup-0.6.module.tgz
PLIST_SUB+= BACKUP=""
FLAG_MODULE=    true
.else
PLIST_SUB+= BACKUP="@comment "
.endif

.if !defined(WITHOUT_BLOG)
DISTFILES+= blog-0.6.3.module.tgz
PLIST_SUB+= BLOG=""
FLAG_MODULE=    true
.else
PLIST_SUB+= BLOG="@comment "
.endif

.if !defined(WITHOUT_CATEGORIES)
DISTFILES+= categories-0.6.2.module.tgz
PLIST_SUB+= CATEGORIES=""
FLAG_MODULE=    true
.else
PLIST_SUB+= CATEGORIES="@comment "
.endif

.if !defined(WITHOUT_COMMENTS)
DISTFILES+= comments-0.6.3.module.tgz
PLIST_SUB+= COMMENTS=""
FLAG_MODULE=    true
.else
PLIST_SUB+= COMMENTS="@comment "
.endif

.if !defined(WITHOUT_CONTACT)
DISTFILES+= contact-0.6.module.tgz
PLIST_SUB+= CONTACT=""
FLAG_MODULE=    true
.else
PLIST_SUB+= CONTACT="@comment "
.endif

.if !defined(WITHOUT_DOWNLOADS)
DISTFILES+= downloads-0.6.2.module.tgz
PLIST_SUB+= DOWNLOADS=""
FLAG_MODULE=    true
.else
PLIST_SUB+= DOWNLOADS="@comment "
.endif

.if !defined(WITHOUT_EXTENSIONS)
DISTFILES+= extensions-0.6.2.module.tgz
PLIST_SUB+= EXTENSIONS=""
FLAG_MODULE=    true
.else
PLIST_SUB+= EXTENSIONS="@comment "
.endif

.if !defined(WITHOUT_FILES)
DISTFILES+= files-0.6.1.module.tgz
PLIST_SUB+= FILES=""
FLAG_MODULE=    true
.else
PLIST_SUB+= FILES="@comment "
.endif

.if !defined(WITHOUT_FORUMS)
DISTFILES+= forums-0.6.3.module.tgz
PLIST_SUB+= FORUMS=""
FLAG_MODULE=    true
.else
PLIST_SUB+= FORUMS="@comment "
.endif

.if !defined(WITHOUT_GALLERY)
DISTFILES+= gallery-0.6.3.module.tgz
PLIST_SUB+= GALLERY=""
FLAG_MODULE=    true
.else
PLIST_SUB+= GALLERY="@comment "
.endif

.if !defined(WITHOUT_MEMOS)
DISTFILES+= memos-0.6.2.module.tgz
PLIST_SUB+= MEMOS=""
FLAG_MODULE=    true
.else
PLIST_SUB+= MEMOS="@comment "
.endif

.if !defined(WITHOUT_MESSAGES)
DISTFILES+= messages-0.6.2.module.tgz
PLIST_SUB+= MESSAGES=""
FLAG_MODULE=    true
.else
PLIST_SUB+= MESSAGES="@comment "
.endif

.if !defined(WITHOUT_NEWS)
DISTFILES+= news-0.6.2.module.tgz
PLIST_SUB+= NEWS=""
FLAG_MODULE=    true
.else
PLIST_SUB+= NEWS="@comment "
.endif

.if !defined(WITHOUT_PAGES)
DISTFILES+= pages-0.6.2.module.tgz
PLIST_SUB+= PAGES=""
FLAG_MODULE=    true
.else
PLIST_SUB+= PAGES="@comment "
.endif

.if !defined(WITHOUT_POLLS)
DISTFILES+= polls-0.6.2.1.module.tgz
PLIST_SUB+= POLLS=""
FLAG_MODULE=    true
.else
PLIST_SUB+= POLLS="@comment "
.endif

.if !defined(WITHOUT_SEARCH)
DISTFILES+= search-0.6.module.tgz
PLIST_SUB+= SEARCH=""
FLAG_MODULE=    true
.else
PLIST_SUB+= SEARCH="@comment "
.endif

.if !defined(WITHOUT_STATISTICS)
DISTFILES+= statistics-0.6.1.module.tgz
PLIST_SUB+= STATISTICS=""
FLAG_MODULE=    true
.else
PLIST_SUB+= STATISTICS="@comment "
.endif

pre-fetch:
.if defined(FLAG_MODULE)
    @${TRUE}
.else
    @${ECHO} "######################"
    @${ECHO} "# No module selected #"
    @${ECHO} "######################"
    @${FALSE}
.endif

do-install:
.for DIRE in modules templates media
    cd ${WRKSRC}/${DIRE} && \
        ${FIND} * -type d -exec ${MKDIR} "${PREFIX}/${GEKKODIR}/${DIRE}/{}" \; && \
        ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${PREFIX}/${GEKKODIR}/${DIRE}/{}" \;
.endfor
.include <bsd.port.post.mk>