2012-10-05 06:21:20 +02:00
|
|
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
2002-01-17 20:48:22 +01:00
|
|
|
|
2005-11-30 00:05:42 +01:00
|
|
|
PORTNAME= mplayer-skins
|
2018-07-10 20:37:09 +02:00
|
|
|
PORTVERSION= 1.1.5
|
2002-11-28 01:09:51 +01:00
|
|
|
CATEGORIES= multimedia
|
2018-07-10 20:37:09 +02:00
|
|
|
MASTER_SITES= http://www.mplayerhq.hu/MPlayer/skins/ \
|
|
|
|
http://ftp.icm.edu.pl/packages/mplayer/skins/
|
2004-11-21 00:39:56 +01:00
|
|
|
DISTFILES= # filled in later after options
|
2012-01-11 20:16:58 +01:00
|
|
|
DIST_SUBDIR= mplayer-skins
|
2002-01-17 20:48:22 +01:00
|
|
|
|
2015-03-12 18:12:19 +01:00
|
|
|
MAINTAINER= riggs@FreeBSD.org
|
2003-02-21 13:51:06 +01:00
|
|
|
COMMENT= Skins for MPlayer's Graphical User Interface (GUI)
|
2002-01-17 20:48:22 +01:00
|
|
|
|
2004-11-21 00:39:56 +01:00
|
|
|
#
|
2012-01-11 20:16:58 +01:00
|
|
|
# When adding a new skin, please make sure to add it into the following
|
|
|
|
# Makefiles:
|
|
|
|
# - Makefile.skins
|
|
|
|
# - Makefile.options
|
2004-11-21 00:39:56 +01:00
|
|
|
#
|
|
|
|
# Then do "make config", select "All Skins" and run "make makesum".
|
|
|
|
#
|
|
|
|
|
2014-04-27 21:14:08 +02:00
|
|
|
USES= tar:bzip2
|
2002-01-17 20:48:22 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
NO_BUILD= yes
|
2004-10-16 15:40:27 +02:00
|
|
|
|
2016-08-14 16:58:09 +02:00
|
|
|
NO_ARCH= yes
|
|
|
|
|
2012-01-11 20:16:58 +01:00
|
|
|
.include "${.CURDIR}/Makefile.options"
|
2004-10-16 15:40:27 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2002-01-17 20:48:22 +01:00
|
|
|
|
2012-01-11 20:16:58 +01:00
|
|
|
.include "${.CURDIR}/Makefile.skins"
|
2002-01-17 20:48:22 +01:00
|
|
|
|
2006-10-06 21:44:54 +02:00
|
|
|
myDATADIR= share/${PORTNAME:S/-skins//}/skins
|
2014-04-27 21:14:08 +02:00
|
|
|
myWRKSRC= ${WRKSRC}/skins
|
2002-01-17 20:48:22 +01:00
|
|
|
|
2012-01-11 20:16:58 +01:00
|
|
|
post-extract:
|
|
|
|
@${FIND} ${WRKSRC} -type d \( -name '.svn' \) -delete
|
2014-04-27 21:14:08 +02:00
|
|
|
@${MKDIR} ${myWRKSRC}
|
|
|
|
@for dir in `cd ${WRKSRC} && ${FIND} . -type d ! -name ".*" ! -name "skins" -maxdepth 1` ; do \
|
|
|
|
${MV} ${WRKSRC}/$${dir#./} ${myWRKSRC}; \
|
|
|
|
done
|
2004-11-21 00:39:56 +01:00
|
|
|
|
2012-01-11 20:16:58 +01:00
|
|
|
pre-build:
|
2013-06-04 23:20:31 +02:00
|
|
|
.if ${PORT_OPTIONS:MALL}
|
|
|
|
PORT_OPTIONS+= ${ALLSKINS}
|
|
|
|
.endif
|
2002-01-17 20:48:22 +01:00
|
|
|
|
2012-01-11 20:16:58 +01:00
|
|
|
post-build-script:
|
2014-04-27 21:14:08 +02:00
|
|
|
DISTFILES+= ${DEFAULT_FILE}${EXTRACT_SUFX}
|
2004-11-21 00:39:56 +01:00
|
|
|
.for f in ${ALLSKINS}
|
2016-07-20 17:33:20 +02:00
|
|
|
.if ${PORT_OPTIONS:M${f}}
|
2005-01-04 06:25:22 +01:00
|
|
|
PLIST_SUB+= ${f}="" WITHOUT_SKIN_${f}="@comment "
|
2012-01-11 20:16:58 +01:00
|
|
|
DISTFILES+= ${${f}_FILE}${EXTRACT_SUFX}
|
2004-10-16 15:40:27 +02:00
|
|
|
.else
|
2005-01-04 06:25:22 +01:00
|
|
|
PLIST_SUB+= ${f}="@comment " WITHOUT_SKIN_${f}=""
|
2003-10-08 19:50:18 +02:00
|
|
|
.endif
|
2004-11-21 00:39:56 +01:00
|
|
|
.endfor
|
2003-03-23 08:12:25 +01:00
|
|
|
|
2004-10-16 15:40:27 +02:00
|
|
|
do-install:
|
2003-03-05 01:09:14 +01:00
|
|
|
# both anotate and create target directories
|
2014-04-27 21:14:08 +02:00
|
|
|
@for dir in `cd ${myWRKSRC} && ${FIND} . -type d | ${SORT} -r` ; do \
|
|
|
|
${MKDIR} "${STAGEDIR}${PREFIX}/${myDATADIR}/$${dir#./}" ; \
|
|
|
|
done
|
2003-03-05 01:09:14 +01:00
|
|
|
# both anotate installed and install files
|
2014-04-27 21:14:08 +02:00
|
|
|
@for f in `cd ${myWRKSRC} && ${FIND} . -type f | ${SORT}` ; do \
|
|
|
|
${INSTALL_DATA} "${myWRKSRC}/$${f#./}" ${STAGEDIR}${PREFIX}/${myDATADIR}/$${f#./} ; \
|
2003-03-05 01:09:14 +01:00
|
|
|
done
|
2014-04-27 21:14:08 +02:00
|
|
|
# Create link to the default skin
|
|
|
|
@${LN} -sfh Blue ${STAGEDIR}${PREFIX}/${myDATADIR}/default
|
2002-01-17 20:48:22 +01:00
|
|
|
|
2004-10-16 15:40:27 +02:00
|
|
|
.include <bsd.port.post.mk>
|