aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-exif/Makefile
diff options
context:
space:
mode:
authorwjv <wjv@FreeBSD.org>2002-01-30 16:54:33 +0800
committerwjv <wjv@FreeBSD.org>2002-01-30 16:54:33 +0800
commitbac9d3f138baef03dc33ae3d8da57bb46fbba8d8 (patch)
treea1b5f6e8c3542eac96414cca41f1bdbda8d976b9 /graphics/py-exif/Makefile
parent4811ad370e4348a1c5adfffd126053e1864f3f0b (diff)
downloadfreebsd-ports-gnome-bac9d3f138baef03dc33ae3d8da57bb46fbba8d8.tar.gz
freebsd-ports-gnome-bac9d3f138baef03dc33ae3d8da57bb46fbba8d8.tar.zst
freebsd-ports-gnome-bac9d3f138baef03dc33ae3d8da57bb46fbba8d8.zip
Add py-exif 0.9, a Python library to extract EXIF metadata from JPEG
and TIFF image files.
Diffstat (limited to 'graphics/py-exif/Makefile')
-rw-r--r--graphics/py-exif/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/graphics/py-exif/Makefile b/graphics/py-exif/Makefile
new file mode 100644
index 000000000000..c099c8a452bc
--- /dev/null
+++ b/graphics/py-exif/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: py-exif
+# Date created: 30 January 2001
+# Whom: Johann Visagie <wjv@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= exif
+PORTVERSION= 0.9
+CATEGORIES= graphics python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= pyexif
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= pyexif-${PORTVERSION}
+
+MAINTAINER= wjv@FreeBSD.org
+
+USE_PYTHON= yes
+WRKSRC= ${WRKDIR}/pyexif
+DATADIR= ${PREFIX}/share/py-exif
+DOCSDIR= ${PREFIX}/share/doc/py-exif
+INSTALL_SITELIBDIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages
+
+post-patch:
+.for pyfile in exiftool exifinfo.py
+ @ cd ${WRKSRC}/bin && ${MV} ${pyfile} ${pyfile}.orig && \
+ ${SED} -e '1s|.*|#!${PYTHON_CMD}|' ${pyfile}.orig > ${pyfile}
+.endfor
+
+do-build:
+ @ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/lib
+ @ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/lib
+
+do-install:
+ @ ${MKDIR} ${INSTALL_SITELIBDIR}
+ @ ${MKDIR} ${PREFIX}/bin
+ @ cd ${WRKSRC}/lib && ${INSTALL_DATA} *.py *.pyc *.pyo \
+ ${INSTALL_SITELIBDIR}
+ @ ${INSTALL_SCRIPT} ${WRKSRC}/bin/exiftool ${PREFIX}/bin
+ @ ${MKDIR} ${DATADIR}
+ @ cd ${WRKSRC}/share/exiftool && ${INSTALL_DATA} *.html *.txt \
+ ${DATADIR}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${DOCSDIR}
+ @ ${INSTALL_DATA} ${WRKSRC}/README* ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>