From owner-svn-ports-all@FreeBSD.ORG Sun Nov 17 10:32:52 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3EA0B8E3; Sun, 17 Nov 2013 10:32:52 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2E4E925C6; Sun, 17 Nov 2013 10:32:52 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAHAWqkc044378; Sun, 17 Nov 2013 10:32:52 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAHAWqVL044377; Sun, 17 Nov 2013 10:32:52 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201311171032.rAHAWqVL044377@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Sun, 17 Nov 2013 10:32:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334070 - head/graphics/ming X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.16 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: Sun, 17 Nov 2013 10:32:52 -0000 Author: sunpoet Date: Sun Nov 17 10:32:51 2013 New Revision: 334070 URL: http://svnweb.freebsd.org/changeset/ports/334070 Log: - Add LICENSE - Convert to new LIB_DEPENDS format - Strip shared library - Fix shebang - Use CONFLICTS_INSTALL instead of CONFLICTS - Add SLAVEDIRS - Support STAGEDIR Modified: head/graphics/ming/Makefile Modified: head/graphics/ming/Makefile ============================================================================== --- head/graphics/ming/Makefile Sun Nov 17 10:27:14 2013 (r334069) +++ head/graphics/ming/Makefile Sun Nov 17 10:32:51 2013 (r334070) @@ -10,18 +10,21 @@ MASTER_SITES= SF/${PORTNAME}/Releases/ MAINTAINER= sunpoet@FreeBSD.org COMMENT= Flash 4/5 movie output library with many languages support -LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2 \ - gif:${PORTSDIR}/graphics/giflib \ - png15:${PORTSDIR}/graphics/png +LICENSE= GPLv2 LGPL21 +LICENSE_COMB= multi + +LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \ + libgif.so:${PORTSDIR}/graphics/giflib \ + libpng15.so:${PORTSDIR}/graphics/png + +CONFLICTS_INSTALL= ja-ming-[0-9]* .if defined(SLAVEPORT) -LIB_DEPENDS+= ming:${PORTSDIR}/graphics/ming +LIB_DEPENDS+= libming.so:${PORTSDIR}/graphics/ming .else OPTIONS_DEFINE= DOCS .endif -CONFLICTS= ja-ming-[0-9]* - CFLAGS+= -I${LOCALBASE}/include CONFIGURE_ARGS+=--includedir=${PREFIX}/include/ming CPPFLAGS+= -I. -I.. -I${LOCALBASE}/include @@ -29,12 +32,15 @@ LDFLAGS+= -L. -L.. -L${LOCALBASE}/lib GNU_CONFIGURE= yes MAKE_JOBS_UNSAFE= yes USE_LDCONFIG= yes -USES+= bison gmake pathfix +USES+= bison gmake pathfix shebangfix DOCS= HISTORY NEWS README TODO DOCS_UTIL= README TIPS TODO swftoperl.html -NO_STAGE= yes +SHEBANG_FILES= util/cws2fws + +SLAVEDIRS= graphics/p5-ming graphics/py-ming + .include post-patch: @@ -53,18 +59,24 @@ post-patch: @${REINPLACE_CMD} -e 's|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/py_ext/setup.py.in @${LN} -sf ${LOCALBASE}/include/ming ${WRKSRC}/src +.if !target(post-build) +post-build: +.if !defined(SLAVEPORT) + @${STRIP_CMD} ${WRKSRC}/src/.libs/libming.so.5 +.endif +.endif + .if !target(post-install) post-install: - ${MKDIR} ${PREFIX}/include/ming/ ${PREFIX}/include/ming/blocks/ ${PREFIX}/include/ming/util/ - cd ${WRKSRC}/ && \ - ${INSTALL_SCRIPT} util/cws2fws util/ming-config ${PREFIX}/bin/ && \ - ${INSTALL_DATA} *.h src/*.h ${PREFIX}/include/ming/ && \ - ${INSTALL_DATA} src/blocks/*.h ${PREFIX}/include/ming/blocks/ && \ - ${INSTALL_DATA} util/png2dbl.c util/*.h ${PREFIX}/include/ming/util/ + ${MKDIR} ${STAGEDIR}${PREFIX}/include/ming/ ${STAGEDIR}${PREFIX}/include/ming/blocks/ ${STAGEDIR}${PREFIX}/include/ming/util/ + cd ${WRKSRC}/ && ${INSTALL_SCRIPT} util/cws2fws util/ming-config ${STAGEDIR}${PREFIX}/bin/ + cd ${WRKSRC}/ && ${INSTALL_DATA} *.h src/*.h ${STAGEDIR}${PREFIX}/include/ming/ + cd ${WRKSRC}/ && ${INSTALL_DATA} src/blocks/*.h ${STAGEDIR}${PREFIX}/include/ming/blocks/ + cd ${WRKSRC}/ && ${INSTALL_DATA} util/png2dbl.c util/*.h ${STAGEDIR}${PREFIX}/include/ming/util/ .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR}/ ${DOCSDIR}/util/ - cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}/ - cd ${WRKSRC}/util/ && ${INSTALL_DATA} ${DOCS_UTIL} ${DOCSDIR}/util/ + ${MKDIR} ${STAGEDIR}${DOCSDIR}/ ${STAGEDIR}${DOCSDIR}/util/ + cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}/ + cd ${WRKSRC}/util/ && ${INSTALL_DATA} ${DOCS_UTIL} ${STAGEDIR}${DOCSDIR}/util/ .endif .endif