diff options
author | shattered <shattered@pkgsrc.org> | 2011-05-02 11:53:51 +0000 |
---|---|---|
committer | shattered <shattered@pkgsrc.org> | 2011-05-02 11:53:51 +0000 |
commit | 0449630256581dfe38ac3a303c619454d2a5c482 (patch) | |
tree | 3d29db52a9ae06a80890bccc931c21f88060c5a7 /print/podofo | |
parent | 2abae00dc0f747395cc8e51bc0b205036b0205af (diff) | |
download | pkgsrc-0449630256581dfe38ac3a303c619454d2a5c482.tar.gz |
PR/43054 -- Make Lua support optional.
Diffstat (limited to 'print/podofo')
-rw-r--r-- | print/podofo/Makefile | 8 | ||||
-rw-r--r-- | print/podofo/distinfo | 3 | ||||
-rw-r--r-- | print/podofo/options.mk | 14 | ||||
-rw-r--r-- | print/podofo/patches/patch-ab | 15 |
4 files changed, 35 insertions, 5 deletions
diff --git a/print/podofo/Makefile b/print/podofo/Makefile index 7cbec76d58c..039f1ea5448 100644 --- a/print/podofo/Makefile +++ b/print/podofo/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.5 2010/12/23 11:44:55 dsainty Exp $ +# $NetBSD: Makefile,v 1.6 2011/05/02 11:53:51 shattered Exp $ # DISTNAME= podofo-0.7.0 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=podofo/} @@ -21,8 +21,8 @@ CMAKE_ARGS+= -DFREETYPE_LIB_PATHS:PATH=${BUILDLINK_PREFIX.freetype2}/lib CFLAGS+= -fPIC CXXFLAGS+= -fPIC -# XXX lua support should be optional -.include "../../lang/lua/buildlink3.mk" +.include "options.mk" + # tests-depend on cppunit (for unit tests) .include "../../devel/zlib/buildlink3.mk" .include "../../fonts/fontconfig/buildlink3.mk" diff --git a/print/podofo/distinfo b/print/podofo/distinfo index 88ce4cd780c..f86d507b086 100644 --- a/print/podofo/distinfo +++ b/print/podofo/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1.1.1 2009/10/11 09:41:35 wiz Exp $ +$NetBSD: distinfo,v 1.2 2011/05/02 11:53:51 shattered Exp $ SHA1 (podofo-0.7.0.tar.gz) = bd9862770c99f5790e6be53a57c77c5d4796d841 RMD160 (podofo-0.7.0.tar.gz) = 37721670a706da614b61ec9620fb1ef46aaff4ae Size (podofo-0.7.0.tar.gz) = 1117023 bytes SHA1 (patch-aa) = 7d3bb709d86ad13b21120d41223a4d84c5d9215d +SHA1 (patch-ab) = 1f3284b7721862165941578b3710504f818c60e4 diff --git a/print/podofo/options.mk b/print/podofo/options.mk new file mode 100644 index 00000000000..b4f953e37b8 --- /dev/null +++ b/print/podofo/options.mk @@ -0,0 +1,14 @@ +# $NetBSD: options.mk,v 1.1 2011/05/02 11:53:51 shattered Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.podofo +PKG_SUPPORTED_OPTIONS= lua + +.include "../../mk/bsd.options.mk" + +### +### Lua support +### +.if !empty(PKG_OPTIONS:Mlua) +. include "../../lang/lua/buildlink3.mk" +CMAKE_ARGS+= -DLUA_ENABLED:LUA_ENABLED=true +.endif diff --git a/print/podofo/patches/patch-ab b/print/podofo/patches/patch-ab new file mode 100644 index 00000000000..2096abe22aa --- /dev/null +++ b/print/podofo/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1 2011/05/02 11:53:51 shattered Exp $ + +--- CMakeLists.txt.orig 2008-12-30 12:16:23.000000000 +0000 ++++ CMakeLists.txt +@@ -269,7 +269,9 @@ ELSE(DEFINED JPEG_RUNTIME_COMPATIBLE) + ENDIF(NOT WIN32) + ENDIF(DEFINED JPEG_RUNTIME_COMPATIBLE) + +-FIND_PACKAGE(LUA) ++IF(DEFINED LUA_ENABLED) ++ FIND_PACKAGE(LUA) ++ENDIF(DEFINED LUA_ENABLED) + IF(LUA_FOUND) + # If we have lua, we can build podofoimpose. + MESSAGE("Lua found - PoDoFoImpose will be built with Lua support") |