2009-05-22 21:47:02 +00:00
|
|
|
# New ports collection makefile for: slim-themes
|
|
|
|
# Date Created: 22 May 2009
|
|
|
|
# Whom: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= slim-themes
|
2010-07-06 07:46:44 +00:00
|
|
|
PORTVERSION= 1.0.1
|
2009-05-22 21:47:02 +00:00
|
|
|
CATEGORIES= x11-themes
|
2010-07-06 07:46:44 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BERLIOS:S/$/:old_themes/g} \
|
|
|
|
http://slim.berlios.de/themes/:new_themes
|
2011-10-08 17:18:13 +00:00
|
|
|
MASTER_SITE_SUBDIR= slim/:old_themes
|
2009-05-22 21:47:02 +00:00
|
|
|
DISTFILES=
|
|
|
|
|
2010-11-27 18:59:51 +00:00
|
|
|
MAINTAINER= rea@FreeBSD.org
|
2009-05-22 21:47:02 +00:00
|
|
|
COMMENT= Theme pack for SLiM login app
|
|
|
|
|
|
|
|
# But that's not all, see below.
|
|
|
|
OPTIONS= ALL_THEMES "Include all themes" on
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
SHAREMODE= 644
|
|
|
|
THEMEDIR_REL= share/slim/themes
|
|
|
|
THEMEDIR= ${PREFIX}/${THEMEDIR_REL}
|
|
|
|
PLIST_SUB+= THEMEDIR=${THEMEDIR_REL}
|
|
|
|
|
2010-07-06 07:46:44 +00:00
|
|
|
# Format is 'variable name%description%archive name%unpacked dir%dest
|
|
|
|
# dir%master site tag'
|
2009-05-22 21:47:02 +00:00
|
|
|
# I am substituting ' ' -> '+' because make in 6.x isn't able to properly
|
|
|
|
# catch quoted strings with spaces. 7.x and 8.x are fine with this, so
|
|
|
|
# once 6.x will be deorbited, we could switch just to spaces.
|
2010-07-06 07:46:44 +00:00
|
|
|
THEMELIST= GENTOO_SIMPLE%"Gentoo+simple+theme"%slim-gentoo-simple.tar.bz2%slim-gentoo-simple%gentoo-simple%old_themes \
|
|
|
|
ARCHLINUX_SIMPLE%"ArchLinux+simple+theme"%slim-archlinux-simple.tar.gz%slim-archlinux-simple%archlinux-simple%old_themes \
|
|
|
|
DEBIAN_MOREBLUE%"Debian+moreblue+theme"%slim-debian-moreblue.tar.bz2%debian-moreblue%debian-moreblue%old_themes \
|
|
|
|
FINGERPRINT%"Fingerprint+theme"%slim-fingerprint.tar.gz%fingerprint%fingerprint%old_themes \
|
|
|
|
FLAT%"Flat+theme"%slim-flat.tar.gz%flat%flat%old_themes \
|
|
|
|
LAKE%"Lake+theme"%slim-lake.tar.gz%lake%lake%old_themes \
|
|
|
|
RAINBOW%"Rainbow+theme"%slim-rainbow.tar.gz%rainbow%rainbow%old_themes \
|
|
|
|
REAR_WINDOW%"Rear+Window+theme"%slim-rear-window.tar.gz%rear-window%rear-window%old_themes \
|
|
|
|
SCOTLAND_ROAD%"Scotland+Road+theme"%slim-scotland-road.tar.gz%scotland-road%scotland-road%old_themes \
|
|
|
|
SUBWAY%"Subway+theme"%slim-subway.tar.gz%subway%subway%old_themes \
|
|
|
|
WAVE%"Wave+theme"%slim-wave.tar.gz%wave%wave%old_themes \
|
|
|
|
LUNAR_LINUX%"Lunar+Linux+theme"%slim-lunar-0.4.tar.bz2%slim-lunar-0.4%lunar%old_themes \
|
|
|
|
ZENWALK%"Zenwalk+theme"%slim-zenwalk.tar.gz%Zenwalk%zenwalk%old_themes \
|
|
|
|
PARALLEL_DIMS%"Parallel+Dimensions+theme"%slim-parallel-dimensions.tar.gz%parallel-dimensions%parallel-dimensions%old_themes \
|
|
|
|
CAPERNOITED%"Capernoited+theme"%slim-capernoited.tar.gz%capernoited%capernoited%old_themes \
|
|
|
|
MINDLOCK%"Mindlock+theme"%slim-mindlock.tar.gz%mindlock%mindlock%old_themes \
|
|
|
|
FLOWER2%"Flower2+theme"%slim-flower2.tar.gz%flower2%flower2%old_themes \
|
|
|
|
FREEBSD%"FreeBSD+theme"%fbsd-slim-theme.tar.bz2%fbsd%fbsd%new_themes \
|
|
|
|
GNEWSENSE%"gNewSense+theme"%slim-gnewsense-1.1.tar.bz2%slim-gnewsense-1.1%gnewsense%new_themes
|
2009-05-22 21:47:02 +00:00
|
|
|
|
|
|
|
# Pollute OPTIONS and DISTFILES. Cool magic ;))
|
|
|
|
# We're using immediate assignment and two variables, because there is
|
|
|
|
# no addition (+=) operator with immediate assignment.
|
|
|
|
|
|
|
|
.for t in ${THEMELIST}
|
|
|
|
n= ${t:C/^([^%]*)%.*$/\\1/1}
|
|
|
|
d= ${t:C/^[^%]*%[^%]*%([^%]*)%.*$/\\1/1}
|
|
|
|
desc= ${t:C/^[^%]*%([^%]*)%.*$/\\1/1:C/\+/ /g}
|
|
|
|
sdir= ${t:C/^[^%]*%[^%]*%[^%]*%([^%]*)%.*$/\\1/1}
|
2010-07-06 07:46:44 +00:00
|
|
|
ddir= ${t:C/^[^%]*%[^%]*%[^%]*%[^%]*%([^%]*)%.*$/\\1/1}
|
|
|
|
mtag= ${t:C/^[^%]*%[^%]*%[^%]*%[^%]*%[^%]*%([^%]*)$/\\1/1}
|
2009-05-22 21:47:02 +00:00
|
|
|
${n}_NAME:= ${n}
|
2010-07-06 07:46:44 +00:00
|
|
|
.if ${mtag} == ""
|
2009-05-22 21:47:02 +00:00
|
|
|
${n}_DIST:= ${d}
|
2010-07-06 07:46:44 +00:00
|
|
|
.else
|
|
|
|
${n}_DIST:= ${d}:${mtag}
|
|
|
|
.endif
|
2009-05-22 21:47:02 +00:00
|
|
|
${n}_SDIR:= ${sdir}
|
|
|
|
${n}_DDIR:= ${ddir}
|
|
|
|
NEWOPTS:= ${OPTIONS} ${n} ${desc} off
|
|
|
|
OPTIONS:= ${NEWOPTS}
|
|
|
|
NEWTHEMES:= ${ALLTHEMES} ${n}
|
|
|
|
ALLTHEMES:= ${NEWTHEMES}
|
|
|
|
.endfor # t in ${THEMELIST}
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.for n in ${ALLTHEMES}
|
|
|
|
.if defined(WITH_ALL_THEMES) || defined(WITH_${n})
|
|
|
|
WITH_${n}= yes
|
|
|
|
NEWDISTFILES:= ${DISTFILES} ${${n}_DIST}
|
|
|
|
DISTFILES:= ${NEWDISTFILES}
|
|
|
|
SEEN_THEMES= yes
|
|
|
|
NEW_PLIST_SUB:= ${PLIST_SUB} ${n}=""
|
|
|
|
PLIST_SUB:= ${NEW_PLIST_SUB}
|
|
|
|
.else
|
|
|
|
NEW_PLIST_SUB:= ${PLIST_SUB} ${n}="@comment "
|
|
|
|
PLIST_SUB:= ${NEW_PLIST_SUB}
|
|
|
|
.endif # defined(WITH_ALL_THEMES) || defined(WITH_${n})
|
|
|
|
.endfor # n in ${THEMELIST}
|
|
|
|
|
|
|
|
.if !defined(SEEN_THEMES)
|
2010-05-02 11:15:53 +00:00
|
|
|
IGNORE= at least one theme must be selected
|
2009-05-22 21:47:02 +00:00
|
|
|
.endif
|
|
|
|
|
2010-05-02 11:15:53 +00:00
|
|
|
.if defined(WITH_PARALLEL_DIMS)
|
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-parallel-dimensions-slim.theme
|
|
|
|
|
2009-05-22 21:47:02 +00:00
|
|
|
post-patch:
|
|
|
|
@${RM} ${WRKSRC}/parallel-dimensions/slim.theme.orig
|
2010-05-02 11:15:53 +00:00
|
|
|
.endif # defined(WITH_PARALLEL_DIMS)
|
2009-05-22 21:47:02 +00:00
|
|
|
|
2010-05-02 11:15:53 +00:00
|
|
|
# Install selected themes. Another regexp voodoo, yay! \o/
|
2009-05-22 21:47:02 +00:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${THEMEDIR}
|
|
|
|
.for n in ${ALLTHEMES}
|
|
|
|
.if defined(WITH_${n})
|
|
|
|
${MKDIR} ${THEMEDIR}/${${n}_DDIR}
|
|
|
|
cd "${WRKSRC}/${${n}_SDIR}" && \
|
|
|
|
${COPYTREE_SHARE} . ${THEMEDIR}/${${n}_DDIR}
|
|
|
|
.endif # defined(WITH_${n})
|
|
|
|
.endfor # t in ${THEMELIST}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|