blob: 7c222a3ef6f1aab5f9ae5854ae2a3e2e40d6db22 (
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
|
# New ports collection makefile for: mplayer gui skins
# Date created: Sat Jan 12 10:59:45 BRST 2002
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mplayer
PORTVERSION= 1.0.5
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://www.mplayerhq.hu/MPlayer/Skin/:Skin \
http://ftp.lug.udel.edu/MPlayer/Skin/:Skin \
ftp://ftp.mplayerhq.hu/MPlayer/Skin/:Skin \
ftp://ftp.lug.udel.edu/MPlayer/Skin/:Skin \
http://www.stud.uni-karlsruhe.de/~uedc/mplayer/:mini
PKGNAMESUFFIX= -skins
DISTFILES=
EXTRACT_ONLY=
DIST_SUBDIR= mplayer
MAINTAINER= riggs@rrr.de
COMMENT= Skins for MPlayer's Graphical User Interface (GUI)
USE_SUBMAKE= yes
USE_BZIP2= yes
NO_WRKSUBDIR= yes
NO_BUILD= yes
PLIST= ${WRKSRC}/pkg-plist
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}"
INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755
SORT?= /usr/bin/sort
myDATADIR= share/${PORTNAME}/Skin
# Used by other ports to detect if this is installed
SKIN_DETECTION_FILE= ${LOCALBASE}/${myDATADIR}/${PKGNAME}
# port style based on apsfilter by Andreas Klemm <andreas@FreeBSD.org>
#
# XXX - needs improvement
# We could fetch only those skins chosen for installation.
# However, this breaks both checksum and makesum targets.
# Ideas?
.if defined(BATCH)
WITH_SKIN_DEFAULT=yes
.endif # BATCH
.if !defined(BATCH)
pre-fetch:
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/choice
post-clean:
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif
.endif
# hint: you can now draw the following decisions for batch mode
# - WITH_SKIN_ALL install all skins
#
# Build and install all skins (rather expensive)
#
.if defined(WITH_SKIN_ALL)
WITH_SKIN_DEFAULT=yes
WITH_SKIN_ALIENMIND=yes
WITH_SKIN_AVIFILE=yes
WITH_SKIN_BLUEHEART=yes
WITH_SKIN_CORNERMP=yes
WITH_SKIN_CORNERMP_AGUA=yes
WITH_SKIN_CYRUS=yes
WITH_SKIN_GNOME=yes
WITH_SKIN_HAYRAPHON=yes
WITH_SKIN_HWSW_SKIN=yes
WITH_SKIN_MENTALIC=yes
WITH_SKIN_MIDNIGHTLOVE=yes
WITH_SKIN_NEUTRON=yes
WITH_SKIN_PHONY=yes
WITH_SKIN_PLASTIC=yes
WITH_SKIN_PROTON=yes
WITH_SKIN_SLIM=yes
WITH_SKIN_TRIUM=yes
WITH_SKIN_WINDOWSMEDIAPLAYER6=yes
WITH_SKIN_XANIM=yes
WITH_SKIN_XINE_LCD=yes
WITH_SKIN_MINI=yes
. endif # WITH_SKIN_ALL
#
# files to fetch
#
DISTFILES+= default-1.7.tar.bz2:Skin
.ifdef(WITH_SKIN_DEFAULT)
EXTRACT_ONLY+= default-1.7.tar.bz2
.endif
DISTFILES+= AlienMind-1.0.tar.bz2:Skin
.ifdef(WITH_SKIN_ALIENMIND)
EXTRACT_ONLY+= AlienMind-1.0.tar.bz2
.endif
DISTFILES+= avifile-1.5.tar.bz2:Skin
.ifdef(WITH_SKIN_AVIFILE)
EXTRACT_ONLY+= avifile-1.5.tar.bz2
.endif
DISTFILES+= BlueHeart-1.4.tar.bz2:Skin
.ifdef(WITH_SKIN_BLUEHEART)
EXTRACT_ONLY+= BlueHeart-1.4.tar.bz2
.endif
DISTFILES+= CornerMP-1.0.tar.bz2:Skin
.ifdef(WITH_SKIN_CORNERMP)
EXTRACT_ONLY+= CornerMP-1.0.tar.bz2
.endif
DISTFILES+= CornerMP-aqua-1.0.tar.bz2:Skin
.ifdef(WITH_SKIN_CORNERMP_AGUA)
EXTRACT_ONLY+= CornerMP-aqua-1.0.tar.bz2
.endif
DISTFILES+= Cyrus-1.0.tar.bz2:Skin
.ifdef(WITH_SKIN_CYRUS)
EXTRACT_ONLY+= Cyrus-1.0.tar.bz2
.endif
DISTFILES+= gnome-1.1.tar.bz2:Skin
.ifdef(WITH_SKIN_CYRUS)
EXTRACT_ONLY+= gnome-1.1.tar.bz2
.endif
DISTFILES+= hayraphon-1.0.tar.bz2:Skin
.ifdef(WITH_SKIN_CYRUS)
EXTRACT_ONLY+= hayraphon-1.0.tar.bz2
.endif
DISTFILES+= hwswskin-1.0.tar.bz2:Skin
.ifdef(WITH_SKIN_HWSW_SKIN)
EXTRACT_ONLY+= hwswskin-1.0.tar.bz2
.endif
DISTFILES+= mentalic-1.1.tar.bz2:Skin
.ifdef(WITH_SKIN_MENTALIC)
EXTRACT_ONLY+= mentalic-1.1.tar.bz2
.endif
DISTFILES+= MidnightLove-1.5.tar.bz2:Skin
.ifdef(WITH_SKIN_MIDNIGHTLOVE)
EXTRACT_ONLY+= MidnightLove-1.5.tar.bz2
.endif
DISTFILES+= neutron-1.4.tar.bz2:Skin
.ifdef(WITH_SKIN_NEUTRON)
EXTRACT_ONLY+= neutron-1.4.tar.bz2
.endif
DISTFILES+= phony-1.0.tar.bz2:Skin
.ifdef(WITH_SKIN_PHONY)
EXTRACT_ONLY+= phony-1.0.tar.bz2
.endif
DISTFILES+= plastic-1.1.1.tar.bz2:Skin
.ifdef(WITH_SKIN_PLASTIC)
EXTRACT_ONLY+= plastic-1.1.1.tar.bz2
.endif
DISTFILES+= proton-1.1.tar.bz2:Skin
.ifdef(WITH_SKIN_PROTON)
EXTRACT_ONLY+= proton-1.1.tar.bz2
.endif
DISTFILES+= slim-1.0.tar.bz2:Skin
.ifdef(WITH_SKIN_SLIM)
EXTRACT_ONLY+= slim-1.0.tar.bz2
.endif
DISTFILES+= trium-1.0.tar.bz2:Skin
.ifdef(WITH_SKIN_TRIUM)
EXTRACT_ONLY+= trium-1.0.tar.bz2
.endif
DISTFILES+= WindowsMediaPlayer6-1.2.tar.bz2:Skin
.ifdef(WITH_SKIN_WINDOWSMEDIAPLAYER6)
EXTRACT_ONLY+= WindowsMediaPlayer6-1.2.tar.bz2
.endif
DISTFILES+= xanim-1.5.tar.bz2:Skin
.ifdef(WITH_SKIN_XANIM)
EXTRACT_ONLY+= xanim-1.5.tar.bz2
.endif
DISTFILES+= xine-lcd-1.0.tar.bz2:Skin
.ifdef(WITH_SKIN_XINE_LCD)
EXTRACT_ONLY+= xine-lcd-1.0.tar.bz2
.endif
DISTFILES+= mini-0.1.tar.bz2:mini
.ifdef(WITH_SKIN_MINI)
EXTRACT_ONLY+= mini-0.1.tar.bz2
.endif
pre-install:
@${TOUCH} ${PLIST}
# Automatically create PLIST
# creates @dirrm entries
# copies file entries
do-install: generate-plist
# remove temporary dirs' file
@${RM} -f ${WRKDIR}/dirs.plist
# create target directories
@${MKDIR} ${PREFIX}/${myDATADIR}
# both anotate and create target directories
@for dir in `cd ${WRKDIR} && ${FIND} . -type d ! -name ".*" | ${SORT} -r` ; do \
${ECHO_CMD} "@dirrm ${myDATADIR}/$${dir#./}" >> ${WRKDIR}/dirs.plist ; \
${MKDIR} "${PREFIX}/${myDATADIR}/$${dir#./}" ; \
done
# anotate holding dir
@${ECHO_CMD} '@dirrm ${myDATADIR}' >> ${WRKDIR}/dirs.plist
# anotate super dir
@${ECHO_CMD} '@unexec rmdir ${myDATADIR:S!Skin$!!} 2>/dev/null || true' >> ${WRKDIR}/dirs.plist
# remove temporary files' file
@${RM} -f ${WRKDIR}/files.plist
# both anotate installed and install files
@for file in `cd ${WRKDIR} && ${FIND} . -type f ! -name ".*" | ${SORT}` ; do \
${ECHO_CMD} "${myDATADIR}/$${file#./}" >> ${WRKDIR}/files.plist ; \
${INSTALL_DATA} "${WRKDIR}/$${file#./}" ${PREFIX}/${myDATADIR}/$${file#./} ; \
done
# add marker file
@${CP} /dev/null ${PREFIX}/${myDATADIR}/${PKGNAME}
@${ECHO_CMD} '${myDATADIR}/${PKGNAME}' >> ${WRKDIR}/files.plist
# add anotations to temporary plist file
@${CAT} ${WRKDIR}/files.plist ${WRKDIR}/dirs.plist > ${TMPPLIST}
.include <bsd.port.mk>
|