Skip to content

Commit

Permalink
gdal-lib: Force the use of openjpeg over jasper for JPEG 2000 support
Browse files Browse the repository at this point in the history
Add pkg-config to USE_TOOLS to ensure openjpeg gets detected properly.

See jasper-software/jasper#208

bump PKGREVISION
  • Loading branch information
alarixnia committed Jul 16, 2019
1 parent 50829b9 commit 9a19cdb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 2 additions & 3 deletions geography/gdal-lib/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.114 2019/07/01 04:07:48 ryoon Exp $
# $NetBSD: Makefile,v 1.115 2019/07/16 21:24:47 nia Exp $

PKGREVISION= 3
PKGREVISION= 4
.include "../../geography/gdal-lib/Makefile.common"
PKGNAME= ${DISTNAME:S/gdal/gdal-lib/}

Expand Down Expand Up @@ -35,7 +35,6 @@ CPPFLAGS+= -D__STDC_LIMIT_MACROS
.include "../../devel/zlib/buildlink3.mk"
.include "../../geography/geos/buildlink3.mk"
.include "../../geography/proj/buildlink3.mk"
.include "../../graphics/jasper/buildlink3.mk"
.include "../../graphics/giflib/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"
.include "../../graphics/openjpeg/buildlink3.mk"
Expand Down
8 changes: 6 additions & 2 deletions geography/gdal-lib/Makefile.common
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.5 2019/03/22 14:00:49 gdt Exp $
# $NetBSD: Makefile.common,v 1.6 2019/07/16 21:24:47 nia Exp $
#
# used by geography/gdal-lib/Makefile
# used by geography/py-gdal/Makefile
Expand All @@ -16,7 +16,7 @@ DISTINFO_FILE= ${.CURDIR}/../../geography/gdal-lib/distinfo

CHECK_PORTABILITY_SKIP+= mkbindist.sh

USE_TOOLS+= gmake
USE_TOOLS+= gmake pkg-config
USE_LANGUAGES= c99 c++
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
Expand All @@ -30,3 +30,7 @@ CONFIGURE_ARGS+= --with-webp=${BUILDLINK_PREFIX.libwebp}
CONFIGURE_ARGS+= --with-xerces
CONFIGURE_ARGS+= --with-xerces-inc=${BUILDLINK_PREFIX.xerces-c}/include
CONFIGURE_ARGS+= --with-xerces-lib=-L${BUILDLINK_PREFIX.xerces-c}/lib\ -lxerces-c

# force OpenJPEG for JPEG 2000 support
CONFIGURE_ARGS+= --without-jasper
CONFIGURE_ARGS+= --with-openjpeg
3 changes: 1 addition & 2 deletions geography/gdal-lib/buildlink3.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.52 2019/07/01 04:07:48 ryoon Exp $
# $NetBSD: buildlink3.mk,v 1.53 2019/07/16 21:24:47 nia Exp $

BUILDLINK_TREE+= gdal-lib

Expand All @@ -25,7 +25,6 @@ pkgbase := gdal-lib
.include "../../devel/zlib/buildlink3.mk"
.include "../../geography/geos/buildlink3.mk"
.include "../../geography/proj/buildlink3.mk"
.include "../../graphics/jasper/buildlink3.mk"
.include "../../graphics/giflib/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"
.include "../../graphics/openjpeg/buildlink3.mk"
Expand Down

0 comments on commit 9a19cdb

Please sign in to comment.