aboutsummaryrefslogtreecommitdiffstats
path: root/x11-themes/xenophilia/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-themes/xenophilia/Makefile')
-rw-r--r--x11-themes/xenophilia/Makefile42
1 files changed, 34 insertions, 8 deletions
diff --git a/x11-themes/xenophilia/Makefile b/x11-themes/xenophilia/Makefile
index 476c1b32827b..bf02310542aa 100644
--- a/x11-themes/xenophilia/Makefile
+++ b/x11-themes/xenophilia/Makefile
@@ -6,21 +6,47 @@
#
PORTNAME= xenophilia
-PORTVERSION= 0.7
-PORTREVISION= 1
+PORTVERSION= 0.8
CATEGORIES= x11-themes
MASTER_SITES= ${MASTER_SITE_THEMES}
-MASTER_SITE_SUBDIR= xenophilia
-DISTNAME= xenophilia-1.2.x
+MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
-COMMENT= Xenophilia theme module to make GTK+ look nicer
+COMMENT= A theme module to make GTK+ look nicer
-WRKSRC= ${WRKDIR}/Xenophilia-0.7
+WRKSRC= ${WRKDIR}/Xenophilia-${PORTVERSION}
USE_X_PREFIX= yes
USE_GNOME= gtk12
-ALL_TARGET= # empty
-MAKE_ENV= GTK-CONFIG="${GTK_CONFIG}"
+USE_REINPLACE= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+CFLAGS+= -DG_DISABLE_CHECKS -fPIC
+
+ENGINES_DIR= ${PREFIX}/lib/gtk/themes/engines
+THEMES_DIR= ${PREFIX}/share/themes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's| make -C| $$(MAKE) -C|g' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's|\.@VERSION@||g ; \
+ s|\.@MAJOR@||g' ${WRKSRC}/gtk-src/Makefile.in
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/gtk-src/libxeno.so ${ENGINES_DIR}
+ cd ${WRKSRC}/themes && ${FIND} "Xeno Buffed" | \
+ ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${THEMES_DIR}
+ cd ${WRKSRC}/themes && ${FIND} "Xeno Gradient" | \
+ ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${THEMES_DIR}
+ cd ${WRKSRC}/themes && ${FIND} "Xeno Helix" | \
+ ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${THEMES_DIR}
+ cd ${WRKSRC}/themes && ${FIND} "Xeno Perkele" | \
+ ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${THEMES_DIR}
+ cd ${WRKSRC}/themes && ${FIND} "Xeno Thin" | \
+ ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${THEMES_DIR}
+ cd ${WRKSRC}/themes && ${FIND} "Xenophilia" | \
+ ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${THEMES_DIR}
.include <bsd.port.mk>