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>
This commit is contained in:
Steve Price 1999-04-02 03:56:48 +00:00
parent 091a0ef01f
commit 9b68ee7b33
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=17541
5 changed files with 42 additions and 1 deletions

View file

@ -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>

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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