openbsd-ports/graphics/png/Makefile

42 lines
1.2 KiB
Makefile
Raw Normal View History

1999-05-09 03:24:21 -04:00
# $OpenBSD: Makefile,v 1.10 1999/05/09 07:24:21 brad Exp $
1997-12-02 22:39:50 -05:00
1999-03-13 14:08:34 -05:00
DISTNAME= libpng-1.0.3
PKGNAME= png-1.0.3
1997-12-02 22:39:50 -05:00
CATEGORIES= graphics
1999-05-09 03:24:21 -04:00
MASTER_SITES= ftp://ftp.uu.net/graphics/png/src/
NEED_VERSION= 1.64
1997-12-02 22:39:50 -05:00
MAINTAINER= angelos@openbsd.org
1998-09-11 17:11:07 -04:00
post-extract:
@chmod +w ${WRKSRC}/scripts
1998-03-12 19:37:52 -05:00
pre-patch:
cp ${WRKSRC}/scripts/makefile.std $(WRKSRC)/Makefile
1997-12-02 22:39:50 -05:00
# post-patch must be defined before bsd.port.mk is included so it will
# be called. However, we need to have the body of the target after
# bsd.port.mk is included so NO_SHARED_LIBS is defined.
# Define the target twice, using :
post-patch:
1998-02-12 09:38:32 -05:00
post-install:
${INSTALL_MAN} ${WRKSRC}/libpng.3 ${PREFIX}/man/man3
${INSTALL_MAN} ${WRKSRC}/libpngpf.3 ${PREFIX}/man/man3
${INSTALL_MAN} ${WRKSRC}/png.5 ${PREFIX}/man/man5
${MKDIR} ${PREFIX}/share/doc/png
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/png
${INSTALL_DATA} ${WRKSRC}/libpng.txt ${PREFIX}/share/doc/png
1998-02-12 09:38:32 -05:00
${LDCONFIG} -m ${PREFIX}/lib
1997-12-02 22:39:50 -05:00
.include <bsd.port.mk>
# The patches assumed shared libs would be build. If building
# on a host that does not support shared libs, e.g. the alpha,
# apply one more patch.
post-patch:
.if defined(NO_SHARED_LIBS)
@(cd ${DISTDIR}; ${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/patch)
.endif