aboutsummaryrefslogtreecommitdiff
path: root/x11/xscreensaver-gnome
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-04-15 22:21:27 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-04-15 22:21:27 +0000
commit1189082976a77df32bd75fc407280b17a1f8e789 (patch)
treec075711c3f0b30f530eca6188d380685c11e4d7b /x11/xscreensaver-gnome
parent61f30a9dfcc8d167bd12f0e3e8d5fcf96aed8ac2 (diff)
downloadports-1189082976a77df32bd75fc407280b17a1f8e789.tar.gz
ports-1189082976a77df32bd75fc407280b17a1f8e789.zip
Notes
Diffstat (limited to 'x11/xscreensaver-gnome')
-rw-r--r--x11/xscreensaver-gnome/Makefile5
-rw-r--r--x11/xscreensaver-gnome/pkg-install21
2 files changed, 26 insertions, 0 deletions
diff --git a/x11/xscreensaver-gnome/Makefile b/x11/xscreensaver-gnome/Makefile
index e9d285883b99..d586053fc1c5 100644
--- a/x11/xscreensaver-gnome/Makefile
+++ b/x11/xscreensaver-gnome/Makefile
@@ -71,6 +71,11 @@ post-patch:
@${REINPLACE_CMD} -e 's|malloc[.]h|stdlib.h|g' \
${WRKSRC}/hacks/glx/extrusion.c
+.if !defined(PACKAGE_BUILDING)
+pre-install:
+ @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+.endif
+
post-install:
@${INSTALL_DATA} ${WRKSRC}/utils/images/logo-50.xpm \
${PREFIX}/share/gnome/pixmaps/xscreensaver.xpm
diff --git a/x11/xscreensaver-gnome/pkg-install b/x11/xscreensaver-gnome/pkg-install
new file mode 100644
index 000000000000..453b4b82d4a6
--- /dev/null
+++ b/x11/xscreensaver-gnome/pkg-install
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+if [ -n "${PACKAGE_BUILDING}" ]; then
+ exit 0
+fi
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin:${PATH}
+export PATH
+
+if [ "$2" = "PRE-INSTALL" ]; then
+ if pkg_info | grep "^xscreensaver-[0-9]" >/dev/null 2>&1; then
+ echo ""
+ echo "*********************************************************"
+ echo "You already have the non-gnome xscreensaver installed."
+ echo "Please deinstall it before installing xscreensaver-gnome."
+ echo "*********************************************************"
+ echo ""
+ false
+ fi
+ done
+fi