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