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:
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
|
@ -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>
|
||||
|
|
19
x11-fm/asfiles/files/last-patch-aa
Normal file
19
x11-fm/asfiles/files/last-patch-aa
Normal 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
|
7
x11-fm/asfiles/pkg-install
Normal file
7
x11-fm/asfiles/pkg-install
Normal 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
|
|
@ -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
|
||||
|
|
7
x11-fm/asfiles/scripts/post-configure
Normal file
7
x11-fm/asfiles/scripts/post-configure
Normal 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
|
Loading…
Reference in a new issue