aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm/asfiles
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-04-02 11:56:48 +0800
committersteve <steve@FreeBSD.org>1999-04-02 11:56:48 +0800
commit94e0040e3ca00b747795ba0d803422a605a18f2f (patch)
tree31d878fbd5a16fe286713a07af8055c5ac3303eb /x11-fm/asfiles
parent7afd98b7b0423dc22a99c65ebb3ea383636fb13d (diff)
downloadfreebsd-ports-gnome-94e0040e3ca00b747795ba0d803422a605a18f2f.tar.gz
freebsd-ports-gnome-94e0040e3ca00b747795ba0d803422a605a18f2f.tar.zst
freebsd-ports-gnome-94e0040e3ca00b747795ba0d803422a605a18f2f.zip
Notes from submitter:
(1) Add resource file Files so as to install ${PREFIX}/lib/X11/app-defaults/Files (2) PREFIX varialization has been done! PR: 10750 Submitted by: KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
Diffstat (limited to 'x11-fm/asfiles')
-rw-r--r--x11-fm/asfiles/Makefile8
-rw-r--r--x11-fm/asfiles/files/last-patch-aa19
-rw-r--r--x11-fm/asfiles/pkg-install7
-rw-r--r--x11-fm/asfiles/pkg-plist2
-rw-r--r--x11-fm/asfiles/scripts/post-configure7
5 files changed, 42 insertions, 1 deletions
diff --git a/x11-fm/asfiles/Makefile b/x11-fm/asfiles/Makefile
index 76affe0fb6f9..7f4a0e6cb446 100644
--- a/x11-fm/asfiles/Makefile
+++ b/x11-fm/asfiles/Makefile
@@ -3,7 +3,7 @@
# Date created: 17 August 1997
# Whom: lukin@okbmei.msk.su
#
-# $Id: Makefile,v 1.8 1999/01/18 06:43:03 asami Exp $
+# $Id: Makefile,v 1.9 1999/03/15 01:20:22 steve Exp $
#
DISTNAME= ASFiles-1.0
@@ -22,4 +22,10 @@ USE_X_PREFIX= yes
MAN1= files.1
MAN3= regexp.3
+post-install:
+ ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-aa
+ ${INSTALL_DATA} ${WRKSRC}/src/Files.ad ${PREFIX}/lib/X11/app-defaults/
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ ${MV} ${WRKSRC}/src/Files.ad.orig ${WRKSRC}/src/Files.ad
+
.include <bsd.port.mk>
diff --git a/x11-fm/asfiles/files/last-patch-aa b/x11-fm/asfiles/files/last-patch-aa
new file mode 100644
index 000000000000..0518374bec5e
--- /dev/null
+++ b/x11-fm/asfiles/files/last-patch-aa
@@ -0,0 +1,19 @@
+--- src/Files.ad.orig Mon Apr 21 12:55:17 1997
++++ src/Files.ad Sun Mar 21 21:29:33 1999
+@@ -5,13 +5,13 @@
+ !***********************************************************************
+
+ ! Search paths for icon files
+-Files*bitmapPath: /usr/local/include/bitmaps
+-Files*pixmapPath: /usr/local/include/pixmaps:/usr/X11/lib/X11/afterstep/icons
++Files*bitmapPath: %%PREFIX%%/include/bitmaps
++Files*pixmapPath: %%PREFIX%%/include/pixmaps:%%PREFIX%%/include/X11/pixmaps
+ ! A pixmap for the background
+ !Files*icon box*backgroundPixmap: /usr/local/pixmaps/Files_back.xpm
+
+ ! System-wide Configuration file
+-Files*configFile: /usr/local/lib/OffiX/Filesrc
++Files*configFile: %%PREFIX%%/share/OffiX/Filesrc
+
+ ! Double click time in milliseconds
+ Files*doubleClickTime: 300
diff --git a/x11-fm/asfiles/pkg-install b/x11-fm/asfiles/pkg-install
new file mode 100644
index 000000000000..38cb5db7b01e
--- /dev/null
+++ b/x11-fm/asfiles/pkg-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+ADDIR=${PKG_PREFIX}/lib/X11/app-defaults
+
+if [ X"$2" = "XPOST-INSTALL" ]; then
+ perl -pe 's/%%PREFIX%%/$ENV{PKG_PREFIX}/g' ${ADDIR}/Files.ad > ${ADDIR}/Files
+fi
diff --git a/x11-fm/asfiles/pkg-plist b/x11-fm/asfiles/pkg-plist
index 7e8973368348..25da6285fdca 100644
--- a/x11-fm/asfiles/pkg-plist
+++ b/x11-fm/asfiles/pkg-plist
@@ -220,6 +220,8 @@ include/pixmaps/WWW.xpm
include/pixmaps/Workshop.xpm
include/pixmaps/interface.xpm
include/pixmaps/PDFOmni.xpm
+lib/X11/app-defaults/Files.ad
+@unexec rm -rf %B/Files
share/OffiX/FilesMagic
share/OffiX/Filesrc
@dirrm share/OffiX
diff --git a/x11-fm/asfiles/scripts/post-configure b/x11-fm/asfiles/scripts/post-configure
new file mode 100644
index 000000000000..2f50568dc40e
--- /dev/null
+++ b/x11-fm/asfiles/scripts/post-configure
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+dirs=". src src/bitmaps src/pixmaps src/external src/regexp pixmaps bitmaps"
+
+for d in ${dirs}; do
+ perl -pi -e 's@^(prefix[ \t]*=).*$@$1\${PREFIX}@' ${WRKSRC}/${d}/Makefile
+done