Tweak multimedia/mlt version 6.4.1_2
[dports.git] / multimedia / mplayer-skins / Makefile
1 # Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       mplayer-skins
5 PORTVERSION=    1.1.3
6 PORTREVISION=   4
7 CATEGORIES=     multimedia
8 MASTER_SITES=   MPLAYERHQ/skins
9 DISTFILES=      # filled in later after options
10 DIST_SUBDIR=    mplayer-skins
11
12 MAINTAINER=     riggs@FreeBSD.org
13 COMMENT=        Skins for MPlayer's Graphical User Interface (GUI)
14
15 #
16 # When adding a new skin, please make sure to add it into the following
17 # Makefiles:
18 # - Makefile.skins
19 # - Makefile.options
20 #
21 # Then do "make config", select "All Skins" and run "make makesum".
22 #
23
24 USES=           tar:bzip2
25 NO_WRKSUBDIR=   yes
26 NO_BUILD=       yes
27
28 NO_ARCH=        yes
29
30 .include "${.CURDIR}/Makefile.options"
31
32 .include <bsd.port.pre.mk>
33
34 .include "${.CURDIR}/Makefile.skins"
35
36 myDATADIR=      share/${PORTNAME:S/-skins//}/skins
37 myWRKSRC=               ${WRKSRC}/skins
38
39 post-extract:
40         @${FIND} ${WRKSRC} -type d \( -name '.svn' \) -delete
41         @${MKDIR} ${myWRKSRC}
42         @for dir in `cd ${WRKSRC} && ${FIND} . -type d ! -name ".*" ! -name "skins" -maxdepth 1` ; do \
43                 ${MV} ${WRKSRC}/$${dir#./} ${myWRKSRC}; \
44         done
45
46 pre-build:
47 .if ${PORT_OPTIONS:MALL}
48 PORT_OPTIONS+=  ${ALLSKINS}
49 .endif
50
51 post-build-script:
52 DISTFILES+=     ${DEFAULT_FILE}${EXTRACT_SUFX}
53 .for f in ${ALLSKINS}
54 .if ${PORT_OPTIONS:M${f}}
55 PLIST_SUB+=     ${f}="" WITHOUT_SKIN_${f}="@comment "
56 DISTFILES+=     ${${f}_FILE}${EXTRACT_SUFX}
57 .else
58 PLIST_SUB+=     ${f}="@comment " WITHOUT_SKIN_${f}=""
59 .endif
60 .endfor
61
62 do-install:
63 # both anotate and create target directories
64         @for dir in `cd ${myWRKSRC} && ${FIND} . -type d | ${SORT} -r` ; do \
65                 ${MKDIR} "${STAGEDIR}${PREFIX}/${myDATADIR}/$${dir#./}" ; \
66         done
67 # both anotate installed and install files
68         @for f in `cd ${myWRKSRC} && ${FIND} . -type f | ${SORT}` ; do \
69                 ${INSTALL_DATA} "${myWRKSRC}/$${f#./}" ${STAGEDIR}${PREFIX}/${myDATADIR}/$${f#./} ; \
70         done
71 # Create link to the default skin
72         @${LN} -sfh Blue ${STAGEDIR}${PREFIX}/${myDATADIR}/default
73
74 .include <bsd.port.post.mk>