aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/fvwm95-i18n
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-06-06 16:05:13 +0800
committerpav <pav@FreeBSD.org>2006-06-06 16:05:13 +0800
commit99b739bc5dd0b4a66396210220a94b2b72d8cf94 (patch)
treedc0f88d67dd1c84f33a4b778dc5cc85d3dc441cc /x11-wm/fvwm95-i18n
parentd3aa18263d9baeceef25b1d15b1dcfb617d64608 (diff)
downloadfreebsd-ports-gnome-99b739bc5dd0b4a66396210220a94b2b72d8cf94.tar.gz
freebsd-ports-gnome-99b739bc5dd0b4a66396210220a94b2b72d8cf94.tar.zst
freebsd-ports-gnome-99b739bc5dd0b4a66396210220a94b2b72d8cf94.zip
- Fix WITH_APM build
PR: ports/98407 Submitted by: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> - Mark WITH_APM only for i386 arch
Diffstat (limited to 'x11-wm/fvwm95-i18n')
-rw-r--r--x11-wm/fvwm95-i18n/Makefile5
-rw-r--r--x11-wm/fvwm95-i18n/files/patch-apmpatch-apmpatch11
2 files changed, 16 insertions, 0 deletions
diff --git a/x11-wm/fvwm95-i18n/Makefile b/x11-wm/fvwm95-i18n/Makefile
index 46599ffbbb35..1e8b6a256c9a 100644
--- a/x11-wm/fvwm95-i18n/Makefile
+++ b/x11-wm/fvwm95-i18n/Makefile
@@ -41,6 +41,11 @@ MAN1= fvwm95.1 xpmroot.1 FvwmAudio.1 FvwmAuto.1 FvwmBacker.1 FvwmBanner.1 \
SAMPLEDIR= ${PREFIX}/share/examples/fvwm95
KITDIR= ${WRKDIR}/${PKGNAME}-portKit
+.if defined(WITH_APM)
+ONLY_FOR_ARCHS= i386
+ONLY_FOR_ARCHS_REASON= apm.h is only in i386 system
+.endif
+
post-extract:
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
${DISTDIR}/fvwm95-2.0.43a-FreeBSD.apmpatch.tar.gz \
diff --git a/x11-wm/fvwm95-i18n/files/patch-apmpatch-apmpatch b/x11-wm/fvwm95-i18n/files/patch-apmpatch-apmpatch
new file mode 100644
index 000000000000..d7ad251ee13e
--- /dev/null
+++ b/x11-wm/fvwm95-i18n/files/patch-apmpatch-apmpatch
@@ -0,0 +1,11 @@
+--- ../apmpatch/fvwm95-2.0.43a-Autoconf.I18N.apmpatch.orig Wed May 7 01:33:04 1997
++++ ../apmpatch/fvwm95-2.0.43a-Autoconf.I18N.apmpatch Sat Jun 3 07:02:44 2006
+@@ -62,7 +62,7 @@
+ +int ShowBatteryStatus = False, ShowBatteryStatusP = False;
+ +char *BattFore = "NavyBlue", *BattFore2 = "Gold";
+ +unsigned long battc_fore, battc_fore2, battc_red, battc_white;
+-+struct apm_info prev_ap;
+++struct apm_info prev_ap; void CreateBatteryWindow();
+ +#else
+ int fontheight, clock_width;
+ +#endif /* APM */