freebsd-ports/graphics/cbviewer/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

54 lines
1.3 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= cbviewer
PORTVERSION= 0.8
PORTREVISION= 2
CATEGORIES= graphics java
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/CBViewer%200.8/ \
SF/nemysisfreebsdp/graphics/:icons
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Comic book viewer for comic book archives in cbz, cbr, zip, rar
LICENSE= GPLv2
RUN_DEPENDS= unrar:archivers/unrar
USES= dos2unix zip
DOS2UNIX_GLOB= CREDITS
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PLIST_FILES= bin/${PORTNAME} \
share/java/cbviewer/CBViewer.jar \
share/pixmaps/${PORTNAME}.png
PORTDOCS= CREDITS
OPTIONS_DEFINE= DOCS
SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="CBViewer" "Comic book viewer" "${PORTNAME}" \
"${PORTNAME}" "Graphics;Viewer;Java;" ""
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.jar ${STAGEDIR}${DATADIR}
post-install:
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>