diff options
author | osa <osa@FreeBSD.org> | 2012-05-30 06:53:29 +0800 |
---|---|---|
committer | osa <osa@FreeBSD.org> | 2012-05-30 06:53:29 +0800 |
commit | 66cc8d5353b17f84c85d03475c6aa0dce3be5fa2 (patch) | |
tree | 8e4d8428b4cdc6e268de8fb51e587ac5eeef4494 | |
parent | 98846c1770e50ae30136dd834565356920980bab (diff) | |
download | freebsd-ports-gnome-66cc8d5353b17f84c85d03475c6aa0dce3be5fa2.tar.gz freebsd-ports-gnome-66cc8d5353b17f84c85d03475c6aa0dce3be5fa2.tar.zst freebsd-ports-gnome-66cc8d5353b17f84c85d03475c6aa0dce3be5fa2.zip |
OptionsNGfy.
-rw-r--r-- | graphics/libraw/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/graphics/libraw/Makefile b/graphics/libraw/Makefile index 580cf51c336a..55dd080dc468 100644 --- a/graphics/libraw/Makefile +++ b/graphics/libraw/Makefile @@ -26,27 +26,29 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-examples --disable-jasper CFLAGS+= -fPIC -OPTIONS= DEMOSAIC_PACK_GPL2 "Enable GPLv2 demosaic pack" off \ - DEMOSAIC_PACK_GPL3 "Enable GPLv3 demosaic pack" off \ - LCMS "Build with LCMS support" on \ - OPTIMIZED_CFLAGS "Enable optimizations (on x86)" off +OPTIONS_DEFINE= DEMOSAIC_PACK_GPL2 DEMOSAIC_PACK_GPL3 LCMS2 OPTIMIZED_CFLAGS +OPTIONS_DEFAULT= LCMS2 + +DEMOSAIC_PACK_GPL2_DESC= Enable GPLv2 demosaic pack +DEMOSAIC_PACK_GPL3_DESC= Enable GPLv3 demosaic pack +OPTIMIZED_CFLAGS_DESC= "Enable optimizations (on x86)" .include <bsd.port.options.mk> -.if defined(WITH_OPTIMIZED_CFLAGS) +.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} .if ${ARCH} == "i386" CFLAGS+= -O3 .endif .endif -.if defined(WITH_LCMS) +.if ${PORT_OPTIONS:MLCMS2} LIB_DEPENDS+= lcms2.2:${PORTSDIR}/graphics/lcms2 CONFIGURE_ARGS+=--enable-lcms .else CONFIGURE_ARGS+=--disable-lcms .endif -.if defined(WITH_DEMOSAIC_PACK_GPL2) +.if ${PORT_OPTIONS:MDEMOSAIC_PACK_GPL2} LICENSE+= GPLv2 DISTFILES+= LibRaw-demosaic-pack-GPL2-${PORTVERSION}.tar.gz CONFIGURE_ARGS+=--enable-demosaic-pack-gpl2=../LibRaw-demosaic-pack-GPL2-${PORTVERSION} @@ -54,7 +56,7 @@ CONFIGURE_ARGS+=--enable-demosaic-pack-gpl2=../LibRaw-demosaic-pack-GPL2-${PORTV CONFIGURE_ARGS+=--disable-demosaic-pack-gpl2 .endif -.if defined(WITH_DEMOSAIC_PACK_GPL3) +.if ${PORT_OPTIONS:MDEMOSAIC_PACK_GPL3) LICENSE+= GPLv3 DISTFILES+= LibRaw-demosaic-pack-GPL3-${PORTVERSION}.tar.gz CONFIGURE_ARGS+=--enable-demosaic-pack-gpl3=../LibRaw-demosaic-pack-GPL3-${PORTVERSION} |