mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# Created by: 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_DEFAULT= 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} ${STAGEDIR}${PREFIX}/share/themes/qnxtheme
|
|
${INSTALL_DATA} ${WRKSRC}/QNX/README ${STAGEDIR}${PREFIX}/share/themes/qnxtheme
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/themes/qnxtheme/gtk
|
|
@(cd ${WRKSRC}/QNX/gtk \
|
|
&& ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/themes/qnxtheme/gtk)
|
|
.if ${PORT_OPTIONS:MGTK2}
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/themes/qnxtheme/gtk-2.0
|
|
@(cd ${WRKSRC}/QNX/gtk-2.0 \
|
|
&& ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/themes/qnxtheme/gtk-2.0)
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|