freebsd-ports/multimedia/mplayer-skins/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

72 lines
1.8 KiB
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= mplayer-skins
PORTVERSION= 1.1.3
PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= MPLAYERHQ/skins
DISTFILES= # filled in later after options
DIST_SUBDIR= mplayer-skins
MAINTAINER= riggs@FreeBSD.org
COMMENT= Skins for MPlayer's Graphical User Interface (GUI)
#
# When adding a new skin, please make sure to add it into the following
# Makefiles:
# - Makefile.skins
# - Makefile.options
#
# Then do "make config", select "All Skins" and run "make makesum".
#
USES= tar:bzip2
NO_WRKSUBDIR= yes
NO_BUILD= yes
.include "${.CURDIR}/Makefile.options"
.include <bsd.port.pre.mk>
.include "${.CURDIR}/Makefile.skins"
myDATADIR= share/${PORTNAME:S/-skins//}/skins
myWRKSRC= ${WRKSRC}/skins
post-extract:
@${FIND} ${WRKSRC} -type d \( -name '.svn' \) -delete
@${MKDIR} ${myWRKSRC}
@for dir in `cd ${WRKSRC} && ${FIND} . -type d ! -name ".*" ! -name "skins" -maxdepth 1` ; do \
${MV} ${WRKSRC}/$${dir#./} ${myWRKSRC}; \
done
pre-build:
.if ${PORT_OPTIONS:MALL}
PORT_OPTIONS+= ${ALLSKINS}
.endif
post-build-script:
DISTFILES+= ${DEFAULT_FILE}${EXTRACT_SUFX}
.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 ${myWRKSRC} && ${FIND} . -type d | ${SORT} -r` ; do \
${MKDIR} "${STAGEDIR}${PREFIX}/${myDATADIR}/$${dir#./}" ; \
done
# both anotate installed and install files
@for f in `cd ${myWRKSRC} && ${FIND} . -type f | ${SORT}` ; do \
${INSTALL_DATA} "${myWRKSRC}/$${f#./}" ${STAGEDIR}${PREFIX}/${myDATADIR}/$${f#./} ; \
done
# Create link to the default skin
@${LN} -sfh Blue ${STAGEDIR}${PREFIX}/${myDATADIR}/default
.include <bsd.port.post.mk>