summaryrefslogtreecommitdiff
path: root/graphics/libpgf/Makefile
blob: df41bbb59b6091019f4f75f9959e9349c994ba99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $NetBSD: Makefile,v 1.2 2014/09/24 13:30:59 jperkin Exp $

DISTNAME=	libpgf-src-6.14.12
PKGNAME=	${DISTNAME:S/-src//}
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=libpgf/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.libpgf.org/
COMMENT=	Progressive Graphics File (PGF) library
LICENSE=	gnu-lgpl-v2.1

WRKSRC=		${WRKDIR}/libpgf
GNU_CONFIGURE=	yes
USE_TOOLS+=	aclocal autoconf automake pkg-config
USE_LANGUAGES=	c c++
USE_LIBTOOL=	yes

# https://sourceforge.net/p/libpgf/bugs/7/
BUILD_DEPENDS+=	dos2unix-[0-9]*:../../converters/dos2unix

pre-patch:
	${CP} ${WRKSRC}/configure.ac ${WRKSRC}/configure.ac.orig
	${CAT} ${WRKSRC}/configure.ac.orig | dos2unix >${WRKSRC}/configure.ac 

pre-configure:
	${RUN} cd ${WRKSRC} && ./autogen.sh

PKGCONFIG_OVERRIDE+=	libpgf.pc.in

.include "options.mk"

.include "../../mk/bsd.pkg.mk"