- fix build on mips64

This commit is contained in:
jasper 2010-04-12 13:27:43 +00:00
parent 6d10bb1b49
commit f170b211ec
3 changed files with 13 additions and 4 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.4 2010/01/23 10:29:45 landry Exp $
# $OpenBSD: Makefile,v 1.5 2010/04/12 13:27:43 jasper Exp $
COMMENT= shapefile manipulation library
DISTNAME= shapelib-1.2.10
PKGNAME= ${DISTNAME}p0
PKGNAME= ${DISTNAME}p1
SHARED_LIBS= shp 1.2
CATEGORIES= devel
@ -21,6 +21,13 @@ MAKE_ENV= SHLIB_MAJOR=${LIBshp_VERSION:R} \
SHLIB_MINOR=${LIBshp_VERSION:E}
FAKE_FLAGS= LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
# See bsd.lib.mk:162
.if ${MACHINE_ARCH:Mmips64*}
PKG_ARGS+= -Dno_mips64=0
.else
PKG_ARGS+= -Dno_mips64=1
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/libshp
${INSTALL_DATA} ${WRKSRC}/shapefil.h ${PREFIX}/include/libshp

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.no_mips64,v 1.1 2010/04/12 13:27:43 jasper Exp $
lib/libshp_pic.a

View File

@ -1,7 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/10/08 16:57:08 jasper Exp $
@comment $OpenBSD: PLIST,v 1.2 2010/04/12 13:27:43 jasper Exp $
%%SHARED%%
%%no_mips64%%
include/libshp/
include/libshp/shapefil.h
lib/libshp.a
lib/libshp_p.a
lib/libshp_pic.a