# New ports collection makefile for: mplayer gui skins # Date created: Sat Jan 12 10:59:45 BRST 2002 # Whom: Mario Sergio Fujikawa Ferreira # # $FreeBSD$ # PORTNAME= mplayer PORTVERSION= 1.1.0 CATEGORIES= multimedia MASTER_SITES= http://www.mplayerhq.hu/MPlayer/Skin/:Skin \ http://ftp.lug.udel.edu/MPlayer/Skin/:Skin \ ftp://ftp.mplayerhq.hu/MPlayer/Skin/:Skin \ ftp://ftp.lug.udel.edu/MPlayer/Skin/:Skin \ http://www.stud.uni-karlsruhe.de/~uedc/mplayer/:mini PKGNAMESUFFIX= -skins DISTFILES= default-1.7.tar.bz2:Skin \ AlienMind-1.1.tar.bz2:Skin \ avifile-1.5.tar.bz2:Skin \ BlueHeart-1.4.tar.bz2:Skin \ CornerMP-1.0.tar.bz2:Skin \ CornerMP-aqua-1.0.tar.bz2:Skin \ Cyrus-1.0.tar.bz2:Skin \ gnome-1.1.tar.bz2:Skin \ hayraphon-1.0.tar.bz2:Skin \ hwswskin-1.0.tar.bz2:Skin \ mentalic-1.1.tar.bz2:Skin \ MidnightLove-1.5.tar.bz2:Skin \ neutron-1.4.tar.bz2:Skin \ phony-1.0.tar.bz2:Skin \ plastic-1.1.1.tar.bz2:Skin \ proton-1.1.tar.bz2:Skin \ slim-1.0.tar.bz2:Skin \ trium-1.1.tar.bz2:Skin \ WindowsMediaPlayer6-1.2.tar.bz2:Skin \ xanim-1.5.tar.bz2:Skin \ xine-lcd-1.0.tar.bz2:Skin \ Orange-1.1.tar.bz2:Skin \ mini-0.1.tar.bz2:mini EXTRACT_ONLY= DIST_SUBDIR= mplayer MAINTAINER= riggs@rrr.de COMMENT= Skins for MPlayer's Graphical User Interface (GUI) USE_SUBMAKE= yes USE_BZIP2= yes NO_WRKSUBDIR= yes NO_BUILD= yes PLIST= ${WRKSRC}/pkg-plist SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 myDATADIR= share/${PORTNAME}/Skin # Used by other ports to detect if this is installed SKIN_DETECTION_FILE= ${LOCALBASE}/${myDATADIR}/${PKGNAME} # port style based on apsfilter by Andreas Klemm # # XXX - needs improvement # We could fetch only those skins chosen for installation. # However, this breaks both checksum and makesum targets. # Ideas? .if defined(BATCH) WITH_SKIN_DEFAULT=yes .endif # BATCH .if !defined(BATCH) pre-everything:: @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/choice post-clean: @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc .if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) .include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" .endif .endif # hint: you can now draw the following decisions for batch mode # - WITH_SKIN_ALL install all skins # # Build and install all skins (rather expensive) # .if defined(WITH_SKIN_ALL) WITH_SKIN_DEFAULT=yes WITH_SKIN_ALIENMIND=yes WITH_SKIN_AVIFILE=yes WITH_SKIN_BLUEHEART=yes WITH_SKIN_CORNERMP=yes WITH_SKIN_CORNERMP_AGUA=yes WITH_SKIN_CYRUS=yes WITH_SKIN_GNOME=yes WITH_SKIN_HAYRAPHON=yes WITH_SKIN_HWSW_SKIN=yes WITH_SKIN_MENTALIC=yes WITH_SKIN_MIDNIGHTLOVE=yes WITH_SKIN_NEUTRON=yes WITH_SKIN_PHONY=yes WITH_SKIN_PLASTIC=yes WITH_SKIN_PROTON=yes WITH_SKIN_SLIM=yes WITH_SKIN_TRIUM=yes WITH_SKIN_WINDOWSMEDIAPLAYER6=yes WITH_SKIN_XANIM=yes WITH_SKIN_XINE_LCD=yes WITH_SKIN_ORANGE=yes WITH_SKIN_MINI=yes . endif # WITH_SKIN_ALL # # files to extract # .ifdef(WITH_SKIN_DEFAULT) EXTRACT_ONLY+= default-1.7.tar.bz2 .endif .ifdef(WITH_SKIN_ALIENMIND) EXTRACT_ONLY+= AlienMind-1.1.tar.bz2 .endif .ifdef(WITH_SKIN_AVIFILE) EXTRACT_ONLY+= avifile-1.5.tar.bz2 .endif .ifdef(WITH_SKIN_BLUEHEART) EXTRACT_ONLY+= BlueHeart-1.4.tar.bz2 .endif .ifdef(WITH_SKIN_CORNERMP) EXTRACT_ONLY+= CornerMP-1.0.tar.bz2 .endif .ifdef(WITH_SKIN_CORNERMP_AGUA) EXTRACT_ONLY+= CornerMP-aqua-1.0.tar.bz2 .endif .ifdef(WITH_SKIN_CYRUS) EXTRACT_ONLY+= Cyrus-1.0.tar.bz2 .endif .ifdef(WITH_SKIN_CYRUS) EXTRACT_ONLY+= gnome-1.1.tar.bz2 .endif .ifdef(WITH_SKIN_CYRUS) EXTRACT_ONLY+= hayraphon-1.0.tar.bz2 .endif .ifdef(WITH_SKIN_HWSW_SKIN) EXTRACT_ONLY+= hwswskin-1.0.tar.bz2 .endif .ifdef(WITH_SKIN_MENTALIC) EXTRACT_ONLY+= mentalic-1.1.tar.bz2 .endif .ifdef(WITH_SKIN_MIDNIGHTLOVE) EXTRACT_ONLY+= MidnightLove-1.5.tar.bz2 .endif .ifdef(WITH_SKIN_NEUTRON) EXTRACT_ONLY+= neutron-1.4.tar.bz2 .endif .ifdef(WITH_SKIN_PHONY) EXTRACT_ONLY+= phony-1.0.tar.bz2 .endif .ifdef(WITH_SKIN_PLASTIC) EXTRACT_ONLY+= plastic-1.1.1.tar.bz2 .endif .ifdef(WITH_SKIN_PROTON) EXTRACT_ONLY+= proton-1.1.tar.bz2 .endif .ifdef(WITH_SKIN_SLIM) EXTRACT_ONLY+= slim-1.0.tar.bz2 .endif .ifdef(WITH_SKIN_TRIUM) EXTRACT_ONLY+= trium-1.1.tar.bz2 .endif .ifdef(WITH_SKIN_WINDOWSMEDIAPLAYER6) EXTRACT_ONLY+= WindowsMediaPlayer6-1.2.tar.bz2 .endif .ifdef(WITH_SKIN_XANIM) EXTRACT_ONLY+= xanim-1.5.tar.bz2 .endif .ifdef(WITH_SKIN_XINE_LCD) EXTRACT_ONLY+= xine-lcd-1.0.tar.bz2 .endif .ifdef(WITH_SKIN_ORANGE) EXTRACT_ONLY+= Orange-1.1.tar.bz2 .endif .ifdef(WITH_SKIN_MINI) EXTRACT_ONLY+= mini-0.1.tar.bz2 .endif pre-install: @${TOUCH} ${PLIST} # Automatically create PLIST # creates @dirrm entries # copies file entries do-install: generate-plist # remove temporary dirs' file @${RM} -f ${WRKDIR}/dirs.plist # create target directories @${MKDIR} ${PREFIX}/${myDATADIR} # both anotate and create target directories @for dir in `cd ${WRKDIR} && ${FIND} . -type d ! -name ".*" | ${SORT} -r` ; do \ ${ECHO_CMD} "@dirrm ${myDATADIR}/$${dir#./}" >> ${WRKDIR}/dirs.plist ; \ ${MKDIR} "${PREFIX}/${myDATADIR}/$${dir#./}" ; \ done # anotate holding dir @${ECHO_CMD} '@dirrm ${myDATADIR}' >> ${WRKDIR}/dirs.plist # anotate super dir @${ECHO_CMD} '@unexec rmdir ${myDATADIR:S!Skin$!!} 2>/dev/null || true' >> ${WRKDIR}/dirs.plist # remove temporary files' file @${RM} -f ${WRKDIR}/files.plist # both anotate installed and install files @for file in `cd ${WRKDIR} && ${FIND} . -type f ! -name ".*" | ${SORT}` ; do \ ${ECHO_CMD} "${myDATADIR}/$${file#./}" >> ${WRKDIR}/files.plist ; \ ${INSTALL_DATA} "${WRKDIR}/$${file#./}" ${PREFIX}/${myDATADIR}/$${file#./} ; \ done # add marker file @${CP} /dev/null ${PREFIX}/${myDATADIR}/${PKGNAME} @${ECHO_CMD} '${myDATADIR}/${PKGNAME}' >> ${WRKDIR}/files.plist # add anotations to temporary plist file @${CAT} ${WRKDIR}/files.plist ${WRKDIR}/dirs.plist > ${TMPPLIST} .include