mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
14f0863d28
if USE_MMX not used.
62 lines
1.6 KiB
Makefile
62 lines
1.6 KiB
Makefile
# New ports collection makefile for: PNG images library
|
|
# ftp://ftp.libpng.org/pub/png/libpng.html
|
|
# Date created: 5 Dec 1995
|
|
# Whom: ache
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= png
|
|
PORTVERSION= 1.0.8
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ftp://ftp.libpng.org/pub/png/src/ \
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= lib${PORTNAME}
|
|
DISTFILES= lib${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
PATCH_SITES= ftp://ftp.libpng.org/pub/png/src/
|
|
#PATCHFILES=
|
|
|
|
MAINTAINER= ache@FreeBSD.org
|
|
|
|
WRKSRC= ${WRKDIR}/lib${PORTNAME}-${PORTVERSION}
|
|
|
|
INSTALLS_SHLIB= yes
|
|
SHLIB_VER= 4
|
|
|
|
MAKE_ENV= SHLIB_VER="${SHLIB_VER}"
|
|
PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
|
|
|
|
MAN3= libpng.3 libpngpf.3
|
|
MAN5= png.5
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_MMX) && (${ARCH} == "i386")
|
|
MAKE_ENV+= USE_MMX=yes
|
|
MMX_PATCH= libpng-mmx-1.0.9pre3.zip
|
|
DISTFILES+= ${MMX_PATCH}
|
|
BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
|
|
EXTRACT_ONLY= lib${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
|
.endif
|
|
|
|
post-extract:
|
|
# Please don't delete the following line - this link used by ghostscript* ports
|
|
@${LN} -sf ${WRKSRC} ${WRKDIR}/libpng
|
|
#
|
|
.if defined(WITH_MMX) && (${ARCH} == "i386")
|
|
@cd ${WRKDIR} && unzip ${DISTDIR}/${MMX_PATCH} >/dev/null
|
|
@${CP} ${WRKDIR}/pnggccrd.c ${WRKSRC}/pnggccrd.c
|
|
.elif ${ARCH} == "i386"
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} " If you have a CPU with MMX instruction set (Pentium/P55C and higher) you can"
|
|
@${ECHO_MSG} " try to add \"-DWITH_MMX\" to build libpng with MMX-optimized assembler routines."
|
|
@${ECHO_MSG}
|
|
.endif
|
|
|
|
do-configure:
|
|
${LN} -sf ${WRKSRC}/scripts/makefile.std ${WRKSRC}/Makefile
|
|
|
|
.include <bsd.port.post.mk>
|