- fix build on mips64*

ok dhill@ (MAINTAINER)
This commit is contained in:
jasper 2011-03-13 17:31:25 +00:00
parent ca5e20e14b
commit 817c87e81e
3 changed files with 14 additions and 3 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/03/12 13:54:40 dhill Exp $
# $OpenBSD: Makefile,v 1.2 2011/03/13 17:31:25 jasper Exp $
COMMENT= XML validation library
DISTNAME= xmlsd-0.2
PKGNAME= lib${DISTNAME}
REVISION= 0
CATEGORIES= textproc devel
SHARED_LIBS= xmlsd 0.0
EXTRACT_SUFX= .tgz
@ -23,6 +24,14 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
# See bsd.lib.mk:162
.if ${MACHINE_ARCH:Mmips64*}
EXTRA_CFLAGS= -D__BUILTIN_HACK
PKG_ARGS+= -Dno_mips64=0
.else
PKG_ARGS+= -Dno_mips64=1
.endif
do-configure:
printf "major=${LIBxmlsd_VERSION:R}\nminor=${LIBxmlsd_VERSION:E}\n" \
> ${WRKSRC}/shlib_version

View File

@ -0,0 +1,2 @@
$OpenBSD: PFRAG.no_mips64,v 1.1 2011/03/13 17:31:25 jasper Exp $
lib/libxmlsd_pic.a

View File

@ -1,6 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/03/12 13:54:40 dhill Exp $
@comment $OpenBSD: PLIST,v 1.2 2011/03/13 17:31:25 jasper Exp $
%%SHARED%%
include/xmlsd.h
lib/libxmlsd.a
lib/libxmlsd_p.a
lib/libxmlsd_pic.a
%%no_mips64%%