Use PROPERTIES to check for be/le.
ok jasper@ naddy@
This commit is contained in:
parent
ee654d693d
commit
ec51964fb9
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.33 2012/03/17 22:42:26 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.34 2012/06/04 21:04:42 pascal Exp $
|
||||
|
||||
COMMENT= Pretty Good Privacy 2.6.3ia
|
||||
|
||||
@ -36,16 +36,15 @@ post-extract:
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.arch.mk>
|
||||
|
||||
# Before the build figure out if we are on a big endian machine or not
|
||||
pre-build:
|
||||
@echo "#include <machine/endian.h>" > ${WRKDIR}/.endian.c
|
||||
@echo "BYTE_ORDER" >> ${WRKDIR}/.endian.c
|
||||
@${CC} -E ${WRKDIR}/.endian.c > ${WRKDIR}/.endian.out
|
||||
@if { grep -q 4321 ${WRKDIR}/.endian.out; } then \
|
||||
echo -DHIGHFIRST > ${WRKDIR}/.endian; \
|
||||
else \
|
||||
cp /dev/null ${WRKDIR}/.endian; \
|
||||
fi
|
||||
.if ${PROPERTIES:Mbe}
|
||||
echo -DHIGHFIRST >${WRKDIR}/.endian
|
||||
.else
|
||||
cp /dev/null ${WRKDIR}/.endian
|
||||
.endif
|
||||
|
||||
do-build:
|
||||
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} -f makefile all \
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.51 2012/03/31 11:10:57 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.52 2012/06/04 21:05:36 pascal Exp $
|
||||
|
||||
COMMENT= small and fast window manager
|
||||
|
||||
@ -47,10 +47,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
.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" && \
|
||||
${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "sparc" && \
|
||||
${MACHINE_ARCH} != "sparc64"
|
||||
.if ${PROPERTIES:Mle}
|
||||
CONFIGURE_ARGS+= --enable-gradients
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user