openbsd-ports/graphics/png/Makefile
brad 87ee19a888 Update to png 1.5.14.
Reinstates inter-library dependencies and corrects the libpng-config
and pkg-config files for static vs shared linking.

WANTLIB update and Ok naddy@
2013-03-25 00:21:37 +00:00

34 lines
721 B
Makefile

# $OpenBSD: Makefile,v 1.90 2013/03/25 00:21:37 brad Exp $
COMMENT= library for manipulating PNG images
VERSION= 1.5.14
DISTNAME= libpng-${VERSION}
PKGNAME= png-${VERSION}
SHARED_LIBS= png 15.0
CATEGORIES= graphics
DPB_PROPERTIES= parallel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpng/}
HOMEPAGE= http://www.libpng.org/pub/png/libpng.html
# BSD
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= m z
SUBST_VARS= VERSION
FAKE_FLAGS= PREFIX="${PREFIX}"
MAKE_ENV= CC="${CC}"
MAKE_FILE= scripts/makefile.openbsd
MAKE_FLAGS= SHLIB_MAJOR=${LIBpng_VERSION:R} \
SHLIB_MINOR=${LIBpng_VERSION:E} \
PNGLIB_VERSION=${VERSION}
do-configure:
cp ${WRKSRC}/scripts/pnglibconf.h.prebuilt ${WRKBUILD}/pnglibconf.h
.include <bsd.port.mk>