1995-12-05 03:48:19 +01:00
|
|
|
# New ports collection makefile for: PNG images library
|
|
|
|
# Date created: 5 Dec 1995
|
|
|
|
# Whom: ache
|
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1995-12-05 03:48:19 +01:00
|
|
|
#
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= png
|
2001-01-16 18:33:20 +01:00
|
|
|
PORTVERSION= 1.0.8
|
2000-09-21 09:52:05 +02:00
|
|
|
PORTREVISION= 1
|
2001-01-16 18:33:20 +01:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= ftp://ftp.libpng.org/pub/png/src/ \
|
2000-07-03 10:54:25 +02:00
|
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= lib${PORTNAME}
|
2000-09-21 09:52:05 +02:00
|
|
|
DISTFILES= lib${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
1995-12-05 03:48:19 +01:00
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
PATCH_SITES= ftp://ftp.libpng.org/pub/png/src/
|
2000-07-03 10:54:25 +02:00
|
|
|
#PATCHFILES=
|
2000-04-23 19:31:03 +02:00
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
MAINTAINER= ache@FreeBSD.org
|
1995-12-05 03:48:19 +01:00
|
|
|
|
2000-09-21 09:52:05 +02:00
|
|
|
WRKSRC= ${WRKDIR}/lib${PORTNAME}-${PORTVERSION}
|
2000-08-30 10:02:35 +02:00
|
|
|
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
2000-07-04 09:13:35 +02:00
|
|
|
SHLIB_VER= 4
|
2000-06-15 19:59:45 +02:00
|
|
|
|
2000-07-04 09:13:35 +02:00
|
|
|
MAKE_ENV= SHLIB_VER="${SHLIB_VER}"
|
|
|
|
PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
|
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
MAN3= libpng.3 libpngpf.3
|
|
|
|
MAN5= png.5
|
1996-02-20 06:35:35 +01:00
|
|
|
|
2000-07-26 09:33:25 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-10-26 13:25:17 +02:00
|
|
|
.if defined(WITH_PNG_MMX) && (${ARCH} == "i386")
|
2000-07-26 09:33:25 +02:00
|
|
|
MAKE_ENV+= USE_MMX=yes
|
2000-09-21 09:52:05 +02:00
|
|
|
MMX_PATCH= libpng-mmx-1.0.9pre3.zip
|
|
|
|
DISTFILES+= ${MMX_PATCH}
|
|
|
|
BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
EXTRACT_ONLY= lib${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
2000-07-26 09:33:25 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
2000-07-26 09:43:48 +02:00
|
|
|
# Please don't delete the following line - this link used by ghostscript* ports
|
|
|
|
@${LN} -sf ${WRKSRC} ${WRKDIR}/libpng
|
|
|
|
#
|
2000-10-26 13:25:17 +02:00
|
|
|
.if defined(WITH_PNG_MMX) && (${ARCH} == "i386")
|
2000-09-21 09:52:05 +02:00
|
|
|
@cd ${WRKDIR} && unzip ${DISTDIR}/${MMX_PATCH} >/dev/null
|
2000-08-30 10:02:35 +02:00
|
|
|
@${CP} ${WRKDIR}/pnggccrd.c ${WRKSRC}/pnggccrd.c
|
2000-09-21 09:52:05 +02:00
|
|
|
.elif ${ARCH} == "i386"
|
2000-07-26 09:33:25 +02:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} " If you have a CPU with MMX instruction set (Pentium/P55C and higher) you can"
|
2000-10-26 13:25:17 +02:00
|
|
|
@${ECHO_MSG} " try to add \"WITH_PNG_MMX=YES\" to /etc/make.conf to build libpng with"
|
2000-10-25 03:06:11 +02:00
|
|
|
@${ECHO_MSG} " MMX-optimized assembler routines."
|
2000-07-26 09:33:25 +02:00
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
|
|
|
|
1998-03-28 14:48:46 +01:00
|
|
|
do-configure:
|
2000-07-26 09:33:25 +02:00
|
|
|
${LN} -sf ${WRKSRC}/scripts/makefile.std ${WRKSRC}/Makefile
|
1998-03-28 14:48:46 +01:00
|
|
|
|
2000-07-26 09:33:25 +02:00
|
|
|
.include <bsd.port.post.mk>
|