pkgsrc/graphics/djvulibre-lib/Makefile.common
rillig b686dd9180 all: migrate several HOMEPAGEs to https
pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
2020-01-18 23:30:43 +00:00

32 lines
1,006 B
Text

# $NetBSD: Makefile.common,v 1.2 2020/01/18 23:32:10 rillig Exp $
DISTNAME= djvulibre-3.5.27
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=djvu/}
HOMEPAGE= https://djvu.sourceforge.net/
COMMENT= Compression library for scanned documents
LICENSE= gnu-gpl-v2
PATCHDIR= ${.CURDIR}/../djvulibre-lib/patches
DISTINFO_FILE= ${.CURDIR}/../djvulibre-lib/distinfo
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake pkg-config
GNU_CONFIGURE= yes
PKGCONFIG_OVERRIDE+= libdjvu/ddjvuapi.pc.in
BUILD_DIRS= libdjvu share
INSTALL_DIRS= libdjvu share
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-[5-9]*-i386) && !empty(PKGSRC_COMPILER:Mgcc)
# The library uses Intel atomic intrinsics which don't work with NetBSD's
# default arch setting of "i386" because eg. cmpxchgl is 486+.
# On NetBSD-5+, i386 is desupported so we can safely assume a 486.
CFLAGS+= -march=i486
.endif
.include "../../graphics/tiff/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"