diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2014-03-19 00:20:36 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2014-03-19 00:20:36 +0800 |
commit | f27fd70b988414952a8790699373a3b22fffe476 (patch) | |
tree | 5d2061cd188324ac25921294b5c9319c9d827800 /graphics | |
parent | 51fe711bd684500240da3a23a6685aad4e7fc9b4 (diff) | |
download | freebsd-ports-gnome-f27fd70b988414952a8790699373a3b22fffe476.tar.gz freebsd-ports-gnome-f27fd70b988414952a8790699373a3b22fffe476.tar.zst freebsd-ports-gnome-f27fd70b988414952a8790699373a3b22fffe476.zip |
- Strip shared library in post-install: phase
- Simplify Makefile
- Bump PORTREVISION for package change
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/ming/Makefile | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/graphics/ming/Makefile b/graphics/ming/Makefile index b6b1407b3af1..1c13f471e94b 100644 --- a/graphics/ming/Makefile +++ b/graphics/ming/Makefile @@ -41,8 +41,6 @@ SHEBANG_FILES= util/cws2fws SLAVEDIRS= graphics/p5-ming graphics/py-ming -.include <bsd.port.options.mk> - post-patch: @${REINPLACE_CMD} -e 's|ungif|gif|g' ${WRKSRC}/configure ${WRKSRC}/docs/man/Makefile \ ${WRKSRC}/perl_ext/Makefile.PL ${WRKSRC}/py_ext/setup.py.in @@ -59,25 +57,25 @@ 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: +.if !defined(SLAVEPORT) ${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} ${STAGEDIR}${DOCSDIR}/ ${STAGEDIR}${DOCSDIR}/util/ cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}/ cd ${WRKSRC}/util/ && ${INSTALL_DATA} ${DOCS_UTIL} ${STAGEDIR}${DOCSDIR}/util/ + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libming.so.5 +.endif +.if defined(SLAVEPORT) && ${SLAVEPORT} == "p5" + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ + cd ${INSTALL_WRKSRC}/examples/ && ${INSTALL_DATA} *.cgi ${STAGEDIR}${EXAMPLESDIR}/ + ${STRIP_CMD} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto/SWF/SWF.so .endif +.if defined(SLAVEPORT) && ${SLAVEPORT} == "py" + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_mingc.so .endif .include <bsd.port.mk> |