2012-12-17 14:54:23 +01:00
|
|
|
# $NetBSD: Makefile,v 1.14 2012/12/17 13:54:23 drochner Exp $
|
2006-08-30 19:03:28 +02:00
|
|
|
|
2012-12-17 14:54:23 +01:00
|
|
|
DISTNAME= djvulibre-3.5.25.3
|
2011-02-26 08:27:04 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/-/-lib-/}
|
2006-08-30 19:03:28 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=djvu/}
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2011-02-26 08:27:04 +01:00
|
|
|
HOMEPAGE= http://djvu.sourceforge.net/
|
2006-08-30 19:03:28 +02:00
|
|
|
COMMENT= Compression library for scanned documents
|
2010-08-09 13:05:54 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2006-08-30 19:03:28 +02:00
|
|
|
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
USE_LIBTOOL= yes
|
2009-01-06 19:03:23 +01:00
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
GNU_CONFIGURE= yes
|
2006-08-30 19:03:28 +02:00
|
|
|
|
2012-12-17 14:54:23 +01:00
|
|
|
WRKSRC= ${WRKDIR}/djvulibre-3.5.25
|
2006-08-30 19:03:28 +02:00
|
|
|
PKGCONFIG_OVERRIDE+= libdjvu/ddjvuapi.pc.in
|
|
|
|
BUILD_DIRS= libdjvu
|
|
|
|
INSTALL_DIRS= libdjvu
|
|
|
|
|
2009-02-20 11:52:56 +01:00
|
|
|
.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
|
|
|
|
|
2010-12-23 12:44:24 +01:00
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
2006-08-30 19:03:28 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|