# Created by: "Waitman Gobble" # $FreeBSD$ PORTNAME= dcraw-m PORTVERSION= 9.17 CATEGORIES= graphics MASTER_SITES= https://dx.burplex.com/dcraw-m/ \ http://www.waitman.net/dcraw-m/ MAINTAINER= waitman@waitman.net COMMENT= Modified Decoder for RAW files from digital cameras LIB_DEPENDS= libjasper.so:${PORTSDIR}/graphics/jasper \ libjpeg.so:${PORTSDIR}/graphics/jpeg \ liblcms.so:${PORTSDIR}/graphics/lcms \ libMagickWand.so:${PORTSDIR}/graphics/ImageMagick PLIST_FILES= bin/dcraw-m OPTIONS_DEFINE= OPTIMIZE_O3 OPTIMIZE_O4 OPTIMIZE_O3_DESC= Use O3 with clang (O4 not working) OPTIMIZE_O4_DESC= Use O4 with gcc .include .if ${PORT_OPTIONS:MOPTIMIZE_O3} CFLAGS+= -O3 .else .if ${PORT_OPTIONS:MOPTIMIZE_O4} CFLAGS+= -O4 .endif .endif CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/ImageMagick LDFLAGS+= -L${LOCALBASE}/lib -lm -ljasper -ljpeg -llcms -lMagickWand do-build: cd ${WRKSRC}/ && ${CC} -o ${PORTNAME} ${CFLAGS} ${PORTNAME}.c ${LDFLAGS} do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ .include