1994-11-06 09:18:01 +01:00
|
|
|
# New ports collection makefile for: jpeg
|
|
|
|
# Date created: 6 November 1994
|
|
|
|
# Whom: smace
|
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1994-11-06 09:18:01 +01:00
|
|
|
#
|
|
|
|
|
2004-10-12 07:28:58 +02:00
|
|
|
PORTNAME= jpeg-mmx
|
2005-05-03 07:59:27 +02:00
|
|
|
PORTVERSION= 0.1.6
|
2001-01-16 18:33:20 +01:00
|
|
|
CATEGORIES= graphics
|
2004-10-12 07:28:58 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= mjpeg
|
1995-04-09 09:09:55 +02:00
|
|
|
|
2004-10-30 00:24:47 +02:00
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
2004-10-12 07:28:58 +02:00
|
|
|
COMMENT= IJG's jpeg compression utilities with MMX optimization
|
1998-04-15 23:32:50 +02:00
|
|
|
|
2004-10-12 07:28:58 +02:00
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
|
|
|
RUN_DEPENDS= cjpeg:${PORTSDIR}/graphics/jpeg
|
|
|
|
|
2005-01-22 08:40:13 +01:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2000-10-03 02:54:04 +02:00
|
|
|
|
2005-05-03 07:59:27 +02:00
|
|
|
WRKSRC= ${WRKDIR}/jpeg-mmx
|
2005-05-04 08:50:07 +02:00
|
|
|
USE_REINPLACE= yes
|
2004-11-08 18:01:46 +01:00
|
|
|
USE_LIBTOOL_VER=15
|
2004-10-12 07:28:58 +02:00
|
|
|
USE_GMAKE= yes
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
1998-04-15 23:32:50 +02:00
|
|
|
CONFIGURE_ARGS= --enable-shared --enable-static
|
2005-05-04 08:50:07 +02:00
|
|
|
USE_GCC= 3.4+
|
2000-10-03 02:54:04 +02:00
|
|
|
|
2004-10-12 07:28:58 +02:00
|
|
|
JPEG_EXT= -mmx
|
|
|
|
INCDIR= include/${PORTNAME}
|
|
|
|
|
|
|
|
BIN_FILES= cjpeg djpeg jpegtran
|
|
|
|
INC_FILES= jconfig.h jerror.h jinclude.h jmorecfg.h jpegint.h jpeglib.h
|
|
|
|
LIB_FILES= libjpeg-mmx.a libjpeg-mmx.so libjpeg-mmx.so.62
|
|
|
|
|
|
|
|
PORTDOCS= README coderules.doc filelist.doc install.doc jconfig.doc \
|
|
|
|
libjpeg.doc structure.doc usage.doc wizard.doc
|
|
|
|
PLIST_DIRS= include/jpeg-mmx
|
|
|
|
PLIST_FILES= ${BIN_FILES:S|^|bin/|:S|$|${JPEG_EXT}|} \
|
|
|
|
${INC_FILES:S|^|${INCDIR}/|} \
|
|
|
|
${LIB_FILES:S|^|lib/|}
|
2001-11-16 04:33:54 +01:00
|
|
|
|
2002-03-18 04:36:35 +01:00
|
|
|
# define J_MAXMEM like "make J_MAXMEM=32" to limit max processing memory to 32Mb
|
|
|
|
.if defined(J_MAXMEM)
|
2003-11-18 14:08:47 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-maxmem=${J_MAXMEM}
|
2002-03-18 04:36:35 +01:00
|
|
|
.endif
|
|
|
|
|
2004-11-08 18:01:46 +01:00
|
|
|
post-patch:
|
2005-05-04 08:50:07 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|./libtool|${LIBTOOL} --tag=CXX|' \
|
|
|
|
${WRKSRC}/configure
|
2004-11-08 18:01:46 +01:00
|
|
|
|
2004-10-12 07:28:58 +02:00
|
|
|
do-install:
|
|
|
|
.for f in ${BIN_FILES}
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/.libs/${f} ${PREFIX}/bin/${f}${JPEG_EXT}
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${PREFIX}/${INCDIR}
|
|
|
|
.for f in ${INC_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${INCDIR}
|
|
|
|
.endfor
|
|
|
|
.for f in ${LIB_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/.libs/${f} ${PREFIX}/lib/
|
|
|
|
.endfor
|
1999-07-25 14:16:20 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-10-12 07:28:58 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/*.doc ${DOCSDIR}
|
1999-07-25 14:16:20 +02:00
|
|
|
.endif
|
1995-06-24 13:42:32 +02:00
|
|
|
|
2005-05-04 08:50:07 +02:00
|
|
|
.include <bsd.port.mk>
|