1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/misc/cuecat/Makefile
Kevin Lo e8e01cd865 Update to version 1.1
PR: 28197
Submitted by: MAINTAINER
2001-06-17 15:12:10 +00:00

56 lines
1.6 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
.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>