mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
# New ports collection makefile for: qnxtheme
|
|
# Date created: Thu Jan 30 13:27:44 CET 2003
|
|
# Whom: Miguel Mendez <flynn@energyhq.homeip.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gtk-qnxtheme
|
|
PORTVERSION= 0.1
|
|
PORTREVISION= 5
|
|
CATEGORIES= x11-themes
|
|
MASTER_SITES= http://www.gnome-look.org/CONTENT/content-files/
|
|
DISTNAME= 3414-qnxtheme-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= QNX-inspired theme for GTK1 and GTK2
|
|
|
|
OPTIONS_DEFINE= GTK2
|
|
OPTIONS_DEFALT= GTK2
|
|
GTK2_DESC= Build the GTK2 theme as well
|
|
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
|
|
WANT_GNOME= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MGTK2}
|
|
USE_GNOME= gtk20
|
|
PLIST_SUB+= GTK2=""
|
|
.else
|
|
PLIST_SUB+= GTK2="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
.for file in gtk/gtkrc gtk-2.0/gtkrc
|
|
@${REINPLACE_CMD} -i "" -e \
|
|
's|/usr/share|${LOCALBASE}/share|g ; \
|
|
s|themes/QNX|themes/qnxtheme|g' ${WRKSRC}/QNX/${file}
|
|
.endfor
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/share/themes/qnxtheme
|
|
${INSTALL_DATA} ${WRKSRC}/QNX/README ${PREFIX}/share/themes/qnxtheme
|
|
@${MKDIR} ${PREFIX}/share/themes/qnxtheme/gtk
|
|
@(cd ${WRKSRC}/QNX/gtk \
|
|
&& ${COPYTREE_SHARE} . ${PREFIX}/share/themes/qnxtheme/gtk)
|
|
.if ${PORT_OPTIONS:MGTK2}
|
|
@${MKDIR} ${PREFIX}/share/themes/qnxtheme/gtk-2.0
|
|
@(cd ${WRKSRC}/QNX/gtk-2.0 \
|
|
&& ${COPYTREE_SHARE} . ${PREFIX}/share/themes/qnxtheme/gtk-2.0)
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|