freebsd-ports/misc/cuecat/Makefile
2003-02-21 12:51:06 +00:00

57 lines
1.7 KiB
Makefile

# New ports collection makefile for: cuecat
# Date created: 18 October 2000
# Whom: mwm@mired.org
#
# $FreeBSD$
#
PORTNAME= cuecat
PORTVERSION= 1.1
CATEGORIES= misc python
MASTER_SITES= http://www.mired.org/downloads/
MAINTAINER= mwm@mired.org
COMMENT= Tools for decoding and using the output of a :Cue:Cat(TM) wand scanner
.if !defined(WITHOUT_X11)
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
${PYTHON_SITELIBDIR}/Pmw/__init__.py:${PORTSDIR}/x11-toolkits/pmw
.endif
NO_BUILD= yes
MAN1= cuecat.1
.if !defined(WITHOUT_X11)
MAN1+= xcuecat.1
.endif
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/cuecat
pre-install:
@${MV} ${WRKSRC}/cuecat.py ${WRKSRC}/cuecat.py-orig
@${SED} 's;/usr/opt;${PREFIX};' ${WRKSRC}/cuecat.py-orig >${WRKSRC}/cuecat.py
@${MV} ${WRKSRC}/barcode.py ${WRKSRC}/barcode.py-orig
@${SED} 's;/usr/opt;${PREFIX};' ${WRKSRC}/barcode.py-orig >${WRKSRC}/barcode.py
.if !defined(WITHOUT_X11)
@${MV} ${WRKSRC}/xcuecat.py ${WRKSRC}/xcuecat.py-orig
@${SED} 's;/usr/opt;${PREFIX};' ${WRKSRC}/xcuecat.py-orig >${WRKSRC}/xcuecat.py
.endif
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/cuecat.py ${PYTHON_SITELIBDIR}
${INSTALL_SCRIPT} ${WRKSRC}/barcode.py ${PYTHON_SITELIBDIR}
python -O -c "import barcode, cuecat"
${LN} -sf ${PYTHON_SITELIBDIR}/cuecat.py ${PREFIX}/bin/cuecat
${INSTALL_MAN} ${WRKSRC}/cuecat.1 ${PREFIX}/man/man1
.if !defined(WITHOUT_X)
${INSTALL_SCRIPT} ${WRKSRC}/xcuecat.py ${PREFIX}/bin/xcuecat
${INSTALL_MAN} ${WRKSRC}/xcuecat.1 ${PREFIX}/man/man1
.endif
.if defined(WITHOUT_X11)
post-install:
$(MV) ${TMPPLIST} ${TMPPLIST}.orig
${GREP} -v xcuecat ${TMPPLIST}.orig > ${TMPPLIST}
.endif
.include <bsd.port.mk>