aboutsummaryrefslogtreecommitdiff
path: root/graphics/mozjpeg/Makefile
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-06-17 17:25:02 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-06-17 17:25:02 +0000
commitdf8fd44c130c4f0f3332c18c70b225026d4244ba (patch)
treea94fcc808094e23f8db957e672dfc80996da450e /graphics/mozjpeg/Makefile
parent6855a055701dbac817073e10425e0e0f93f7aac6 (diff)
downloadports-df8fd44c130c4f0f3332c18c70b225026d4244ba.tar.gz
ports-df8fd44c130c4f0f3332c18c70b225026d4244ba.zip
Notes
Diffstat (limited to 'graphics/mozjpeg/Makefile')
-rw-r--r--graphics/mozjpeg/Makefile49
1 files changed, 13 insertions, 36 deletions
diff --git a/graphics/mozjpeg/Makefile b/graphics/mozjpeg/Makefile
index 50c5449fcdca..cf290a7a6645 100644
--- a/graphics/mozjpeg/Makefile
+++ b/graphics/mozjpeg/Makefile
@@ -2,74 +2,51 @@
# $FreeBSD$
PORTNAME= mozjpeg
-PORTVERSION= 2.1
-PORTREVISION= 2
+PORTVERSION= 3.1
+DISTVERSIONPREFIX= v
CATEGORIES= graphics
MAINTAINER= horia@racoviceanu.com
COMMENT= Advanced JPEG encoder for the Web
LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USE_GITHUB= yes
GH_ACCOUNT= mozilla
-GH_TAGNAME= 594b725
-USES= autoreconf libtool
+USES= autoreconf libtool pkgconfig
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --docdir=${PREFIX}/share/doc/${PORTNAME} \
--includedir=${PREFIX}/include/${PORTNAME} \
--libdir=${PREFIX}/lib/${PORTNAME} \
- --with-jpeg8
+ --with-jpeg8 \
+ --disable-static
INSTALL_TARGET= install-strip
PLIST_SUB= PORTNAME=${PORTNAME}
PORTDOCS= *
-
-DOCSRCDIR1= ${WRKSRC}/doc/html
-DOCSDIR1= ${DOCSDIR}/html
-
-DOCSRCDIR2= ${DOCSRCDIR1}/search
-DOCSDIR2= ${DOCSDIR1}/search
-
-DOC_FILES= *.css *.html *.js *.png
-
PORTEXAMPLES= *
-OPTIONS_DEFINE= DOCS EXAMPLES GCC SIMD TURBOJPEG
-
-OPTIONS_MULTI= LIBRARIES
-OPTIONS_MULTI_LIBRARIES= SHARED STATIC
-
-OPTIONS_DEFAULT=GCC SHARED TURBOJPEG
-
+OPTIONS_DEFINE= DOCS EXAMPLES SIMD TURBOJPEG
+OPTIONS_DEFAULT=SIMD TURBOJPEG
OPTIONS_SUB= yes
-GCC_DESC= Use the GNU Compiler Collection (GCC) for best performance
-SIMD_DESC= Include SIMD extensions (MMX, SSE2, NEON)
+SIMD_DESC= Include SIMD extensions
TURBOJPEG_DESC= Include the TurboJPEG wrapper library and associated tests
-STATIC_DESC= Build static libraries
-SHARED_DESC= Build shared libraries
-
-GCC_USE= GCC=yes
-SIMD_CONFIGURE_WITH= simd
-SIMD_BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
+SIMD_CONFIGURE_WITH= simd
+SIMD_BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
TURBOJPEG_CONFIGURE_WITH= turbojpeg
-STATIC_CONFIGURE_ENABLE= static
-SHARED_CONFIGURE_ENABLE= shared
-
post-patch:
- @${REINPLACE_CMD} -e 's|docdir = $$(datadir)/doc|&/mozjpeg|; \
+ @${REINPLACE_CMD} -e '/^docdir/s|=.*|= ${DOCSDIR}|; \
/^exampledir/s|=.*|= ${EXAMPLESDIR}|' \
${WRKSRC}/Makefile.am
post-install:
- @${MKDIR} ${STAGEDIR}${DOCSDIR2}
- ${INSTALL_DATA} ${DOC_FILES:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR1}
- ${INSTALL_DATA} ${DOC_FILES:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
+ (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>