2013-04-06 15:24:18 +02:00
|
|
|
# $NetBSD: Makefile,v 1.30 2013/04/06 13:24:20 rodent Exp $
|
2004-01-04 18:24:06 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# There is no distinfo file because users can specify alternate themes
|
|
|
|
# via the "WINDOWMAKER_THEMES" variable.
|
|
|
|
#
|
2000-12-16 00:25:17 +01:00
|
|
|
|
2003-05-08 16:55:13 +02:00
|
|
|
DISTNAME= wmthemes-0.80.0
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2003-04-26 11:49:35 +02:00
|
|
|
CATEGORIES= x11 wm windowmaker
|
2000-12-16 00:25:17 +01:00
|
|
|
MASTER_SITES= http://download.themes.org/wm/
|
|
|
|
DISTFILES= ${THEME_FILES}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2000-12-16 00:25:17 +01:00
|
|
|
HOMEPAGE= http://wm.themes.org/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= Themes for the window manager WindowMaker
|
2000-12-16 00:25:17 +01:00
|
|
|
|
2002-03-13 18:36:35 +01:00
|
|
|
DEPENDS+= windowmaker>=0.80.0nb1:../../wm/windowmaker
|
2000-12-16 00:25:17 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2000-12-16 00:25:17 +01:00
|
|
|
DIST_SUBDIR= wmthemes
|
|
|
|
|
|
|
|
USE_X11BASE= yes
|
|
|
|
NO_BUILD= yes
|
2004-01-04 18:24:06 +01:00
|
|
|
NO_CHECKSUM= yes
|
2000-12-16 00:25:17 +01:00
|
|
|
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
|
|
THEME_SUBDIRS= Backgrounds IconSets Icons Pixmaps Sounds Styles Themes
|
|
|
|
WM_DATADIR= share/WindowMaker
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-05-08 16:55:13 +02:00
|
|
|
BUILD_DEFS+= WINDOWMAKER_THEMES
|
2000-12-16 00:25:17 +01:00
|
|
|
|
2001-12-19 16:35:40 +01:00
|
|
|
THEME_FILES=
|
2003-05-08 16:55:13 +02:00
|
|
|
.for theme in ${WINDOWMAKER_THEMES}
|
|
|
|
THEME_FILES+= ${theme}.tar.gz
|
2006-07-27 20:48:02 +02:00
|
|
|
SITES.${theme}.tar.gz= http://download.freshmeat.net/themes/${theme:C/-[^-]*$//}/
|
2001-12-19 16:35:40 +01:00
|
|
|
.endfor
|
|
|
|
|
2000-12-16 00:25:17 +01:00
|
|
|
do-install:
|
|
|
|
@${RM} -f ${PLIST_SRC}
|
|
|
|
@${TOUCH} ${PLIST_SRC}
|
2013-04-06 15:24:18 +02:00
|
|
|
.for dir in ${THEME_SUBDIRS}
|
|
|
|
@if [ -d ${WRKSRC}/${dir} ] && [ -n "`ls ${WRKSRC}/${dir}`" ]; then \
|
|
|
|
${ECHO} "Installing files in directory ${dir}."; \
|
|
|
|
cd ${WRKSRC}/${dir}; \
|
|
|
|
for file in *; do \
|
|
|
|
${MKDIR} ${DESTDIR}${PREFIX}/${WM_DATADIR}/${dir}; \
|
|
|
|
${INSTALL_DATA} "$$file" ${DESTDIR}${PREFIX}/${WM_DATADIR}/${dir}; \
|
|
|
|
${ECHO} "${WM_DATADIR}/${dir}/$$file" >>${PLIST_SRC}; \
|
2000-12-16 00:25:17 +01:00
|
|
|
done; \
|
|
|
|
fi
|
|
|
|
.endfor
|
|
|
|
@cd ${WRKSRC}; \
|
2013-04-06 15:24:18 +02:00
|
|
|
for dir in *.themed; do \
|
|
|
|
if [ -d "$$dir" ] && [ -n "`${LS} "$$dir"`" ]; then \
|
|
|
|
${ECHO} "Installing \"`${BASENAME} "$$dir" .themed`\" theme."; \
|
|
|
|
${INSTALL_DATA_DIR} "${DESTDIR}${PREFIX}/${WM_DATADIR}/Themes/$$dir"; \
|
|
|
|
cd "${WRKSRC}/$$dir"; \
|
|
|
|
for file in *; do \
|
|
|
|
${INSTALL_DATA} "$$file" "${DESTDIR}${PREFIX}/${WM_DATADIR}/Themes/$$dir"; \
|
|
|
|
${ECHO} "${WM_DATADIR}/Themes/$$dir/$$file" >>${PLIST_SRC}; \
|
2000-12-16 00:25:17 +01:00
|
|
|
done; \
|
|
|
|
cd ..; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|