Do not redefine "deprecated". It is not used anywhere in IceWM and

breaks the expansion of _X_DEPRECATED.

Use bsd.port.arch.mk.
This commit is contained in:
naddy 2012-03-31 11:10:57 +00:00
parent 3721be5ee4
commit 6b17507454
2 changed files with 32 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.50 2010/12/22 14:53:26 espie Exp $
# $OpenBSD: Makefile,v 1.51 2012/03/31 11:10:57 naddy Exp $
COMMENT= small and fast window manager
@ -38,6 +38,14 @@ CONFIGURE_ARGS= --with-docdir=${PREFIX}/share/doc \
--enable-corefonts \
--enable-i18n
# XXX TODO
#CONFIGURE_ARGS+=--with-icesound=sndio
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.arch.mk>
# XXX rendering bug on big-endian systems
.if ${MACHINE_ARCH} != "hppa" && ${MACHINE_ARCH} != "m68k" && \
${MACHINE_ARCH} != "m88k" && ${MACHINE_ARCH} != "mips64" && \
@ -46,19 +54,11 @@ ${MACHINE_ARCH} != "sparc64"
CONFIGURE_ARGS+= --enable-gradients
.endif
# XXX TODO
#CONFIGURE_ARGS+=--with-icesound=sndio
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if ${PROPERTIES:Mapm}
PATCH_LIST= patch-* apm-*
.endif
pre-configure:
${SUBST_CMD} ${WRKSRC}/doc/icewm-7.html
.include <bsd.port.mk>
.for m in ${MACHINE_ARCH} ${MACHINE}
.if ${APM_ARCHS:L:M$m}
PATCH_LIST= patch-* apm-*
.endif
.endfor

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-src_base_h,v 1.1 2012/03/31 11:10:57 naddy Exp $
Do not redefine "deprecated". It is not used anywhere in IceWM and
breaks the expansion of _X_DEPRECATED in <X11/Xlib.h>.
--- src/base.h.orig Sat Mar 31 03:07:20 2012
+++ src/base.h Sat Mar 31 03:07:33 2012
@@ -1,12 +1,6 @@
#ifndef __BASE_H
#define __BASE_H
-#if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3
-#define deprecated __attribute__((deprecated))
-#else
-#define deprecated
-#endif
-
/*** Atomar Data Types ********************************************************/
#ifdef NEED_BOOL