diff options
author | pawel <pawel@FreeBSD.org> | 2013-07-11 03:41:30 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2013-07-11 03:41:30 +0800 |
commit | 4682c2c61dcb7a63ae78f7c087ba5d0bda84f154 (patch) | |
tree | f00883f68004a81b9e525ad5cc94de309898b666 /graphics | |
parent | 31dd4fd824aafa89c7f4eb95e23f32974c053110 (diff) | |
download | freebsd-ports-gnome-4682c2c61dcb7a63ae78f7c087ba5d0bda84f154.tar.gz freebsd-ports-gnome-4682c2c61dcb7a63ae78f7c087ba5d0bda84f154.tar.zst freebsd-ports-gnome-4682c2c61dcb7a63ae78f7c087ba5d0bda84f154.zip |
Convert my ports to current standards
- Switch USE_GMAKE to USES=gmake
- Define supported options so users can see them in config dialogs
- Use OPTIONS_SUB for plist alteration
- Convert to options macros for better readability
- Use PORTDOCS where it makes sense
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/podofo/Makefile | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/graphics/podofo/Makefile b/graphics/podofo/Makefile index f1408ee66fbc..d271c711c15d 100644 --- a/graphics/podofo/Makefile +++ b/graphics/podofo/Makefile @@ -16,10 +16,6 @@ LIB_DEPENDS= idn:${PORTSDIR}/dns/libidn \ freetype:${PORTSDIR}/print/freetype2 \ fontconfig:${PORTSDIR}/x11-fonts/fontconfig -OPTIONS_DEFINE= JPEG TIFF PNG IMPOSE -OPTIONS_DEFAULT= JPEG TIFF PNG -IMPOSE_DESC= Build impose tool (needs Lua) - USES= cmake CMAKE_ARGS= -DPODOFO_BUILD_SHARED:BOOL=TRUE \ -DPODOFO_BUILD_STATIC:BOOL=FALSE \ @@ -36,28 +32,27 @@ MAN1= podofobox.1 podofocountpages.1 podofocrop.1 \ podofopages.1 podofopdfinfo.1 podofotxt2pdf.1 \ podofotxtextract.1 podofouncompress.1 podofoxmp.1 -.include <bsd.port.options.mk> +OPTIONS_DEFINE= IMPOSE JPEG PNG TIFF +OPTIONS_DEFAULT= JPEG PNG TIFF +IMPOSE_DESC= Build impose tool (needs Lua) -.if ${PORT_OPTIONS:MJPEG} -LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg -CMAKE_ARGS+= -DWANT_LIBJPEG:BOOL=TRUE -.endif +IMPOSE_CMAKE_ON= -DWANT_LUA:BOOL=TRUE +IMPOSE_CXXFLAGS= -I${LUA_INCDIR} +IMPOSE_LDFLAGS= -L${LUA_LIBDIR} -.if ${PORT_OPTIONS:MTIFF} -LIB_DEPENDS+= tiff:${PORTSDIR}/graphics/tiff -CMAKE_ARGS+= -DWANT_TIFF:BOOL=TRUE -.endif +JPEG_CMAKE_ON= -DWANT_LIBJPEG:BOOL=TRUE +JPEG_LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg -.if ${PORT_OPTIONS:MPNG} -LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png -CMAKE_ARGS+= -DWANT_PNG:BOOL=TRUE -.endif +PNG_CMAKE_ON= -DWANT_PNG:BOOL=TRUE +PNG_LIB_DEPENDS= png15:${PORTSDIR}/graphics/png + +TIFF_CMAKE_ON= -DWANT_TIFF:BOOL=TRUE +TIFF_LIB_DEPENDS= tiff:${PORTSDIR}/graphics/tiff + +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MIMPOSE} USE_LUA= 5.1 -CMAKE_ARGS+= -DWANT_LUA:BOOL=TRUE -CPPFLAGS+= -I${LUA_INCDIR} -LDFLAGS+= -L${LUA_LIBDIR} .endif .include <bsd.port.mk> |