5b5a90256d
Using this new scheme allows only setting the _tag_ or _commit hash_ in GH_TAGNAME and not having to know the hash for a tag. This scheme will download a tarball that has a different checksum than before due to a changed directory name for extraction. The following MASTER_SITES are provided to retain the old checksum and directory structure (that require GH_COMMIT): GH -> GHL GITHUB -> GITHUB_LEGACY Differential Revision: https://reviews.freebsd.org/D748 Submitted by: amdmi3 Reviewed by: mat, swills, antoine, bdrewery With hat: portmgr
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# Created by: "Waitman Gobble" <uzimac@da3m0n8t3r.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dcraw-m
|
|
PORTVERSION= 9.22
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= GHL
|
|
|
|
MAINTAINER= waitman@waitman.net
|
|
COMMENT= Modified Decoder for RAW files from digital cameras
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libjasper.so:${PORTSDIR}/graphics/jasper \
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
liblcms2.so:${PORTSDIR}/graphics/lcms2 \
|
|
libMagickWand-6.so:${PORTSDIR}/graphics/ImageMagick
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= waitman
|
|
GH_PROJECT= dcraw-m
|
|
GH_TAGNAME= ${GH_COMMIT}
|
|
GH_COMMIT= 1392579
|
|
|
|
USES= pkgconfig
|
|
|
|
CFLAGS += -Wall -I${LOCALBASE}/include \
|
|
`MagickWand-config --cflags --cppflags` \
|
|
-DMAGICKCORE_HDRI_ENABLE=0 \
|
|
-DMAGICKCORE_QUANTUM_DEPTH=16
|
|
LDFLAGS += `MagickWand-config --ldflags --libs` -lm -llcms2 -ljpeg \
|
|
-ljasper
|
|
LIBS += -L${LOCALBASE}/lib
|
|
|
|
PLIST_FILES= bin/dcraw-m
|
|
|
|
do-build:
|
|
( cd ${WRKSRC} ; \
|
|
${CC} ${CFLAGS} ${LIBS} ${LDFLAGS} -o ${PORTNAME} ${PORTNAME}.c )
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
.include <bsd.port.mk>
|