2001-06-10 13:36:00 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.33 2001/06/10 17:36:00 brad Exp $
|
2001-03-25 12:32:23 -05:00
|
|
|
|
|
|
|
COMMENT= "library for manipulating PNG images"
|
1997-12-02 22:39:50 -05:00
|
|
|
|
2001-06-10 13:36:00 -04:00
|
|
|
DISTNAME= libpng-1.0.12
|
2001-05-23 19:57:45 -04:00
|
|
|
PKGNAME= ${DISTNAME:S/lib//}
|
2000-06-22 04:21:49 -04:00
|
|
|
CATEGORIES= graphics
|
2001-06-10 13:36:00 -04:00
|
|
|
NEED_VERSION= 1.413
|
2001-04-03 10:08:30 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2000-07-03 05:41:31 -04:00
|
|
|
MASTER_SITE_SUBDIR= libpng
|
1997-12-02 22:39:50 -05:00
|
|
|
|
2000-06-10 02:34:37 -04:00
|
|
|
HOMEPAGE= http://www.libpng.org/pub/png/
|
|
|
|
|
2000-09-24 03:03:59 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@openbsd.org>
|
1997-12-02 22:39:50 -05:00
|
|
|
|
2000-03-05 23:06:32 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-12 01:29:49 -05:00
|
|
|
|
2000-09-16 07:44:22 -04:00
|
|
|
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="-L. -lpng -lz -lm"
|
2001-03-17 21:07:45 -05:00
|
|
|
FAKE_FLAGS+= ${MAKE_FLAGS} prefix="${PREFIX}"
|
2000-06-22 04:21:49 -04:00
|
|
|
|
|
|
|
MAKE_FILE= scripts/makefile.std
|
1999-05-08 14:13:49 -04:00
|
|
|
|
1998-02-12 09:38:32 -05:00
|
|
|
post-install:
|
2000-02-04 22:56:58 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/png
|
|
|
|
cd ${WRKSRC}; ${INSTALL_MAN} libpng.3 libpngpf.3 ${PREFIX}/man/man3
|
1998-03-20 23:59:59 -05:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/png.5 ${PREFIX}/man/man5
|
|
|
|
${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
|
|
|
|
2000-06-22 04:21:49 -04:00
|
|
|
test: build
|
2000-06-28 13:22:52 -04:00
|
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} test
|
1999-05-08 14:13:49 -04:00
|
|
|
|
2000-06-22 04:21:49 -04:00
|
|
|
.include <bsd.port.mk>
|
2000-09-16 07:44:22 -04:00
|
|
|
|
|
|
|
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
|
2001-04-20 20:59:11 -04:00
|
|
|
MAKE_ENV+= NO_SHARED_LIBS=Yes
|
2000-09-16 07:44:22 -04:00
|
|
|
.endif
|