1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/graphics/dcraw-m/Makefile
Koop Mast cf906e5cf2 Update to 6.8.9-3 [1][3].
Use USES=compiler:openmp for the OPENMP option[2]
Ditch the use of perl for patching etc [4] and silence perl threaded check [6]
-delay option spurious message should be fixed [5]

JASPER option was replace by JPEG2000 for JP2k support.
Put 16BIT_PIXEL and HDRI option separate option block. These options change
  the library name, so the user needs to take this into consideration.
Use new LIB_DEPENDS syntax.
Use @sample for config files.
Sprinkle some USES=pkgconfig for some ports, since we don't pull it in
  anymore at run-time.

PR:		185462 [1]
PR:		187548 [2]
PR:		182793 [3]
PR:		181746 [4]
PR:		176047 [5]
PR:		190814 [6]
Submitted by:	c.petrik.sosa@gmail.com [1]
		Matthieu Volat <mazhe@alkumuna.eu> [2]
		free.bsd@webstyle.ch [3]
		andrnils@gmail.com [4]
		rfg@tristatelogic.com [5]
		Michelle Sullivan <michelle@sorbs.net> [6]
Approved by:	portmgr (blanket) (for NO_STAGED ports)
2014-06-17 20:05:30 +00:00

48 lines
1.2 KiB
Makefile

# Created by: "Waitman Gobble" <uzimac@da3m0n8t3r.com>
# $FreeBSD$
PORTNAME= dcraw-m
PORTVERSION= 9.17
PORTREVISION= 1
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
BROKEN= Unfetchable
LIB_DEPENDS= libjasper.so:${PORTSDIR}/graphics/jasper \
libjpeg.so:${PORTSDIR}/graphics/jpeg \
liblcms.so:${PORTSDIR}/graphics/lcms \
libMagickWand-6.Q*.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 <bsd.port.options.mk>
.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-6
LDFLAGS+= -L${LOCALBASE}/lib -lm -ljasper -ljpeg -llcms -lMagickWand-6.Q16
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 <bsd.port.mk>