sthen 958368e3a2 revert previous; libpng.la is a symlink and sed -i doesn't operate on these
(so build as-is fails), switching to operating on libpng16.la results in a
plist change, and the installed files from the previous package do actually
have a difference between libpng.la and libpng16.la(?!).
2015-10-08 23:45:30 +00:00

33 lines
694 B
Makefile

# $OpenBSD: Makefile,v 1.107 2015/10/08 23:45:30 sthen Exp $
COMMENT= library for manipulating PNG images
VERSION= 1.6.18
DISTNAME= libpng-${VERSION}
PKGNAME= png-${VERSION}
CATEGORIES= graphics
DPB_PROPERTIES= parallel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpng/}
EXTRACT_SUFX= .tar.xz
SHARED_LIBS= png16 17.2 \
png 17.2
HOMEPAGE= http://www.libpng.org/pub/png/libpng.html
# BSD
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c m z
SEPARATE_BUILD= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
post-install:
cd ${PREFIX}/lib; \
ln -s libpng16.so.${LIBpng16_VERSION} libpng.so.${LIBpng_VERSION}; \
perl -pi -e 's/libpng16/libpng/g' libpng.la
.include <bsd.port.mk>