openbsd-ports/www/igal2/Makefile
2012-05-20 08:50:10 +00:00

40 lines
830 B
Makefile

# $OpenBSD: Makefile,v 1.2 2012/05/20 08:50:10 jasper Exp $
COMMENT= online Image GALlery generator
DISTNAME= igal2-2.0
REVISION= 0
CATEGORIES= www graphics
HOMEPAGE= http://igal.trexler.at/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}
RUN_DEPENDS= graphics/ImageMagick \
graphics/jpeg \
graphics/jhead
NO_BUILD= Yes
NO_REGRESS= Yes
PKG_ARCH= *
DATADIR= ${PREFIX}/share/igal2
do-configure:
@perl -pi -e "s,/usr/local,${PREFIX},g;" \
-e "s,${PREFIX}/lib/igal2,${DATADIR},g;" ${WRKSRC}/igal2{,.1}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/igal2 ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/igal2.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.{css,html,png} ${DATADIR}
.include <bsd.port.mk>