diff options
author | bapt <bapt@FreeBSD.org> | 2012-06-13 05:42:32 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-06-13 05:42:32 +0800 |
commit | f5eba1acd02cb57a7650fe6c33b912240f6ab8ab (patch) | |
tree | 785d921da1883d2c1df77c5add82a844e2ae090b /graphics/podofo | |
parent | eb2a7f0a6ba691b8505dc2684f14abff26a76009 (diff) | |
download | freebsd-ports-gnome-f5eba1acd02cb57a7650fe6c33b912240f6ab8ab.tar.gz freebsd-ports-gnome-f5eba1acd02cb57a7650fe6c33b912240f6ab8ab.tar.zst freebsd-ports-gnome-f5eba1acd02cb57a7650fe6c33b912240f6ab8ab.zip |
Conver to new options framework
Diffstat (limited to 'graphics/podofo')
-rw-r--r-- | graphics/podofo/Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/graphics/podofo/Makefile b/graphics/podofo/Makefile index f1999cdb0853..b7cf66d6a5c1 100644 --- a/graphics/podofo/Makefile +++ b/graphics/podofo/Makefile @@ -20,10 +20,9 @@ LICENSE_COMB= multi LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \ fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig -OPTIONS= JPEG "Enable JPEG support" on \ - TIFF "Enable TIFF support" on \ - PNG "Enable PNG support" on \ - IMPOSE "Build impose tool (needs Lua)" off +OPTIONS_DEFINE= JPEG TIFF PNG IMPOSE +OPTIONS_DEFAULT= JPEG TIFF PNG +IMPOSE_DESC= Build impose tool (needs Lua) USE_CMAKE= yes CMAKE_ARGS= -DPODOFO_BUILD_SHARED:BOOL=TRUE \ @@ -39,22 +38,22 @@ MAN1= podofobox.1 podofocountpages.1 podofocrop.1 \ .include <bsd.port.options.mk> -.if !defined(WITHOUT_JPEG) +.if ${PORT_OPTIONS:MJPEG} LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg CMAKE_ARGS+= -DWANT_LIBJPEG:BOOL=TRUE .endif -.if !defined(WITHOUT_TIFF) +.if ${PORT_OPTIONS:MTIFF} LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff CMAKE_ARGS+= -DWANT_TIFF:BOOL=TRUE .endif -.if !defined(WITHOUT_PNG) +.if ${PORT_OPTIONS:MPNG} LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png CMAKE_ARGS+= -DWANT_PNG:BOOL=TRUE .endif -.if defined(WITH_IMPOSE) +.if ${PORT_OPTIONS:MIMPOSE} USE_LUA= 5.1 CMAKE_ARGS+= -DWANT_LUA:BOOL=TRUE CPPFLAGS+= -I${LUA_INCDIR} |