mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-08 12:01:56 +00:00
- Remove :oldver from USES=libtool
- Convert to USES=autoreconf and INSTALL_TARGET=install-strip - Remove jpeg 6 and 7 compatibility options because those versions of jpeg are no longer in the ports tree
This commit is contained in:
parent
4dcebe3995
commit
7e80354fe2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=369887
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= mozjpeg
|
||||
PORTVERSION= 2.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= graphics
|
||||
|
||||
MAINTAINER= horia@racoviceanu.com
|
||||
@ -16,18 +16,16 @@ GH_ACCOUNT= mozilla
|
||||
GH_TAGNAME= ${GH_COMMIT}
|
||||
GH_COMMIT= 594b725
|
||||
|
||||
USES= libtool:oldver
|
||||
USE_AUTOTOOLS= aclocal autoconf autoheader automake libtoolize
|
||||
USE_LDCONFIG= ${PREFIX}/include/${PORTNAME} ${PREFIX}/lib/${PORTNAME}
|
||||
USES= autoreconf libtool
|
||||
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --docdir=${PREFIX}/share/doc/${PORTNAME} \
|
||||
--includedir=${PREFIX}/include/${PORTNAME} \
|
||||
--libdir=${PREFIX}/lib/${PORTNAME}
|
||||
AUTOMAKE_ARGS+= -fiv --add-missing
|
||||
LDFLAGS+= -L${PREFIX}/lib/${PORTNAME}
|
||||
--libdir=${PREFIX}/lib/${PORTNAME} \
|
||||
--with-jpeg8
|
||||
INSTALL_TARGET= install-strip
|
||||
|
||||
PLIST_SUB= PORTNAME=${PORTNAME} \
|
||||
VER=${VER}
|
||||
PLIST_SUB= PORTNAME=${PORTNAME}
|
||||
|
||||
PORTDOCS= *
|
||||
|
||||
@ -43,16 +41,10 @@ PORTEXAMPLES= *
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES GCC SIMD TURBOJPEG
|
||||
|
||||
OPTIONS_GROUP= ARITHMETIC_CODING
|
||||
OPTIONS_GROUP_ARITHMETIC_CODING= DECODING ENCODING
|
||||
|
||||
OPTIONS_MULTI= LIBRARIES
|
||||
OPTIONS_MULTI_LIBRARIES= SHARED STATIC
|
||||
|
||||
OPTIONS_SINGLE= API_ABI_EMULATION
|
||||
OPTIONS_SINGLE_API_ABI_EMULATION= JPEG6B JPEG7 JPEG8
|
||||
|
||||
OPTIONS_DEFAULT= DECODING ENCODING GCC JPEG8 SHARED TURBOJPEG
|
||||
OPTIONS_DEFAULT=GCC SHARED TURBOJPEG
|
||||
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
@ -60,41 +52,17 @@ GCC_DESC= Use the GNU Compiler Collection (GCC) for best performance
|
||||
SIMD_DESC= Include SIMD extensions (MMX, SSE2, NEON)
|
||||
TURBOJPEG_DESC= Include the TurboJPEG wrapper library and associated tests
|
||||
|
||||
ENCODING_DESC= Enable arithmetic encoding
|
||||
DECODING_DESC= Enable arithmetic decoding
|
||||
|
||||
STATIC_DESC= Build static libraries
|
||||
SHARED_DESC= Build shared libraries
|
||||
|
||||
JPEG6B_DESC= API/ABI-compatible with libjpeg v6b
|
||||
JPEG7_DESC= API/ABI-compatible with libjpeg v7 (implies arith-coding)
|
||||
JPEG8_DESC= API/ABI-compatible with libjpeg v8 (implies arith-coding)
|
||||
|
||||
GCC_USE= GCC=yes
|
||||
SIMD_CONFIGURE_WITH= simd
|
||||
SIMD_BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
|
||||
TURBOJPEG_CONFIGURE_WITH= turbojpeg
|
||||
|
||||
JPEG7_CONFIGURE_WITH= jpeg7
|
||||
JPEG8_CONFIGURE_WITH= jpeg8
|
||||
|
||||
STATIC_CONFIGURE_ENABLE= static
|
||||
SHARED_CONFIGURE_ENABLE= shared
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MJPEG6B}
|
||||
. if ! ${PORT_OPTIONS:MENCODING}
|
||||
CONFIGURE_ARGS+= --without-arith-enc
|
||||
. endif
|
||||
. if ! ${PORT_OPTIONS:MDECODING}
|
||||
CONFIGURE_ARGS+= --without-arith-dec
|
||||
. endif
|
||||
VER= 63
|
||||
.else
|
||||
VER= 8
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|docdir = $$(datadir)/doc|&/mozjpeg|; \
|
||||
/^exampledir/s|=.*|= ${EXAMPLESDIR}|' \
|
||||
@ -105,12 +73,4 @@ post-install:
|
||||
${INSTALL_DATA} ${DOC_FILES:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR1}
|
||||
${INSTALL_DATA} ${DOC_FILES:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
|
||||
|
||||
.if ${PORT_OPTIONS:MSHARED}
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/libjpeg.so.${VER}
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MSHARED} && ${PORT_OPTIONS:MTURBOJPEG}
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/libturbojpeg.so.1
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -10,13 +10,13 @@ include/%%PORTNAME%%/jmorecfg.h
|
||||
include/%%PORTNAME%%/jpeglib.h
|
||||
%%TURBOJPEG%%include/%%PORTNAME%%/turbojpeg.h
|
||||
%%STATIC%%lib/%%PORTNAME%%/libjpeg.a
|
||||
lib/%%PORTNAME%%/libjpeg.la
|
||||
%%SHARED%%lib/%%PORTNAME%%/libjpeg.so
|
||||
%%SHARED%%lib/%%PORTNAME%%/libjpeg.so.%%VER%%
|
||||
%%SHARED%%lib/%%PORTNAME%%/libjpeg.so.8
|
||||
%%SHARED%%lib/%%PORTNAME%%/libjpeg.so.8.0.2
|
||||
%%STATIC%%%%TURBOJPEG%%lib/%%PORTNAME%%/libturbojpeg.a
|
||||
%%TURBOJPEG%%lib/%%PORTNAME%%/libturbojpeg.la
|
||||
%%SHARED%%%%TURBOJPEG%%lib/%%PORTNAME%%/libturbojpeg.so
|
||||
%%SHARED%%%%TURBOJPEG%%lib/%%PORTNAME%%/libturbojpeg.so.1
|
||||
%%SHARED%%%%TURBOJPEG%%lib/%%PORTNAME%%/libturbojpeg.so.0
|
||||
%%SHARED%%%%TURBOJPEG%%lib/%%PORTNAME%%/libturbojpeg.so.0.1.0
|
||||
man/man1/cjpeg.1.gz
|
||||
man/man1/djpeg.1.gz
|
||||
man/man1/jpegtran.1.gz
|
||||
|
Loading…
x
Reference in New Issue
Block a user