2000-09-16 07:44:22 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.25 2000/09/16 11:45:25 brad Exp $
|
1997-12-02 22:39:50 -05:00
|
|
|
|
2000-07-25 04:56:14 -04:00
|
|
|
DISTNAME= libpng-1.0.8
|
|
|
|
PKGNAME= png-1.0.8
|
2000-06-22 04:21:49 -04:00
|
|
|
CATEGORIES= graphics
|
2000-07-25 04:56:14 -04:00
|
|
|
NEED_VERSION= 1.310
|
2000-07-03 05:41:31 -04:00
|
|
|
MASTER_SITES= ftp://ftp.libpng.org/pub/png/src/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
|
|
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-06-10 02:15:37 -04:00
|
|
|
MAINTAINER= 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"
|
|
|
|
FAKE_FLAGS+= ${MAKE_FLAGS}
|
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"
|
|
|
|
MAKE_ENV= NO_SHARED_LIBS=Yes
|
|
|
|
.endif
|