1 # Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
4 PORTNAME= mplayer-skins
8 MASTER_SITES= MPLAYERHQ/skins
9 DISTFILES= # filled in later after options
10 DIST_SUBDIR= mplayer-skins
12 MAINTAINER= riggs@FreeBSD.org
13 COMMENT= Skins for MPlayer's Graphical User Interface (GUI)
16 # When adding a new skin, please make sure to add it into the following
21 # Then do "make config", select "All Skins" and run "make makesum".
30 .include "${.CURDIR}/Makefile.options"
32 .include <bsd.port.pre.mk>
34 .include "${.CURDIR}/Makefile.skins"
36 myDATADIR= share/${PORTNAME:S/-skins//}/skins
37 myWRKSRC= ${WRKSRC}/skins
40 @${FIND} ${WRKSRC} -type d \( -name '.svn' \) -delete
42 @for dir in `cd ${WRKSRC} && ${FIND} . -type d ! -name ".*" ! -name "skins" -maxdepth 1` ; do \
43 ${MV} ${WRKSRC}/$${dir#./} ${myWRKSRC}; \
47 .if ${PORT_OPTIONS:MALL}
48 PORT_OPTIONS+= ${ALLSKINS}
52 DISTFILES+= ${DEFAULT_FILE}${EXTRACT_SUFX}
54 .if ${PORT_OPTIONS:M${f}}
55 PLIST_SUB+= ${f}="" WITHOUT_SKIN_${f}="@comment "
56 DISTFILES+= ${${f}_FILE}${EXTRACT_SUFX}
58 PLIST_SUB+= ${f}="@comment " WITHOUT_SKIN_${f}=""
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#./}" ; \
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#./} ; \
71 # Create link to the default skin
72 @${LN} -sfh Blue ${STAGEDIR}${PREFIX}/${myDATADIR}/default
74 .include <bsd.port.post.mk>