New package: agg-2.5.

This commit is contained in:
Juan RP 2013-05-06 20:57:01 +02:00
parent 48206dae23
commit 5d3b350040
5 changed files with 96 additions and 0 deletions

View file

@ -1242,3 +1242,4 @@ libcaca.so.0 libcaca-0.99.beta18_3
libunwind.so.8 libunwind-1.1_1
libmicrohttpd.so.10 libmicrohttpd-0.9.26_1
libgit2.so.0 libgit2-0.18.0_1
libagg.so.2 agg-2.5_1

1
srcpkgs/agg-devel Symbolic link
View file

@ -0,0 +1 @@
agg

View file

@ -0,0 +1,48 @@
--- font_freetype/Makefile.am 2005-10-18 11:45:40.000000000 +0100
+++ font_freetype/Makefile.am 2006-07-10 15:11:55.000000000 +0100
@@ -4,8 +4,9 @@
agginclude_HEADERS = agg_font_freetype.h
lib_LTLIBRARIES = libaggfontfreetype.la
-libaggfontfreetype_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ @FREETYPE_LIBS@
+libaggfontfreetype_la_LDFLAGS = -version-info @AGG_LIB_VERSION@
libaggfontfreetype_la_SOURCES = agg_font_freetype.cpp
libaggfontfreetype_la_CXXFLAGS = -I$(top_srcdir)/include @FREETYPE_CFLAGS@
+libaggfontfreetype_la_LIBADD = ../src/libagg.la @FREETYPE_LIBS@
endif
--- src/platform/sdl/Makefile.am 2005-10-17 23:49:35.000000000 +0100
+++ src/platform/sdl/Makefile.am 2006-07-10 15:11:55.000000000 +0100
@@ -5,6 +5,6 @@
libaggplatformsdl_la_LDFLAGS = -version-info @AGG_LIB_VERSION@
libaggplatformsdl_la_SOURCES = agg_platform_support.cpp
libaggplatformsdl_la_CXXFLAGS = -I$(top_srcdir)/include @SDL_CFLAGS@
-libaggplatformsdl_la_LIBADD = @SDL_LIBS@
+libaggplatformsdl_la_LIBADD = ../../libagg.la @SDL_LIBS@
endif
--- configure.in 2006-10-09 05:06:36.000000000 +0100
+++ configure.in 2007-01-07 14:07:39.000000000 +0000
@@ -122,7 +122,8 @@
fi
AM_CONDITIONAL(ENABLE_X11,[test x$no_x = x -a xno != x$enable_platform -a x$win32_host != xyes])
AC_SUBST(x_includes)
-AC_SUBST(x_libraries)
+test -n "$x_libraries" && X_LDFLAGS="-L$x_libraries"
+AC_SUBST(X_LDFLAGS)
dnl ###############################################
dnl Settung up library version
--- src/platform/X11/Makefile.am 2006-12-11 00:59:45.000000000 +0000
+++ src/platform/X11/Makefile.am 2007-01-07 14:07:39.000000000 +0000
@@ -1,8 +1,8 @@
if ENABLE_X11
lib_LTLIBRARIES = libaggplatformX11.la
-libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ -L@x_libraries@
+libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ @X_LDFLAGS@
libaggplatformX11_la_SOURCES = agg_platform_support.cpp
libaggplatformX11_la_CXXFLAGS = -I$(top_srcdir)/include -I@x_includes@
-libaggplatformX11_la_LIBADD = -lX11
+libaggplatformX11_la_LIBADD = ../../libagg.la -lX11
endif

View file

@ -0,0 +1,10 @@
--- libagg.pc.in.orig 2007-01-07 13:58:28.000000000 +0000
+++ libagg.pc.in 2007-01-07 14:02:40.000000000 +0000
@@ -6,5 +6,6 @@
Name: libagg
Description: Anti Grain Geometry - A High Quality Rendering Engine for C++
Version: @VERSION@
-Libs: -L${libdir} -Wl,-rpath,${exec_prefix}/lib -lagg
+Requires.private: freetype2
+Libs: -L${libdir} -lagg
Cflags: -I${includedir}

36
srcpkgs/agg/template Normal file
View file

@ -0,0 +1,36 @@
# Template file for 'agg'
pkgname=agg
version=2.5
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config automake libtool gettext-devel"
makedepends="freetype-devel SDL-devel"
short_desc="A High Quality Rendering Engine for C++"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.antigrain.com/"
license="GPL-2"
distfiles="http://www.antigrain.com/agg-${version}.tar.gz"
checksum=ab1edc54cc32ba51a62ff120d501eecd55fceeedf869b9354e7e13812289911f
pre_configure() {
sed -e '/AM_C_PROTOTYPES/d' -i configure.in
touch NEWS README AUTHORS
autoreconf -fi
}
agg-devel_package() {
depends="freetype-devel agg>=$version"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove usr/share
}
}
agg_package() {
pkg_install() {
vmove usr
}
}