openbsd-ports/graphics/gif2png/Makefile
2002-07-30 13:43:36 +00:00

40 lines
990 B
Makefile

# $OpenBSD: Makefile,v 1.30 2002/07/30 13:43:36 brad Exp $
COMMENT= "converts GIF images to the PNG format"
DISTNAME= gif2png-2.4.5
CATEGORIES= graphics
MASTER_SITES= http://www.tuxedo.org/~esr/gif2png/ \
ftp://ftp.ccil.org/pub/esr/
HOMEPAGE= http://www.tuxedo.org/~esr/gif2png/
LIB_DEPENDS= png.2::graphics/png
MAINTAINER= Brad Smith <brad@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-png-inc="${LOCALBASE}/include/libpng" \
--with-png-lib="${LOCALBASE}/lib"
DOCS= COPYING README
pre-patch:
@sed -e "s|@PREFIX@|${LOCALBASE}|" \
${FILESDIR}/web2png > ${WRKDIR}/web2png
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gif2png
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/gif2png
${INSTALL_SCRIPT} ${WRKSRC}/web2png ${PREFIX}/libexec/web2png.bin
${INSTALL_SCRIPT} ${WRKDIR}/web2png ${PREFIX}/bin
.include <bsd.port.mk>