# Created by: Mario Sergio Fujikawa Ferreira # $FreeBSD$ PORTNAME= mplayer-skins PORTVERSION= 1.1.3 PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_MPLAYERHQ} MASTER_SITE_SUBDIR= skins DISTFILES= # filled in later after options DIST_SUBDIR= mplayer-skins MAINTAINER= thomas.e.zander@googlemail.com COMMENT= Skins for MPlayer's Graphical User Interface (GUI) # # When adding a new skin, please make sure to add it into the following NO_STAGE= yes # Makefiles: # - Makefile.skins # - Makefile.options # # Then do "make config", select "All Skins" and run "make makesum". # USE_BZIP2= yes NO_WRKSUBDIR= yes NO_BUILD= yes .include "${.CURDIR}/Makefile.options" .include .include .include "${.CURDIR}/Makefile.skins" myDATADIR= share/${PORTNAME:S/-skins//}/skins # Used by other ports to detect if this is installed DETECTION_FILE= ${LOCALBASE}/${myDATADIR}/${PKGNAME} PLIST_SUB+= PKGNAME="${PKGNAME}" post-extract: @${FIND} ${WRKSRC} -type d \( -name '.svn' \) -delete pre-build: .if ${PORT_OPTIONS:MALL} PORT_OPTIONS+= ${ALLSKINS} .endif post-build-script: .for f in ${ALLSKINS} .if $(PORT_OPTIONS:M${f}) PLIST_SUB+= ${f}="" WITHOUT_SKIN_${f}="@comment " DISTFILES+= ${${f}_FILE}${EXTRACT_SUFX} .else PLIST_SUB+= ${f}="@comment " WITHOUT_SKIN_${f}="" .endif .endfor do-install: # both anotate and create target directories @for dir in `cd ${WRKDIR} && ${FIND} . -type d ! -name ".*" | ${SORT} -r` ; do \ ${MKDIR} "${PREFIX}/${myDATADIR}/$${dir#./}" ; \ LAST_DIR="$${dir#./}"; \ done && \ ${LN} -sfh "${PREFIX}/${myDATADIR}/$${LAST_DIR#./}" "${PREFIX}/${myDATADIR}/default" .ifdef(WITH_SKIN_DEFAULT) @${LN} -sfh "${PREFIX}/${myDATADIR}/Blue" "${PREFIX}/${myDATADIR}/default" .endif # both anotate installed and install files @for f in `cd ${WRKDIR} && ${FIND} . -type f ! -name ".*" | ${SORT}` ; do \ ${INSTALL_DATA} "${WRKDIR}/$${f#./}" ${PREFIX}/${myDATADIR}/$${f#./} ; \ done # add marker file @${TOUCH} ${PREFIX}/${myDATADIR}/${PKGNAME} .include