agg: fix build with newer automake. Skip the examples directory. Switch to using autoreconf.diff -r1.11 -r1.12 pkgsrc/graphics/agg/Makefile
(bsiegert)
@@ -1,36 +1,36 @@ | @@ -1,36 +1,36 @@ | |||
1 | # $NetBSD: Makefile,v 1.11 2015/04/25 14:23:07 tnn Exp $ | 1 | # $NetBSD: Makefile,v 1.12 2018/12/14 17:03:04 bsiegert Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= agg-2.5 | 4 | DISTNAME= agg-2.5 | |
5 | PKGREVISION= 4 | 5 | PKGREVISION= 5 | |
6 | CATEGORIES= graphics | 6 | CATEGORIES= graphics | |
7 | MASTER_SITES= http://www.antigrain.com/ | 7 | MASTER_SITES= http://www.antigrain.com/ | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://www.antigrain.com/ | 10 | HOMEPAGE= http://www.antigrain.com/ | |
11 | COMMENT= High Quality Rendering Engine for C++ | 11 | COMMENT= High Quality Rendering Engine for C++ | |
12 | LICENSE= gnu-gpl-v2 | 12 | LICENSE= gnu-gpl-v2 | |
13 | 13 | |||
14 | MAKE_JOBS_SAFE= no | 14 | MAKE_JOBS_SAFE= no | |
15 | USE_TOOLS+= gmake msgfmt pkg-config aclocal autoheader \ | 15 | USE_TOOLS+= gmake msgfmt pkg-config aclocal autoheader \ | |
16 | automake autoconf | 16 | automake autoconf autoreconf | |
17 | USE_LANGUAGES= c c++ | 17 | USE_LANGUAGES= c c++ | |
18 | USE_LIBTOOL= yes | 18 | USE_LIBTOOL= yes | |
19 | GNU_CONFIGURE= yes | 19 | GNU_CONFIGURE= yes | |
20 | 20 | |||
21 | PKGCONFIG_OVERRIDE+= libagg.pc.in | 21 | PKGCONFIG_OVERRIDE+= libagg.pc.in | |
22 | 22 | |||
23 | pre-configure: | 23 | pre-configure: | |
24 | cd ${WRKSRC}; chmod +x autogen.sh; ./autogen.sh | 24 | cd ${WRKSRC}; ${TOOLS_PATH.autoreconf} -vi | |
25 | 25 | |||
26 | .include "../../mk/bsd.prefs.mk" | 26 | .include "../../mk/bsd.prefs.mk" | |
27 | 27 | |||
28 | .if ${X11_TYPE} == "modular" | 28 | .if ${X11_TYPE} == "modular" | |
29 | CONFIGURE_ARGS+= --x-includes=${PREFIX}/include | 29 | CONFIGURE_ARGS+= --x-includes=${PREFIX}/include | |
30 | CONFIGURE_ARGS+= --x-libraries=${PREFIX}/lib | 30 | CONFIGURE_ARGS+= --x-libraries=${PREFIX}/lib | |
31 | .endif | 31 | .endif | |
32 | 32 | |||
33 | .include "../../x11/libX11/buildlink3.mk" | 33 | .include "../../x11/libX11/buildlink3.mk" | |
34 | .include "../../graphics/freetype2/buildlink3.mk" | 34 | .include "../../graphics/freetype2/buildlink3.mk" | |
35 | .include "../../devel/SDL/buildlink3.mk" | 35 | .include "../../devel/SDL/buildlink3.mk" | |
36 | .include "../../mk/bsd.pkg.mk" | 36 | .include "../../mk/bsd.pkg.mk" |
@@ -1,8 +1,9 @@ | @@ -1,8 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.4 2015/11/03 21:33:52 agc Exp $ | 1 | $NetBSD: distinfo,v 1.5 2018/12/14 17:03:04 bsiegert Exp $ | |
2 | 2 | |||
3 | SHA1 (agg-2.5.tar.gz) = 08f23da64da40b90184a0414369f450115cdb328 | 3 | SHA1 (agg-2.5.tar.gz) = 08f23da64da40b90184a0414369f450115cdb328 | |
4 | RMD160 (agg-2.5.tar.gz) = fac24d8ea56ee0a87307189f73c432b07b6d3c50 | 4 | RMD160 (agg-2.5.tar.gz) = fac24d8ea56ee0a87307189f73c432b07b6d3c50 | |
5 | SHA512 (agg-2.5.tar.gz) = e2c79f0bf6da80e16e5b50e69638647224fbe778a42a83d72e9de444b3ea711735177de92bf16134da313b9f75e63eb76bd7b0aaf390059f4d0785454e8a6fcf | 5 | SHA512 (agg-2.5.tar.gz) = e2c79f0bf6da80e16e5b50e69638647224fbe778a42a83d72e9de444b3ea711735177de92bf16134da313b9f75e63eb76bd7b0aaf390059f4d0785454e8a6fcf | |
6 | Size (agg-2.5.tar.gz) = 564313 bytes | 6 | Size (agg-2.5.tar.gz) = 564313 bytes | |
7 | SHA1 (patch-configure.in) = 41f853a7f5e0948ff23674a1069c5725a7b604cb | 7 | SHA1 (patch-Makefile.am) = ccf9219f9d6c74b7f5699548144df3933d770e0a | |
8 | SHA1 (patch-configure.in) = fc9c90e9ab9b9bf1a626b8caae9ba37bd2fc07aa | |||
8 | SHA1 (patch-include_agg__renderer__outline__aa.h) = 157cd8287d171bf67039b80ecce1a5ac8360cea8 | 9 | SHA1 (patch-include_agg__renderer__outline__aa.h) = 157cd8287d171bf67039b80ecce1a5ac8360cea8 |
$NetBSD: patch-Makefile.am,v 1.1 2018/12/14 17:03:04 bsiegert Exp $
Skip examples subdirectory, we do not install examples.
--- Makefile.am.orig 2006-10-09 04:06:36.000000000 +0000
+++ Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = gpc src font_freetype font_win32_tt include examples
+SUBDIRS = gpc src font_freetype font_win32_tt include
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libagg.pc
@@ -1,14 +1,24 @@ | @@ -1,14 +1,24 @@ | |||
1 | $NetBSD: patch-configure.in,v 1.1 2012/05/05 00:55:47 wiz Exp $ | 1 | $NetBSD: patch-configure.in,v 1.2 2018/12/14 17:03:04 bsiegert Exp $ | |
2 | 2 | |||
3 | Remove obsolete macro. Fixes build with automake-1.12. | 3 | Remove obsolete macro. Fixes build with automake-1.12. | |
4 | 4 | |||
5 | --- configure.in.orig 2006-10-09 04:06:36.000000000 +0000 | 5 | --- configure.in.orig 2006-10-09 04:06:36.000000000 +0000 | |
6 | +++ configure.in | 6 | +++ configure.in | |
7 | @@ -8,7 +8,6 @@ dnl Checks for programs. | 7 | @@ -1,14 +1,14 @@ | |
8 | -AC_INIT(src/agg_arc.cpp) # give me a source file, any source file... | |||
9 | +AC_INIT(agg, 2.5.0) | |||
10 | +AC_CONFIG_SRCDIR(src/agg_arc.cpp) # give me a source file, any source file... | |||
11 | AC_CANONICAL_TARGET | |||
12 | AC_CONFIG_HEADERS(include/config.h) | |||
13 | -AM_INIT_AUTOMAKE(agg, 2.5.0) | |||
14 | +AM_INIT_AUTOMAKE(foreign) | |||
15 | ||||
16 | ||||
17 | dnl Checks for programs. | |||
8 | AC_PROG_CC | 18 | AC_PROG_CC | |
9 | AC_PROG_CXX | 19 | AC_PROG_CXX | |
10 | AC_ISC_POSIX | 20 | AC_ISC_POSIX | |
11 | -AM_C_PROTOTYPES | 21 | -AM_C_PROTOTYPES | |
12 | if test "x$U" != "x"; then | 22 | if test "x$U" != "x"; then | |
13 | AC_MSG_ERROR(Compiler not ANSI compliant) | 23 | AC_MSG_ERROR(Compiler not ANSI compliant) | |
14 | fi | 24 | fi |