git: 5aad1ebd7da4 - main - graphics/dcraw: Cosmetic change

Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Apr 18 07:08:56 UTC 2021


The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5aad1ebd7da4dbd532111738aa05cee5de274348

commit 5aad1ebd7da4dbd532111738aa05cee5de274348
Author:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-04-18 04:56:21 +0000
Commit:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-04-18 05:41:58 +0000

    graphics/dcraw: Cosmetic change
---
 graphics/dcraw/Makefile | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/graphics/dcraw/Makefile b/graphics/dcraw/Makefile
index 8dbed6f35666..145843349776 100644
--- a/graphics/dcraw/Makefile
+++ b/graphics/dcraw/Makefile
@@ -14,29 +14,29 @@ LICENSE=	GPLv2+
 LIB_DEPENDS=	libjasper.so:graphics/jasper \
 		liblcms2.so:graphics/lcms2
 
+USES=		jpeg localbase tar:xz
+
 CPPFLAGS+=	-I${LOCALBASE}/include/jasper
 LIBS+=		-ljasper -ljpeg -llcms2 -lm
-USES=		jpeg localbase tar:xz
 
-PLIST_FILES=	bin/${PORTNAME} \
-		share/man/man1/${PORTNAME}.1.gz
+PLIST_FILES=	bin/dcraw \
+		share/man/man1/dcraw.1.gz
 
 do-build:
-	@cd ${WRKSRC}/ && ${CC} -o ${PORTNAME} ${CPPFLAGS} ${CFLAGS} \
-		${PORTNAME}.c ${LDFLAGS} ${LIBS}
+	@cd ${WRKSRC}/ && ${CC} -o dcraw ${CPPFLAGS} ${CFLAGS} dcraw.c ${LDFLAGS} ${LIBS}
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
-	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1/
+	${INSTALL_PROGRAM} ${WRKSRC}/dcraw ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_MAN} ${WRKSRC}/dcraw.1 ${STAGEDIR}${PREFIX}/share/man/man1/
 
 # maintainer section:
 
-MS_DIFF=	${MS_WRKSRC}/${PORTNAME}.c.diff
+MS_DIFF=	${MS_WRKSRC}/dcraw.c.diff
 MS_VERSION=	`${CAT} ${MS_VERSIONFILE}`
 MS_VERSIONFILE=	${MS_WRKSRC}/.version
 MS_WRKSRC=	${WRKSRC}/tmp
 MS_MASTER_SITE=	https://www.cybercom.net/~dcoffin/dcraw/
-MS_DISTFILES=	${PORTNAME}.1 ${PORTNAME}.c
+MS_DISTFILES=	dcraw.1 dcraw.c
 
 maketar: do-clean extract
 	@${MKDIR} ${MS_WRKSRC}/
@@ -44,17 +44,17 @@ maketar: do-clean extract
 	@${FETCH_CMD} -o ${MS_WRKSRC}/${file} ${MS_MASTER_SITE}${file}
 .endfor
 	@${GREP} '^#define DCRAW_VERSION' ${MS_WRKSRC}/dcraw.c | cut -d'"' -f2 > ${MS_VERSIONFILE}
-	@${MKDIR} -m 755 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}/
-	@cd ${MS_WRKSRC}/ && ${CHMOD} 644 ${MS_DISTFILES} && ${MV} ${MS_DISTFILES} ${PORTNAME}-${MS_VERSION}/
-	@(${DIFF} -u ${WRKSRC}/${PORTNAME}.c ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}/${PORTNAME}.c > ${MS_DIFF}) || ${TRUE}
+	@${MKDIR} -m 755 ${MS_WRKSRC}/dcraw-${MS_VERSION}/
+	@cd ${MS_WRKSRC}/ && ${CHMOD} 644 ${MS_DISTFILES} && ${MV} ${MS_DISTFILES} dcraw-${MS_VERSION}/
+	@(${DIFF} -u ${WRKSRC}/dcraw.c ${MS_WRKSRC}/dcraw-${MS_VERSION}/dcraw.c > ${MS_DIFF}) || ${TRUE}
 	@if [ -s ${MS_DIFF} ]; then \
-		cd ${MS_WRKSRC}/ && ${TAR} -Jcf ${PORTNAME}-${MS_VERSION}.tar.xz ${PORTNAME}-${MS_VERSION}/; \
-		sudo ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${DISTDIR}/; \
+		cd ${MS_WRKSRC}/ && ${TAR} -Jcf dcraw-${MS_VERSION}.tar.xz dcraw-${MS_VERSION}/; \
+		sudo ${INSTALL} -m 644 ${MS_WRKSRC}/dcraw-${MS_VERSION}.tar.xz ${DISTDIR}/; \
 		${SED} -i '' -e '/^PORTVERSION=/ s|${PORTVERSION}|'${MS_VERSION}'|; /^PORTREVISION=/d' ${.CURDIR}/Makefile; \
 		cd ${.CURDIR}/ && ${MAKE_CMD} makesum; \
 		${ECHO_MSG} "*** Update from ${PORTVERSION} to ${MS_VERSION}, diff: ${MS_DIFF} ***"; \
 	else \
-		${ECHO_MSG} "*** ${MS_MASTER_SITE}${PORTNAME}.c is unchanged (${PORTVERSION}) ***"; \
+		${ECHO_MSG} "*** ${MS_MASTER_SITE}dcraw.c is unchanged (${PORTVERSION}) ***"; \
 	fi
 
 .include <bsd.port.mk>


More information about the dev-commits-ports-all mailing list