2001-04-07 15:37:31 -04:00
|
|
|
# New ports collection makefile for: cuecat
|
|
|
|
# Date created: 18 October 2000
|
|
|
|
# Whom: mwm@mired.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cuecat
|
2001-06-17 11:12:10 -04:00
|
|
|
PORTVERSION= 1.1
|
2001-04-07 15:37:31 -04:00
|
|
|
CATEGORIES= misc python
|
2001-06-17 11:12:10 -04:00
|
|
|
MASTER_SITES= http://www.mired.org/downloads/
|
2001-04-07 15:37:31 -04:00
|
|
|
|
|
|
|
MAINTAINER= mwm@mired.org
|
|
|
|
|
2001-06-17 11:12:10 -04:00
|
|
|
.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
|
|
|
|
|
2001-04-07 15:37:31 -04:00
|
|
|
NO_BUILD= yes
|
|
|
|
MAN1= cuecat.1
|
2001-06-17 11:12:10 -04:00
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
MAN1+= xcuecat.1
|
|
|
|
.endif
|
2001-04-07 15:37:31 -04:00
|
|
|
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
|
2001-06-17 11:12:10 -04:00
|
|
|
.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
|
2001-04-07 15:37:31 -04:00
|
|
|
|
|
|
|
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
|
2001-06-17 11:12:10 -04:00
|
|
|
.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
|
2001-04-07 15:37:31 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|