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
|
|
|
# $FreeBSD$
|
|
|
|
|
2005-11-30 00:05:42 +01:00
|
|
|
PORTNAME= mplayer-skins
|
2012-01-11 20:16:58 +01:00
|
|
|
PORTVERSION= 1.1.3
|
2012-12-09 17:12:23 +01:00
|
|
|
PORTREVISION= 1
|
2002-11-28 01:09:51 +01:00
|
|
|
CATEGORIES= multimedia
|
2012-10-05 06:21:20 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MPLAYERHQ}
|
|
|
|
MASTER_SITE_SUBDIR= 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
|
|
|
|
2012-01-11 20:16:58 +01:00
|
|
|
MAINTAINER= thomas.e.zander@googlemail.com
|
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".
|
|
|
|
#
|
|
|
|
|
2002-01-17 20:48:22 +01:00
|
|
|
USE_BZIP2= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
NO_BUILD= yes
|
2004-10-16 15:40:27 +02:00
|
|
|
|
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
|
2002-01-17 20:48:22 +01:00
|
|
|
# Used by other ports to detect if this is installed
|
2004-10-16 15:40:27 +02:00
|
|
|
DETECTION_FILE= ${LOCALBASE}/${myDATADIR}/${PKGNAME}
|
2002-01-17 20:48:22 +01:00
|
|
|
|
2004-10-16 15:40:27 +02:00
|
|
|
PLIST_SUB+= PKGNAME="${PKGNAME}"
|
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
|
2004-11-21 00:39:56 +01:00
|
|
|
|
2012-01-11 20:16:58 +01:00
|
|
|
pre-build:
|
2002-01-17 20:48:22 +01:00
|
|
|
# Build and install all skins (rather expensive)
|
2006-02-08 10:27:35 +01:00
|
|
|
.if (defined(BATCH) && !defined(_OPTIONS_READ)) || defined(WITH_SKIN_ALL)
|
2004-11-21 00:39:56 +01:00
|
|
|
.for f in ${ALLSKINS}
|
|
|
|
WITH_SKIN_${f}= yes
|
|
|
|
.endfor
|
2004-10-16 15:40:27 +02:00
|
|
|
.endif # WITH_SKIN_ALL
|
2002-01-17 20:48:22 +01:00
|
|
|
|
2012-01-11 20:16:58 +01:00
|
|
|
post-build-script:
|
2004-11-21 00:39:56 +01:00
|
|
|
.for f in ${ALLSKINS}
|
|
|
|
.ifdef(WITH_SKIN_${f})
|
2005-01-04 06:25:22 +01:00
|
|
|
PLIST_SUB+= ${f}="" WITHOUT_SKIN_${f}="@comment "
|
2004-10-16 15:40:27 +02:00
|
|
|
HAVE_SKIN= true
|
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
|
2012-01-11 20:16:58 +01:00
|
|
|
.if !defined(HAVE_SKIN)
|
|
|
|
IGNORE= no skin selected
|
2003-03-23 08:12:25 +01:00
|
|
|
.endif
|
|
|
|
|
2004-10-16 15:40:27 +02:00
|
|
|
do-install:
|
2003-03-05 01:09:14 +01:00
|
|
|
# both anotate and create target directories
|
|
|
|
@for dir in `cd ${WRKDIR} && ${FIND} . -type d ! -name ".*" | ${SORT} -r` ; do \
|
|
|
|
${MKDIR} "${PREFIX}/${myDATADIR}/$${dir#./}" ; \
|
2004-10-16 15:40:27 +02:00
|
|
|
LAST_DIR="$${dir#./}"; \
|
2005-04-05 11:14:37 +02:00
|
|
|
done && \
|
|
|
|
${LN} -sfh "${PREFIX}/${myDATADIR}/$${LAST_DIR#./}" "${PREFIX}/${myDATADIR}/default"
|
|
|
|
.ifdef(WITH_SKIN_DEFAULT)
|
|
|
|
@${LN} -sfh "${PREFIX}/${myDATADIR}/Blue" "${PREFIX}/${myDATADIR}/default"
|
|
|
|
.endif
|
2003-03-05 01:09:14 +01:00
|
|
|
# both anotate installed and install files
|
2004-11-21 00:39:56 +01:00
|
|
|
@for f in `cd ${WRKDIR} && ${FIND} . -type f ! -name ".*" | ${SORT}` ; do \
|
|
|
|
${INSTALL_DATA} "${WRKDIR}/$${f#./}" ${PREFIX}/${myDATADIR}/$${f#./} ; \
|
2003-03-05 01:09:14 +01:00
|
|
|
done
|
|
|
|
# add marker file
|
2004-11-21 00:39:56 +01:00
|
|
|
@${TOUCH} ${PREFIX}/${myDATADIR}/${PKGNAME}
|
2002-01-17 20:48:22 +01:00
|
|
|
|
2004-10-16 15:40:27 +02:00
|
|
|
.include <bsd.port.post.mk>
|