blob: 2cb361e6ea01fdfbeba702b99911dfbd02c76e08 (
plain)
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
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= mplayer-skins
PORTVERSION= 1.1.3
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_MPLAYERHQ}
MASTER_SITE_SUBDIR= skins
DISTFILES= # filled in later after options
DIST_SUBDIR= mplayer-skins
MAINTAINER= thomas.e.zander@googlemail.com
COMMENT= Skins for MPlayer's Graphical User Interface (GUI)
#
# When adding a new skin, please make sure to add it into the following
NO_STAGE= yes
# Makefiles:
# - Makefile.skins
# - Makefile.options
#
# Then do "make config", select "All Skins" and run "make makesum".
#
USE_BZIP2= yes
NO_WRKSUBDIR= yes
NO_BUILD= yes
.include "${.CURDIR}/Makefile.options"
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
.include "${.CURDIR}/Makefile.skins"
myDATADIR= share/${PORTNAME:S/-skins//}/skins
# Used by other ports to detect if this is installed
DETECTION_FILE= ${LOCALBASE}/${myDATADIR}/${PKGNAME}
PLIST_SUB+= PKGNAME="${PKGNAME}"
post-extract:
@${FIND} ${WRKSRC} -type d \( -name '.svn' \) -delete
pre-build:
.if ${PORT_OPTIONS:MALL}
PORT_OPTIONS+= ${ALLSKINS}
.endif
post-build-script:
.for f in ${ALLSKINS}
.if $(PORT_OPTIONS:M${f})
PLIST_SUB+= ${f}="" WITHOUT_SKIN_${f}="@comment "
DISTFILES+= ${${f}_FILE}${EXTRACT_SUFX}
.else
PLIST_SUB+= ${f}="@comment " WITHOUT_SKIN_${f}=""
.endif
.endfor
do-install:
# both anotate and create target directories
@for dir in `cd ${WRKDIR} && ${FIND} . -type d ! -name ".*" | ${SORT} -r` ; do \
${MKDIR} "${PREFIX}/${myDATADIR}/$${dir#./}" ; \
LAST_DIR="$${dir#./}"; \
done && \
${LN} -sfh "${PREFIX}/${myDATADIR}/$${LAST_DIR#./}" "${PREFIX}/${myDATADIR}/default"
.ifdef(WITH_SKIN_DEFAULT)
@${LN} -sfh "${PREFIX}/${myDATADIR}/Blue" "${PREFIX}/${myDATADIR}/default"
.endif
# both anotate installed and install files
@for f in `cd ${WRKDIR} && ${FIND} . -type f ! -name ".*" | ${SORT}` ; do \
${INSTALL_DATA} "${WRKDIR}/$${f#./}" ${PREFIX}/${myDATADIR}/$${f#./} ; \
done
# add marker file
@${TOUCH} ${PREFIX}/${myDATADIR}/${PKGNAME}
.include <bsd.port.post.mk>
|