PORTNAME=	cdlabelgen
PORTVERSION=	4.3.0
PORTREVISION=	1
CATEGORIES=	print perl5
MASTER_SITES=	http://www.aczoom.com/pub/tools/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Generate postscript for frontcards and traycards for CDs
WWW=		https://www.aczoom.com/tools/cdinsert/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		perl5 tar:tgz shebangfix
SHEBANG_FILES=	cdlabelgen
NO_ARCH=	yes
NO_BUILD=	yes
MAKE_ARGS=	BASE_DIR="${STAGEDIR}${PREFIX}" \
		LIB_DIR="${STAGEDIR}${DATADIR}" \
		INSTALL="${INSTALL_SCRIPT}" \
		INSTALL_DIR="${MKDIR}" \
		INSTALL_FILE="${INSTALL_DATA}" \
		INSTALL_MAN="${INSTALL_MAN}" \
		MAN_DIR="${STAGEDIR}${PREFIX}/share/man"

post-extract:
	@${SED} -ne '5,35 {s|# *||;p;}' ${WRKSRC}/${PORTNAME} > ${WRKSRC}/COPYING

.include <bsd.port.mk>
