1 # Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
4 PORTNAME= mplayer-skins
8 MASTER_SITES= ${MASTER_SITE_MPLAYERHQ}
9 MASTER_SITE_SUBDIR= skins
10 DISTFILES= # filled in later after options
11 DIST_SUBDIR= mplayer-skins
13 MAINTAINER= riggs@freebsd.org
14 COMMENT= Skins for MPlayer's Graphical User Interface (GUI)
17 # When adding a new skin, please make sure to add it into the following
22 # Then do "make config", select "All Skins" and run "make makesum".
29 .include "${.CURDIR}/Makefile.options"
31 .include <bsd.port.pre.mk>
33 .include "${.CURDIR}/Makefile.skins"
35 myDATADIR= share/${PORTNAME:S/-skins//}/skins
36 myWRKSRC= ${WRKSRC}/skins
39 @${FIND} ${WRKSRC} -type d \( -name '.svn' \) -delete
41 @for dir in `cd ${WRKSRC} && ${FIND} . -type d ! -name ".*" ! -name "skins" -maxdepth 1` ; do \
42 ${MV} ${WRKSRC}/$${dir#./} ${myWRKSRC}; \
46 .if ${PORT_OPTIONS:MALL}
47 PORT_OPTIONS+= ${ALLSKINS}
51 DISTFILES+= ${DEFAULT_FILE}${EXTRACT_SUFX}
53 .if $(PORT_OPTIONS:M${f})
54 PLIST_SUB+= ${f}="" WITHOUT_SKIN_${f}="@comment "
55 DISTFILES+= ${${f}_FILE}${EXTRACT_SUFX}
57 PLIST_SUB+= ${f}="@comment " WITHOUT_SKIN_${f}=""
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#./}" ; \
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#./} ; \
70 # Create link to the default skin
71 @${LN} -sfh Blue ${STAGEDIR}${PREFIX}/${myDATADIR}/default
73 .include <bsd.port.post.mk>