blob: 3559b4d1284b82c2b7138846396c5a735fdce47d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# New ports collection makefile for: PNG images library
# Date created: 5 Dec 1995
# Whom: ache
#
# $FreeBSD$
#
PORTNAME= png
PORTVERSION= 1.0.11
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_PNG_MMX) && (${ARCH} == "i386")
MAKE_ENV+= USE_MMX=yes
.endif
post-extract:
# Please don't delete the following line - this link used by ghostscript* ports
@${LN} -sf ${WRKSRC} ${WRKDIR}/libpng
#
.if !defined(WITH_PNG_MMX) && (${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 \"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.)."
@${ECHO_MSG}
.endif
do-configure:
${LN} -sf ${WRKSRC}/scripts/makefile.std ${WRKSRC}/Makefile
.include <bsd.port.post.mk>
|