pkgsrc/www/jalbum/Makefile

43 lines
1,018 B
Makefile

# $NetBSD: Makefile,v 1.30 2016/03/25 21:03:09 joerg Exp $
DISTNAME= Jalbum${VERSION}
PKGNAME= jalbum-${VERSION}
#PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= http://jalbum.net/download/
DIST_SUBDIR= ${PKGNAME_NOREV}
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://jalbum.net/
COMMENT= Web photo album generator
LICENSE= gnu-lgpl-v2
VERSION= 8.5.3
USE_JAVA2= 1.5
PKG_JVMS_ACCEPTED= jdk15 sun-jdk6
WRKSRC= ${WRKDIR}/Jalbum
INSTALLATION_DIRS+= bin ${PREFIX}/share/jalbum
USE_TOOLS+= pax
CHECK_SHLIBS_SKIP+= share/jalbum/lib/*
post-extract:
${ECHO} "===> Removing invalid skins"
(cd ${WRKSRC} && rm -rf skins/Chameleon/styles/Black*)
do-build:
sed -e s#@PKG_JAVA_HOME@#${PKG_JAVA_HOME}#g \
-e s#@PREFIX@#${PREFIX}#g \
< ${FILESDIR}/jalbum > ${WRKDIR}/jalbum
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/jalbum ${DESTDIR}${PREFIX}/bin
cd ${WRKDIR}/Jalbum && pax -rw . ${DESTDIR}${PREFIX}/share/jalbum
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"