- add apm support _only_ for archs supporting it ; no need to bump

PKGNAME as for apm capable archs, nothing changes and for the others, it
didn't build

noticed by sturm@, thanks!

ok sturm@
This commit is contained in:
ajacoutot 2006-11-10 09:31:28 +00:00
parent 021b3ea7ac
commit 39737f0c6c
3 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.24 2006/11/04 17:59:19 fgsch Exp $
# $OpenBSD: Makefile,v 1.25 2006/11/10 09:31:28 ajacoutot Exp $
COMMENT= "small, fast window manager"
@ -38,6 +38,11 @@ CONFIGURE_ARGS= --with-imlib=${PREFIX}/bin \
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "i386" \
|| ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc"
PATCH_LIST+= apm-patch-src_aapm_cc apm-patch-src_aapm_h
.endif
post-install:
@perl -pi -e 's:%%SYSCONFDIR%%:${SYSCONFDIR}:g;' \
-e 's:%%PREFIX%%:${TRUEPREFIX}:g;' \

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-src_aapm_cc,v 1.1 2006/11/04 17:59:19 fgsch Exp $
$OpenBSD: apm-patch-src_aapm_cc,v 1.1 2006/11/10 09:31:28 ajacoutot Exp $
--- src/aapm.cc.orig Tue Oct 24 12:38:18 2006
+++ src/aapm.cc Tue Oct 24 12:39:12 2006
@@ -34,7 +34,7 @@

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-src_aapm_h,v 1.1 2006/11/04 17:59:19 fgsch Exp $
$OpenBSD: apm-patch-src_aapm_h,v 1.1 2006/11/10 09:31:28 ajacoutot Exp $
--- src/aapm.h.orig Tue Oct 24 12:59:26 2006
+++ src/aapm.h Tue Oct 24 12:59:34 2006
@@ -1,5 +1,5 @@