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