View | Details | Raw Unified | Return to bug 10750
Collapse All | Expand All

(-)./Makefile (+6 lines)
Lines 21-25 Link Here
21
USE_X_PREFIX=	yes
20
USE_X_PREFIX=	yes
22
MAN1=	files.1
21
MAN1=	files.1
23
MAN3=	regexp.3
22
MAN3=	regexp.3
23
24
post-install:
25
	${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-aa
26
	${INSTALL_DATA} ${WRKSRC}/src/Files.ad ${PREFIX}/lib/X11/app-defaults/
27
	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
28
	${MV} ${WRKSRC}/src/Files.ad.orig ${WRKSRC}/src/Files.ad
24
29
25
.include <bsd.port.mk>
30
.include <bsd.port.mk>
(-)./files/patch-aa (+19 lines)
Line 0 Link Here
1
--- src/Files.ad.orig	Mon Apr 21 12:55:17 1997
2
+++ src/Files.ad	Sun Mar 21 21:29:33 1999
3
@@ -5,13 +5,13 @@
4
 !***********************************************************************
5
 
6
 ! Search paths for icon files
7
-Files*bitmapPath: /usr/local/include/bitmaps
8
-Files*pixmapPath: /usr/local/include/pixmaps:/usr/X11/lib/X11/afterstep/icons
9
+Files*bitmapPath: %%PREFIX%%/include/bitmaps
10
+Files*pixmapPath: %%PREFIX%%/include/pixmaps:%%PREFIX%%/include/X11/pixmaps
11
 ! A pixmap for the background
12
 !Files*icon box*backgroundPixmap: /usr/local/pixmaps/Files_back.xpm
13
 
14
 ! System-wide Configuration file 
15
-Files*configFile: /usr/local/lib/OffiX/Filesrc
16
+Files*configFile: %%PREFIX%%/share/OffiX/Filesrc
17
 
18
 ! Double click time in milliseconds
19
 Files*doubleClickTime:		300
(-)./pkg/INSTALL (+7 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
ADDIR=${PKG_PREFIX}/lib/X11/app-defaults
4
5
if [ X"$2" = "XPOST-INSTALL" ]; then
6
    perl -pe 's/%%PREFIX%%/$ENV{PKG_PREFIX}/g' ${ADDIR}/Files.ad > ${ADDIR}/Files
7
fi
(-)./pkg/PLIST (+2 lines)
Lines 220-225 Link Here
220
include/pixmaps/Workshop.xpm
220
include/pixmaps/Workshop.xpm
221
include/pixmaps/interface.xpm
221
include/pixmaps/interface.xpm
222
include/pixmaps/PDFOmni.xpm
222
include/pixmaps/PDFOmni.xpm
223
lib/X11/app-defaults/Files.ad
224
@unexec rm -rf %B/Files
223
share/OffiX/FilesMagic
225
share/OffiX/FilesMagic
224
share/OffiX/Filesrc
226
share/OffiX/Filesrc
225
@dirrm share/OffiX
227
@dirrm share/OffiX
(-)./scripts/post-configure (+7 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
dirs=". src src/bitmaps src/pixmaps src/external src/regexp pixmaps bitmaps"
4
5
for d in ${dirs}; do
6
    perl -pi -e 's@^(prefix[ \t]*=).*$@$1\${PREFIX}@' ${WRKSRC}/${d}/Makefile
7
done

Return to bug 10750