2004-10-14 01:41:25 +02:00
|
|
|
# New ports collection makefile for: coverhunter
|
|
|
|
# Date created: 14 Jul 2004
|
|
|
|
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= coverhunter
|
|
|
|
PORTVERSION= 0.3
|
2008-06-06 15:08:29 +02:00
|
|
|
PORTREVISION= 4
|
2004-10-14 01:41:25 +02:00
|
|
|
CATEGORIES= audio graphics
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF
|
2004-10-14 01:41:25 +02:00
|
|
|
|
2006-11-03 14:10:57 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-10-14 01:41:25 +02:00
|
|
|
COMMENT= A program fetching the covers of your digital music albums
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
|
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11
|
2004-10-14 01:41:25 +02:00
|
|
|
USE_GNOME= pygtk2
|
|
|
|
USE_PYTHON= 2.3+
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
PYC= PYTHON="${PYTHON_CMD}" ${SH} ${SCRIPTDIR}/py-compile
|
|
|
|
|
|
|
|
BINDIR= ${PREFIX}/bin
|
|
|
|
PKGLIBDIR= ${PREFIX}/lib/coverhunter
|
|
|
|
|
|
|
|
MODULES= __init__.py \
|
|
|
|
album.py \
|
|
|
|
amazon.py \
|
|
|
|
config.py \
|
|
|
|
libhunter.py \
|
|
|
|
musicfile.py \
|
|
|
|
source.py
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|@PYTHON_CMD@|${PYTHON_CMD}|; \
|
|
|
|
s|@PKGLIBDIR@|${PKGLIBDIR}|; \
|
|
|
|
s|@DATADIR@|${DATADIR}|' ${WRKSRC}/bin/coverhunter
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${BINDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/coverhunter ${BINDIR}
|
|
|
|
${MKDIR} ${PKGLIBDIR}
|
|
|
|
.for module in ${MODULES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/${module} ${PKGLIBDIR}
|
|
|
|
${PYC} --basedir ${PKGLIBDIR} ${PKGLIBDIR}/${module}
|
|
|
|
.endfor
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} \
|
|
|
|
${WRKSRC}/data/CoverHunter.glade \
|
|
|
|
${WRKSRC}/data/fetch_all.png \
|
|
|
|
${WRKSRC}/data/nocover.gif \
|
|
|
|
${WRKSRC}/data/picture.png \
|
|
|
|
${WRKSRC}/data/searching.png \
|
|
|
|
${DATADIR}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|