- make portlint happier

- honor PREFIX in defaults and sample.fvwmrc
This commit is contained in:
Dirk Meyer 2005-10-24 14:25:27 +00:00
parent 03168c5a7b
commit 8da0e27a14
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=146255
3 changed files with 16 additions and 9 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= fvwm
PORTVERSION= 1.24r
PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= ftp://ftp.hpc.uh.edu/pub/fvwm/version-1/ \
ftp://ftp.ics.es.osaka-u.ac.jp/pub/CFAN/sources/1.x/
@ -17,6 +18,7 @@ COMMENT= The fvwm window manager
NO_LATEST_LINK= yes
USE_IMAKE= yes
USE_XPM= yes
USE_REINPLACE= yes
# must overwrite the default from bsd.port.mk
XMKMF= xmkmf
ALL_TARGET= Makefiles all
@ -25,6 +27,11 @@ MAN1= FvwmAudio.1 FvwmAuto.1 FvwmBacker.1 FvwmBanner.1 FvwmClean.1 \
FvwmSaveDesk.1 FvwmScroll.1 FvwmWinList.1 GoodStuff.1 fvwm.1 \
xpmroot.1
pre-configure:
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/configure.h \
${WRKSRC}/sample.fvwmrc/system.fvwmrc
post-install:
@${MKDIR} ${PREFIX}/include/X11/pixmaps
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \

View file

@ -10,10 +10,10 @@
/* Imake command needed to put modules in desired target location */
/* Use the second version if it causes grief */
--- 1,7 ----
! #define FVWMDIR "/usr/X11R6/lib/X11/fvwm"
! #define FVWMDIR "%%PREFIX%%/lib/X11/fvwm"
/* #define FVWMDIR "/local/homes/dsp/nation/modules"*/
! #define FVWM_ICONDIR "/usr/X11R6/include/X11/bitmaps:/usr/X11R6/include/X11/pixmaps"
! #define FVWMRC "/usr/X11R6/lib/X11/fvwm/system.fvwmrc"
! #define FVWM_ICONDIR "%%PREFIX%%/include/X11/bitmaps:%%PREFIX%%/include/X11/pixmaps"
! #define FVWMRC "%%PREFIX%%/lib/X11/fvwm/system.fvwmrc"
/* Imake command needed to put modules in desired target location */
/* Use the second version if it causes grief */
@ -36,7 +36,7 @@
* If you want to install it in a different directory, uncomment and
* edit the first line */
/* #define FVWM_BIN_DIR BINDIR=/local/homes/dsp/nation/bin/4.1.3*/
! #define FVWM_BIN_DIR BINDIR=/usr/X11R6/bin
! #define FVWM_BIN_DIR BINDIR=%%PREFIX%%/bin
/*#define FVWM_BIN_DIR*/
/* Compiler over-ride for Imakefiles */
@ -48,7 +48,7 @@
/***************************************************************************
***************
*** 69,82 ****
* undefine(`include') to fix that one. Some version of m4
* undefine(`include') tofix that one. Some version of m4
* seem to give good error messages, others don't?
***************************************************************************/
! /* #define M4 */

View file

@ -27,9 +27,9 @@
-ModulePath /usr/lib/X11/fvwm
-PixmapPath /usr/include/X11/pixmaps/
-IconPath /usr/include/X11/bitmaps/
+ModulePath /usr/X11R6/lib/X11/fvwm
+PixmapPath /usr/X11R6/include/X11/pixmaps/
+IconPath /usr/X11R6/include/X11/bitmaps/
+ModulePath %%PREFIX%%/lib/X11/fvwm
+PixmapPath %%PREFIX%%/include/X11/pixmaps/
+IconPath %%PREFIX%%/include/X11/bitmaps/
############################################################################
# Set the decoration styles and window options
@ -38,7 +38,7 @@
Function "InitFunction"
Module "I" FvwmBanner
- Exec "I" xpmroot /usr/include/X11/pixmaps/fvwm.xpm &
+ Exec "I" xpmroot /usr/X11R6/include/X11/pixmaps/fvwm.xpm &
+ Exec "I" xpmroot %%PREFIX%%/include/X11/pixmaps/fvwm.xpm &
Module "I" GoodStuff
Exec "I" exec xterm -geometry 80x64+0+0 &
Wait "I" xterm