From owner-svn-ports-all@FreeBSD.ORG Tue Aug 7 11:48:54 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9915C106564A; Tue, 7 Aug 2012 11:48:54 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 83CE28FC16; Tue, 7 Aug 2012 11:48:54 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q77Bms3w058056; Tue, 7 Aug 2012 11:48:54 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q77BmsC2058053; Tue, 7 Aug 2012 11:48:54 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201208071148.q77BmsC2058053@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Tue, 7 Aug 2012 11:48:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r302235 - head/graphics/dcraw X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2012 11:48:54 -0000 Author: sunpoet Date: Tue Aug 7 11:48:53 2012 New Revision: 302235 URL: http://svn.freebsd.org/changeset/ports/302235 Log: - Update to 9.16 - Add maintainer section - Cosmetic change Modified: head/graphics/dcraw/Makefile (contents, props changed) head/graphics/dcraw/distinfo (contents, props changed) Modified: head/graphics/dcraw/Makefile ============================================================================== --- head/graphics/dcraw/Makefile Tue Aug 7 11:47:26 2012 (r302234) +++ head/graphics/dcraw/Makefile Tue Aug 7 11:48:53 2012 (r302235) @@ -6,7 +6,7 @@ # PORTNAME= dcraw -PORTVERSION= 9.11 +PORTVERSION= 9.16 CATEGORIES= graphics MASTER_SITES= LOCAL/sunpoet @@ -19,23 +19,44 @@ LIB_DEPENDS= jasper:${PORTSDIR}/graphics CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/jasper LDFLAGS+= -L${LOCALBASE}/lib -lm -ljasper -ljpeg -llcms +USE_XZ= yes -MAN1= dcraw.1 -PLIST_FILES= bin/dcraw +MAN1= ${PORTNAME}.1 +PLIST_FILES= bin/${PORTNAME} do-build: - cd ${WRKSRC}/ && ${CC} -o dcraw ${CFLAGS} dcraw.c ${LDFLAGS} + cd ${WRKSRC}/ && ${CC} -o ${PORTNAME} ${CFLAGS} ${PORTNAME}.c ${LDFLAGS} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1/ -make-dist: - @${RM} -rf ${WRKDIR};${MKDIR} ${WRKDIR};cd ${WRKDIR};\ - ${FETCH_CMD} http://cybercom.net/~dcoffin/dcraw/dcraw.c;\ - ${FETCH_CMD} http://cybercom.net/~dcoffin/dcraw/dcraw.1;\ - ver=`grep -o -m1 -E '[2-9]\.[0-9][0-9]' dcraw.c`;\ - ${MKDIR} dcraw-$$ver;mv dcraw.[c1] dcraw-$$ver;\ - ${TAR} cjvf dcraw-$$ver.tar.bz2 dcraw-$$ver +# maintainer section: + +MS_DIFF= ${MS_WRKSRC}/${PORTNAME}.c.diff +MS_VERSION= `${CAT} ${MS_VERSIONFILE}` +MS_VERSIONFILE= ${MS_WRKSRC}/.version +MS_WRKSRC= ${WRKSRC}/tmp +MS_MASTER_SITE= http://www.cybercom.net/~dcoffin/${PORTNAME}/ +MS_DISTFILES= ${PORTNAME}.1 ${PORTNAME}.c + +maketar: do-clean extract + ${MKDIR} ${MS_WRKSRC}/ +.for file in ${MS_DISTFILES} + ${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} ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}/ + cd ${MS_WRKSRC}/ && ${MV} ${MS_DISTFILES} ${PORTNAME}-${MS_VERSION}/ + (${DIFF} -u ${WRKSRC}/${PORTNAME}.c ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}/${PORTNAME}.c > ${MS_DIFF}) || ${TRUE} + if [ -s ${MS_DIFF} ]; then \ + cd ${MS_WRKSRC}/ && ${TAR} -Jcf ${PORTNAME}-${MS_VERSION}.tar.xz ${PORTNAME}-${MS_VERSION}/; \ + ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${DISTDIR}/; \ + ${SED} -i '' -e '/^PORTVERSION=/ s|${PORTVERSION}|'${MS_VERSION}'|; /^PORTREVISION=/d' ${.CURDIR}/Makefile; \ + cd ${.CURDIR}/ && ${MAKE} makesum; \ + ${ECHO_MSG} "*** Update from ${PORTVERSION} to ${MS_VERSION}, diff: ${MS_DIFF} ***"; \ + else \ + ${ECHO_MSG} "*** ${MS_MASTER_SITE}${PORTNAME}.c is unchanged (${PORTVERSION}) ***"; \ + fi .include Modified: head/graphics/dcraw/distinfo ============================================================================== --- head/graphics/dcraw/distinfo Tue Aug 7 11:47:26 2012 (r302234) +++ head/graphics/dcraw/distinfo Tue Aug 7 11:48:53 2012 (r302235) @@ -1,2 +1,2 @@ -SHA256 (dcraw-9.11.tar.gz) = 83d27cf5b2964196544118b324f8ba9d2a13b9bb2e8389a3811c258a7d70e489 -SIZE (dcraw-9.11.tar.gz) = 87576 +SHA256 (dcraw-9.16.tar.xz) = 1712706e00c91fd5ee6e9ba38fb5829f08f6538474e46754b592cc16dfb3bb03 +SIZE (dcraw-9.16.tar.xz) = 74976